/* =========================================================
   STILI PRINCIPALI
   Per cambiare colori, dimensioni e spaziature modificare
   le variabili nella sezione :root.
   ========================================================= */

:root {
  --green: #176b3a;
  --green-dark: #0e5930;
  --green-light: #d8efcf;
  --red: #e00028;
  --blue: #08aeda;
  --text: #555;
  --border: #c9c9c9;
  --max-width: 1180px;
  --page-padding: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 15px;
}

/* ---------------- HEADER ---------------- */

.hero {
  position: relative;
  min-height: 370px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 110px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-left: 7px solid var(--green);
  border-right: 7px solid var(--green);
}

.hero-content {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.side-logo {
  position: absolute;
  top: 0;
  width: 105px;
}

.side-logo.left {
  left: 5px;
}

.side-logo.right {
  right: 5px;
}

.side-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin-top: 8px;
  color: #5d9275;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
}

.eyebrow span {
  margin: 0 8px;
}

h1 {
  margin: 20px 0 0;
  color: var(--green);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: 1px;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 2px;
}

.date-bar {
  max-width: 650px;
  margin: 0 auto;
  padding: 13px 20px;
  background: var(--green);
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.cta {
  display: inline-block;
  margin-top: 65px;
  padding: 14px 36px;
  border-radius: 28px;
  color: white;
  background: var(--green);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}

.cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------------- INFO ---------------- */

.info-grid {
  max-width: var(--max-width);
  margin: 0 auto 30px;
  padding: 24px var(--page-padding);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  border-left: 7px solid var(--red);
  border-right: 7px solid var(--red);
}

.info-column h2 {
  margin: 0 0 12px;
  color: #609276;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
}

.info-column ul {
  margin: 0;
  padding-left: 18px;
}

.info-column li {
  margin-bottom: 8px;
  padding-left: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.info-column li::marker {
  color: var(--red);
}

/* ---------------- PROGRAMMA ---------------- */

.program-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding) 40px;
}

.section-title {
  text-align: center;
  margin: 30px 0 24px;
}

.section-title h2 {
  color: var(--green);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0 0 6px;
}

.section-title p {
  margin: 0;
  color: #777;
}

.menu-day {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.menu-day-header {
  padding: 8px 12px;
  color: white;
  background: var(--red);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.menu-day-header.afternoon {
  background: var(--blue);
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.menu-table th {
  padding: 6px 4px;
  background: var(--green-light);
  color: #426c4e;
  border-right: 1px solid #b9b9b9;
  font-size: 11px;
  text-transform: uppercase;
}

.menu-table td {
  padding: 7px 5px;
  border-right: 1px solid var(--border);
  border-top: 1px solid #ddd;
  vertical-align: top;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-line;
}

.menu-table th:last-child,
.menu-table td:last-child {
  border-right: 0;
}

.menu-table th:nth-child(1),
.menu-table td:nth-child(1) { width: 22%; }

.menu-table th:nth-child(2),
.menu-table td:nth-child(2) { width: 22%; }

.menu-table th:nth-child(3),
.menu-table td:nth-child(3) { width: 28%; }

.menu-table th:nth-child(4),
.menu-table td:nth-child(4) { width: 10%; }

.menu-table th:nth-child(5),
.menu-table td:nth-child(5) { width: 10%; }

.menu-table th:nth-child(6),
.menu-table td:nth-child(6) { width: 8%; }

/* ---------------- FOOTER ---------------- */

footer {
  padding: 22px;
  color: white;
  background: var(--green);
  text-align: center;
  font-size: 13px;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 800px) {
  .hero {
    min-height: 330px;
    padding: 25px 80px 30px;
  }

  .side-logo {
    width: 75px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .date-bar {
    font-size: 13px;
  }

  .cta {
    margin-top: 45px;
  }

  .info-grid {
    gap: 25px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 14px;
  }

  .hero {
    min-height: 400px;
    padding: 105px 18px 30px;
    border-width: 4px;
  }

  .side-logo {
    width: 72px;
  }

  .side-logo.left {
    left: 8px;
  }

  .side-logo.right {
    right: 8px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  h1 {
    font-size: 35px;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 11px;
  }

  .date-bar {
    font-size: 12px;
  }

  .cta {
    margin-top: 40px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    border-left-width: 4px;
    border-right-width: 4px;
  }

  .info-column h2 {
    font-size: 14px;
  }

  .menu-day {
    overflow-x: auto;
  }

  .menu-table {
    min-width: 720px;
  }

  .program-section {
    overflow: hidden;
  }

  .section-title h2 {
    font-size: 20px;
  }
}

/* =========================================================
   SCORRIMENTO ORIZZONTALE MENU SU SMARTPHONE
   ========================================================= */

/*
   Su desktop e tablet gli indicatori sono nascosti.
   Il menu mantiene il comportamento originale.
*/

.mobile-scroll-hint,
.mobile-scroll-progress {
  display: none;
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {


  /* -------------------------------------------------------
     MESSAGGIO "SCORRI ORIZZONTALMENTE"
     ------------------------------------------------------- */

  .mobile-scroll-hint {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 7px 8px;

    color: var(--green);

    background: var(--green-light);

    font-size: 9px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: .4px;

    text-align: center;

    border-bottom: 1px solid #b8d7af;

  }


  /* -------------------------------------------------------
     FRECCE DEL MESSAGGIO
     ------------------------------------------------------- */

  .mobile-scroll-hint .arrow {

    flex: 0 0 auto;

    font-size: 18px;

    line-height: 1;

  }


  /* Freccia destra animata */

  .mobile-scroll-hint .arrow-right {

    animation:
      scrollHintRight
      1.3s
      ease-in-out
      infinite;

  }


  /* Freccia sinistra leggermente attenuata */

  .mobile-scroll-hint .arrow-left {

    opacity: .45;

  }


  /* Animazione freccia */

  @keyframes scrollHintRight {

    0%,
    100% {

      transform: translateX(0);

      opacity: .65;

    }

    50% {

      transform: translateX(5px);

      opacity: 1;

    }

  }


  /* =======================================================
     CONTENITORE SCROLLABILE
     ======================================================= */

  .table-scroll-area {

    position: relative;

    overflow-x: auto;

    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

  }


  /* Nasconde la scrollbar su Chrome / Safari */

  .table-scroll-area::-webkit-scrollbar {

    display: none;

  }


  /* =======================================================
     LARGHEZZA MINIMA DELLA TABELLA
     ======================================================= */

  .menu-table {

    /*
      La tabella mantiene una larghezza sufficiente
      per essere letta correttamente.

      Su smartphone l'utente può trascinarla
      orizzontalmente.
    */

    min-width: 720px;

  }


  /* =======================================================
     INDICATORE LATERALE "C'È ALTRO CONTENUTO"
     ======================================================= */

  .table-scroll-area::after {

    content: "→";

    position: absolute;

    z-index: 5;

    top: 0;

    right: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 100%;

    color: white;

    background:
      linear-gradient(
        to right,
        rgba(23, 107, 58, 0),
        rgba(23, 107, 58, .88)
      );

    font-size: 22px;

    font-weight: 700;

    pointer-events: none;

  }


  /* =======================================================
     DOPO IL PRIMO SCORRIMENTO
     ======================================================= */

  .menu-day.is-scrolled
  .table-scroll-area::after {

    content: "←";

    left: 0;

    right: auto;

    background:
      linear-gradient(
        to left,
        rgba(23, 107, 58, 0),
        rgba(23, 107, 58, .88)
      );

  }


  /* =======================================================
     BARRA DI AVANZAMENTO
     ======================================================= */

  .mobile-scroll-progress {

    display: block;

    padding: 7px 12px 9px;

    background: #fafafa;

  }


  /* Contenitore della barra */

  .progress-bar {

    display: block;

    width: 100%;

    height: 4px;

    overflow: hidden;

    border-radius: 4px;

    background: #e1e1e1;

  }


  /* Indicatore verde */

  .progress-fill {

    display: block;

    width: 28%;

    height: 100%;

    border-radius: 4px;

    background: var(--green);

    transition:
      transform .15s ease;

  }


  /* Dopo lo scroll attenua il messaggio */

  .menu-day.is-scrolled
  .mobile-scroll-hint {

    opacity: .55;

  }

}


/* =========================================================
   SMARTPHONE MOLTO PICCOLI
   ========================================================= */

@media (max-width: 380px) {


  .mobile-scroll-hint {

    font-size: 8px;

    gap: 5px;

  }


  .mobile-scroll-hint .arrow {

    font-size: 16px;

  }

}