/* Hero Section Homepage */
.hero_section.shorter {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video_risto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video_risto video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.hero_section.shorter::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(44, 85, 48, 0.3) 0%,
    rgba(212, 175, 55, 0.2) 50%,
    rgba(62, 39, 35, 0.3) 100%
  );
  z-index: 2;
}
.prenotation_btn {
  position: absolute;
  z-index: 200;
  bottom: 10vh;
  background-color: rgba(255, 255, 255, 0.9);
}

/* Container principale full screen */
.prenotation_form {
  min-height: 100vh;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* Layout principale */
.orari {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: auto;
  margin: 0;
}

/* Blocchi informativi */
.blocco_info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}
.blocco_info h2 {
  margin-bottom: 30px;
  text-align: center;
}

.orari_block {
  width: 100%;
  background: linear-gradient(135deg, #fff2df 0%, #eeebdb 100%);
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  padding-top: 200px;
}

.orari_block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.03"/><circle cx="10" cy="50" r="1" fill="white" opacity="0.03"/><circle cx="90" cy="30" r="1" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.orari_block h2 {
  color: rgb(48, 48, 48);
  position: relative;
  z-index: 1;
  font-variant: small-caps;
  font-size: 30px;
}

/* Blocco prenotazione */
.blocco_info_full {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

/* Titoli */
.blocco_info_full h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  position: relative;
  text-align: center;
}

.blocco_info_full h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 1px;
}

.orari_block h2::after {
  background: rgba(255, 255, 255, 0.4);
}

/* Blocchi form */
.form_block {
  margin: 0 auto;
  margin-bottom: 32px;
  width: 80%;
  min-width: 350px;
  margin-top: 20px;
}
.form_block label {
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 0;
  margin-top: 10px;
  font-variant: small-caps;
}

/* Data picker container - dimensione fissa */
.data_block {
  text-align: center;
  margin-bottom: 40px;
}

.blocco_data {
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 350px;
}
.flatpickr-days {
  margin-right: 0;
}

/* Righe orari */
.riga_orari {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.95;
  justify-content: left;
  padding: 0 30px;
  box-sizing: border-box;
}

.riga_orari svg {
  flex-shrink: 0;
  opacity: 0.8;
  fill: #2d3748 !important;
}

.riga_orari a {
  color: rgba(53, 53, 53, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.riga_orari a:hover {
  color: rgb(53, 53, 53);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Form di prenotazione */
.prenotation_restaurant_form {
  align-items: start;
  width: 100%;
}

.data_block {
  grid-column: span 2;
}

/* Labels */
label {
  display: block;
  font-weight: 300;
  color: #4a5568;
  margin-bottom: 12px;
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* Input fields */
.input_line {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  font-weight: 300;
}

.input_line:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
}

.input_line:hover:not(:focus) {
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.9);
}

/* Select */
select.input_line {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234a5568' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 20px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 52px;
}

/* Pulsante conferma */
button[type="button"] {
  grid-column: span 2;
  color: rgb(43, 43, 43);
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 300;
  font-variant: small-caps;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #8b764c;
}

button[type="button"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

button[type="button"]:hover::before {
  left: 100%;
}

button[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
  color: #fff2df;
}

button[type="button"]:active {
  transform: translateY(0);
}

/* Calendario - dimensioni contenute */
.flatpickr-calendar-container {
  display: inline-block;
}
.flatpickr-innerContainer,
.flatpickr-rContainer {
  width: 100% !important;
}
.flatpickr-calendar {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  width: 100% !important;
}

.flatpickr-days {
  border-radius: 8px !important;
  margin: 2px !important;
  width: 100% !important;
}

.flatpickr-day.selected {
  background: #667eea !important;
  border-color: #667eea !important;
}

.flatpickr-day:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.flatpickr-months {
  padding: 20px 20px 10px !important;
}

.flatpickr-weekdays {
  padding: 0 20px !important;
}

.flatpickr-days {
  padding: 10px 20px 20px !important;
}

/* Messaggio */
.messaggio {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  font-weight: 300;
  text-align: center;
  min-height: 20px;
  font-size: 0.95rem;
  grid-column: span 2;
}

.messaggio.success {
  background-color: rgba(72, 187, 120, 0.1);
  color: #2f855a;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.messaggio.error {
  background-color: rgba(245, 101, 101, 0.1);
  color: #c53030;
  border: 1px solid rgba(245, 101, 101, 0.2);
}

/* Menu section - full width */
.menu_block {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 80px 60px;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-variant: small-caps;
  margin: 0 auto;
  height: auto;
}

.menu_block h2 {
  text-align: center;
  margin-bottom: 60px;
  color: #2d3748;
  font-size: 2rem;
}

/* Menu viewer */
.menu_viewer {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 50vh;
}

/* Tipi menu */
.tipi_menu {
  display: flex;
  flex-direction: column;
  gap: 16px 0;
  position: sticky;
  width: 300px;
  height: 100%;
  min-height: 50vh;
  border-right: 1px solid #dedfe2;
}

.un_menu {
  display: flex;
  width: 220px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 10px 28px;
  margin: 0 10px 0 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(208, 206, 111, 0.888);
  backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
}

.un_menu:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(102, 126, 234, 0.2);
}

.scelto {
  background-color: #cff171;
}

.nome_menu {
  font-weight: 300;
  font-size: 1.2rem;
  color: #2d3748;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Menu content */
.menu_content_layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* .pagine_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
} */

.pagine_menu {
  display: flex;
  width: 100% !important;
  flex-direction: row;
  overflow-x: scroll;
  white-space: nowrap;
  padding: 0 0 0.9rem 0;
  margin: 0 5px;
  scroll-snap-type: x mandatory; /* opzionale per snap carino */
}

.pagina_menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 10px;
  box-sizing: border-box;
}

.pagina_item {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: #f1f1f1;
  border-radius: 8px;
  margin: 2px 5px;
  cursor: pointer;
  scroll-snap-align: start; /* opzionale per snap */
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pagina_item.active {
  background: #ccc;
  font-weight: bold;
}

.pagina_item {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
  color: #4a5568;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.pagina_item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.pagina_item.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Lista piatti */
.lista_piatti {
  list-style: none;
  padding: 0;
  width: 100%;
}

.lista_piatti li {
  display: flex;
  flex-direction: column;
  padding: 32px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-transform: lowercase;
  font-variant: normal;
}

.lista_piatti li:hover {
  background: rgba(102, 126, 234, 0.02);
  border-radius: 16px;
}

.lista_piatti li:last-child {
  border-bottom: none;
}

.lista_piatti strong {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.lista_piatti svg {
  fill: #48bb78;
  opacity: 0.8;
}

.lista_piatti li {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

.prezzo {
  color: #667eea;
  font-weight: 400;
  font-size: 1.2rem;
  float: right;
  text-align: right;
  margin-top: 3px;
  margin-right: 20px;
}

/* Optgroups */
optgroup {
  font-weight: 400;
  font-style: normal;
  color: #4a5568;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .orari {
    grid-template-columns: 1fr;
  }

  .blocco_info {
    padding: 40px;
    min-height: 100vh;
  }

  .menu_viewer {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .tipi_menu {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 12px;
    position: static;
    min-height: 0;
    border-right: none;
  }

  .un_menu {
    min-width: 200px;
    flex-shrink: 0;
  }
}
.prezzo_monoprezzo {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 40px;
  box-sizing: border-box;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #003b8d;
}
@media (max-width: 768px) {
  .blocco_info {
    padding: 32px 24px;
  }

  .prenotation_restaurant_form {
    width: 100%;
  }

  .data_block,
  button[type="button"],
  .messaggio {
    grid-column: span 1;
  }

  .menu_block {
    padding: 60px 24px;
  }

  .flatpickr-calendar {
    width: 100% !important;
  }

  h2 {
    font-size: 1.3rem;
  }

  .menu_block h2 {
    font-size: 1.6rem;
  }
  .blocco_data {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .blocco_info {
    padding: 24px 20px;
  }

  .prenotation_restaurant_form {
    max-width: 100%;
  }

  .menu_block {
    padding: 40px 20px;
  }

  .flatpickr-calendar {
    width: 100% !important;
  }

  /* .pagine_menu {
    flex-direction: column;
  } */

  .pagina_item {
    text-align: center;
  }

  .lista_piatti strong {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .prezzo {
    float: none;
    margin-top: 12px;
  }
}

/* Description Sections */
.descrizione_risto {
  padding: 8rem 2rem;
  margin: 0 auto;
  display: grid;
  width: 80%;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 6rem;
  align-items: center;
  opacity: 0;
}
/* Stile per il primo carattere del paragrafo */
.descrizione_risto p::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 4em;
  font-weight: 600;
  color: #8b764c;
  float: left;
  line-height: 0.8;
  margin: 8px 8px 0 0;
}

/* Effetto di lettura progressiva */
/* .descrizione_risto p::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #8b764c 0%, transparent 100%);
  opacity: 0;
  transition: opacity 1s ease 1.5s;
}

.descrizione_risto:hover p::before {
  opacity: 1;
} */

.descrizione_risto.main {
  padding-top: 6rem;
}

.descrizione_risto.valentino {
  background: var(--cream);
  border-radius: 30px;
  padding: 0.5rem 4rem;
  margin: 4rem auto;
}

.descrizione_risto.descr_menu {
  padding-bottom: 6rem;
}
.descrizione_risto.descr_menu.orto {
  opacity: 1 !important; /* Forza la visibilità */
  transform: translateY(0) !important; /* Reset transform */
}
/* Alternating Layout */
.descrizione_risto.valentino {
  grid-template-columns: 1fr 1fr;
}

.descrizione_risto.valentino img {
  order: -1;
}
.video_verticale {
  display: flex;
  flex: 1;
  max-width: 33%;
  height: 100%;
  overflow-y: hidden;
}
/* Text Content */
.testo_risto {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.1rem;
}

.restaurant-title {
  color: var(--deep-green);
  font-size: clamp(1.4rem, 2.6vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 30px 0;
}

.restaurant-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
  border-radius: 2px;
}

/* Images */
.descrizione_risto img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
}

.descrizione_risto img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* Special styling for Valentino section */
.descrizione_risto.valentino .restaurant-title {
  color: var(--deep-green);
}

.descrizione_risto.valentino .restaurant-title::after {
  background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
}

/* Responsive Design */
@media (max-width: 1200px) {
  .descrizione_risto {
    gap: 4rem;
    padding: 6rem 2rem;
  }

  .descrizione_risto.valentino {
    padding: 1rem 3rem;
  }
}

@media (max-width: 968px) {
  .descrizione_risto {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .descrizione_risto.valentino {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    margin: 2rem 1rem;
    max-width: calc(100% - 2rem);
  }

  .descrizione_risto.valentino img {
    order: 0;
  }

  .descrizione_risto img {
    height: 350px;
  }
  .descrizione_risto.descr_menu.orto {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .descrizione_risto.descr_menu.orto .testo_risto {
    flex: 1;
    width: 85%;
    order: 1;
  }
  .descrizione_risto.descr_menu.orto .testo_risto p {
    width: 100%;
  }

  .descrizione_risto.descr_menu.orto > div:last-child {
    flex: 1;
    max-width: 100% !important;
    width: 100%;
    height: 400px;
    order: 2;
  }
}

.video_container {
  flex: 1;
  max-width: 43%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
}

.video_wrapper video {
  display: flex;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Responsive fix */
@media (max-width: 768px) {
  .descrizione_risto.orto {
    flex-direction: column !important;
  }

  .video_container {
    height: auto;
  }
  .testo_risto {
    width: 100%;
  }
  .video_wrapper video {
    margin-left: -25%;
  }
}

@media (max-width: 768px) {
  .hero_section.shorter {
    height: 80vh;
  }

  .prenotation_btn button {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
  }

  .descrizione_risto {
    padding: 3rem 1rem;
  }

  .descrizione_risto.main {
    padding-top: 4rem;
  }

  .descrizione_risto.valentino {
    border-radius: 20px;
  }

  .testo_risto {
    font-size: 1rem;
    line-height: 1.7;
    width: 85%;
    margin: 20px auto;
  }

  .restaurant-title {
    margin-bottom: 1.5rem;
  }

  .descrizione_risto img {
    height: 280px;
  }
  .descrizione_risto.descr_menu.orto {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .descrizione_risto.descr_menu.orto > div:last-child {
    height: 350px;
  }

  .descrizione_risto.descr_menu.orto .testo_risto {
    font-size: 1rem;
    line-height: 1.7;
  }
  .video_wrapper video {
    margin-left: -35%;
  }
  .orari_block {
    justify-content: center;
    height: 60vh;
  }
}

@media (max-width: 480px) {
  .hero_section_header {
    margin: 0;
    padding: 0;
  }
  .hero_section.shorter {
    height: 70vh;
  }

  .prenotation_btn button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .descrizione_risto {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .descrizione_risto.valentino {
    padding: 2rem 1rem;
    margin: 1rem 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .restaurant-title::after {
    width: 60px;
    height: 3px;
  }

  .descrizione_risto img {
    height: 220px;
    border-radius: 15px;
  }
  .descrizione_risto.descr_menu.orto > div:last-child {
    height: 300px;
  }

  .descrizione_risto.descr_menu.orto .restaurant-title::after {
    width: 60px;
    height: 3px;
  }
  .video_wrapper video {
    margin-left: -35%;
  }
  .orari_block {
    justify-content: center;
    height: 60vh;
  }
}

/* Animation States */
.descrizione_risto {
  opacity: 0;
  transform: translateY(30px);
}

.descrizione_risto.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.prenotation_btn button:focus {
  outline: 3px solid var(--primary-gold);
  outline-offset: 3px;
  z-index: 200;
}

/* Print Styles */
@media print {
  .hero_section.shorter,
  .prenotation_btn {
    display: none;
  }

  .descrizione_risto {
    grid-template-columns: 1fr;
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .descrizione_risto img {
    max-height: 300px;
  }
}
