html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* blocca scroll laterale mobile */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #faf8f5;
  color: #1f1f1f;
  overflow-x: hidden; /* previene scroll laterale mobile */
}

/* ================= HEADER ================= */

.site-header {
  position: fixed;
  width: 100%;
  background: #faf8f5;
  border-bottom: 1px solid #e0ddd8;
  z-index: 100;
  position: relative;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-logo {
    height: 52px;
  }
}

/* ================= NAV ================= */

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: block;
  color: #1f1f1f;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 200;
}

.main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: #faf8f5;
  display: none;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid #e0ddd8;
}

.main-nav a {
  margin: .5rem 0;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 500;
}

.main-nav.open {
  display: flex;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
  }

  .main-nav a {
    margin-left: 1.5rem;
  }
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  background: url("../img/hero/hero.jpg") center / cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.hero-cta {
  margin-top: 1.5rem;
}

/* ================= BUTTONS ================= */

.btn {
  padding: .8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.btn.primary {
  background: #b58a4a;
  color: #fff;
}

.btn.secondary {
  border: 1px solid #fff;
  color: #fff;
}

/* ================= SECTIONS ================= */

.section {
  padding: 5rem 1.5rem;
}

.section-light {
  background: #faf8f5;
}

.section-alt {
  background: #f0ede8;
}

.section-menu {
  background: #f4f1ed;
}

.center {
  text-align: center;
}

/* ================= SPLIT ================= */

.split {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 3rem;
}

.split img {
  width: 100%;
  border-radius: 8px;
  transition: transform .6s ease;
}

.split img:hover {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ================= MENU ACCORDION ================= */

.accordion {
  max-width: 900px;
  margin: auto;
}

.accordion details {
  border-bottom: 1px solid #d8d5d0;
  margin-bottom: 1.5rem;
}

.accordion summary {
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  padding: .8rem 0;
}

/* Lista piatti */
.accordion ul {
  list-style: none;
  padding: 1rem 0 1.4rem;
  margin: 0;
}

/* Singolo piatto */
.accordion li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: start;
  padding: .7rem 0;
}

/* Nome piatto */
.accordion li strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

/* Descrizione */
.accordion li small {
  display: block;
  margin-top: .35rem;
  font-size: .85rem;
  line-height: 1.4;
  color: #666;
}

/* Prezzo */
.accordion li span {
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 600;
  color: #1f1f1f;
}

/* ================= MENU – SCANSIONE VISIVA (DESKTOP) ================= */

@media (min-width: 768px) {

  .accordion li {
    padding: 1rem 0;
  }

  .accordion li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

}

/* ================= MENU – MICRO INTERAZIONI (DESKTOP) ================= */

@media (min-width: 768px) {

  .accordion li {
    transition: background-color .2s ease;
  }

  .accordion li:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .accordion li span {
    transition: color .2s ease;
  }

  .accordion li:hover span {
    color: #b58a4a; /* colore brand già usato */
  }

}

/* FIX DEFINITIVO PREZZI (desktop + mobile) */
.accordion li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: .6rem 0;
}

.accordion li span {
  white-space: nowrap;
  font-weight: 500;
}

.accordion li small {
  display: block;
  font-size: .8rem;
  color: #666;
  margin-top: .2rem;
}

/* ================= CONTATTI ================= */

.contatti-wrapper {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 3rem;
}

.contatti-info a {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 500;
}

.contatti-info a:hover {
  text-decoration: underline;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #b58a4a;
}

.contatti-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contatti-form input,
.contatti-form textarea {
  padding: .8rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Honeypot antispam */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* GDPR */
.gdpr {
  font-size: .85rem;
  line-height: 1.4;
}

.gdpr input {
  margin-right: .4rem;
}

.gdpr a {
  color: #b58a4a;
  text-decoration: underline;
}

/* Form feedback */
.form-feedback {
  margin-top: .5rem;
  font-size: .9rem;
}

.form-feedback.error {
  color: #b00020;
}

.form-feedback.success {
  color: #2e7d32;
}

/* ================= FOOTER ================= */

footer {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 2rem;
}
/* ================= BACK TO TOP ================= */

#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(181, 138, 74, 0.85);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  z-index: 200;
  transition: opacity .3s ease, transform .3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(181, 138, 74, 1);
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ================= PRENOTA ================= */

.prenota-wrapper {
  max-width: 700px;
  margin: auto;
}

.prenota-intro {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #444;
}

#prenota-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#prenota-form input,
#prenota-form select,
#prenota-form textarea {
  padding: .8rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .95rem;
  background: #fff;
}

#prenota-form select {
  appearance: none;
}

#prenota-form textarea {
  resize: vertical;
}

/* Riga data / orario / persone */
.prenota-row {
  display: grid;
  gap: 1rem;
}

/* Mobile-first: una colonna */
@media (min-width: 600px) {
  .prenota-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* GDPR */
#prenota-form .gdpr {
  font-size: .85rem;
  line-height: 1.4;
}

#prenota-form .gdpr input {
  margin-right: .4rem;
}

/* Feedback */
#prenota-form .form-feedback {
  font-size: .9rem;
}

#prenota-form .form-feedback.error {
  color: #b00020;
}

#prenota-form .form-feedback.success {
  color: #2e7d32;
}

/* Nota finale */
.prenota-note {
  font-size: .8rem;
  color: #666;
  text-align: center;
}
/* ================= EVENTI ================= */

#eventi {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#eventi h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

#eventi p {
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}
/* ================= EVENTI ================= */

.eventi-wrapper {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.eventi-intro {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.eventi-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 420px;
  text-align: left;
}

.eventi-list li {
  margin: .6rem 0;
  font-weight: 500;
  line-height: 1.4;
}

.eventi-gallery {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0;
}

.eventi-gallery img {
  width: 100%;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .eventi-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eventi-cta {
  margin-top: 2rem;
  font-weight: 500;
}

.eventi-cta a {
  color: #b58a4a;
  text-decoration: underline;
}
/* ===== EVENTI BLOCKS ===== */

.eventi-block {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
  align-items: center;
}

.eventi-text {
  line-height: 1.6;
}

.eventi-image img {
  width: 100%;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .eventi-block {
    grid-template-columns: 1fr 1fr;
  }

  .eventi-block.reverse {
    direction: rtl;
  }

  .eventi-block.reverse > * {
    direction: ltr;
  }
}
/* ===== EFFETTO IMMAGINI EVENTI ===== */

.eventi-image {
  overflow: hidden;
  border-radius: 8px;
}

.eventi-image img {
  transition: transform .6s ease, filter .6s ease;
}

.eventi-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}
/* ===== NAV HOVER EFFECTS ===== */

.main-nav a {
  position: relative;
  transition: color .3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #b58a4a;
  transition: width .3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #b58a4a;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}/* ===== BUTTON HOVER EFFECTS ===== */

.btn {
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  background: #a77c3f;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
/* ===== MENU ITEMS HOVER ===== */

.accordion li {
  transition: background .3s ease, transform .3s ease;
  padding: .6rem .4rem;
  border-radius: 4px;
}

.accordion li:hover {
  background: rgba(181, 138, 74, 0.08);
  transform: translateX(4px);
}

.accordion li strong {
  transition: color .3s ease;
}

.accordion li:hover strong {
  color: #b58a4a;
}

/* ===== MENU CATEGORY EFFECT ===== */

.accordion summary {
  transition: color .3s ease;
}

.accordion summary:hover {
  color: #b58a4a;
}

.accordion details[open] summary {
  color: #b58a4a;
}

/* ===== EVENTI SCROLL REVEAL ===== */

.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  transform: translateX(-90px);
}

.reveal-right {
  transform: translateX(90px);
}

.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Rispetto accessibilità */
@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== PRENOTA MESSAGES ===== */

.prenota-message {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.prenota-message.success {
  background: #e6f4ea;
  color: #1e7e34;
}

.prenota-message.error {
  background: #fdecea;
  color: #b02a37;
}

#prenota-form.loading {
  opacity: .6;
  pointer-events: none;
}

.prenota-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #555;
}
/* =========================================================
   STEP 1 UX – OVERRIDE TIPOGRAFIA E RITMO (SEO SAFE)
   ========================================================= */

/* Miglioramento leggibilità globale */
body {
  font-size: 16px;
  line-height: 1.65;
}

/* Gerarchia titoli più chiara */
h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* Paragrafi più ariosi */
p {
  margin-bottom: 1.1rem;
}

/* Limita la larghezza dei testi lunghi */
.section p,
.section li {
  max-width: 70ch;
}

/* Testi introduttivi di sezione */
.prenota-intro,
.eventi-intro,
.section > .center {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
}
/* =========================================================
   STEP 2 UX – HERO + CTA (SEO SAFE)
   ========================================================= */

/* Hero: miglioramento impatto visivo */
.hero-inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Titolo Hero */
.hero-inner h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Sottotitolo Hero */
.hero-inner p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Hero */
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA più evidenti */
.hero-cta .btn {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

/* Mobile tuning */
@media (max-width: 600px) {
  .hero-inner h1 {
    font-size: 2.2rem;
  }

  .hero-inner p {
    font-size: 1.05rem;
  }

  .hero-cta {
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}
/* =========================================================
   STEP 2a – Calibrazione CTA Hero (riduzione dimensioni)
   ========================================================= */

.hero-cta .btn {
  padding: 0.85rem 1.9rem;
  font-size: 0.95rem;
}

/* Mobile: leggermente meno "pulsanti giganti" */
@media (max-width: 600px) {
  .hero-cta .btn {
    max-width: 260px;
  }
}
/* =========================================================
   STEP 3 – ALTERNANZA SEZIONI CON UNICA TEXTURE + DUE TONI
   ========================================================= */

/* TEXTURE A – PIÙ CHIARA */
#chi-siamo,
#prenota,
#contatti {
  background-color: #faf8f5;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0.75)
    ),
    url("../img/ui/texture-paper.jpg");
  background-repeat: repeat;
  background-size: auto;
}

/* TEXTURE B – PIÙ SCURA */
#menu,
#eventi {
  background-color: #f2efe9;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35)
    ),
    url("../img/ui/texture-paper.jpg");
  background-repeat: repeat;
  background-size: auto;
}
/* =========================================================
   STEP 3 – SPAZIATURE E RITMO (CALIBRATO)
   ========================================================= */

/* Spaziatura base sezioni (desktop) */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Sezioni chiave leggermente più presenti */
#menu.section,
#prenota.section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

@media (max-width: 768px) {
  #menu.section,
  #prenota.section {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }
}
/* =========================================================
   STEP 3a – TITOLO MENU PIÙ FORTE
   ========================================================= */

#menu h2 {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  margin-bottom: 3rem;
}
/* =========================================================
   STEP 4 – HEADER & NAVIGAZIONE (UX MODERNA)
   ========================================================= */

/* Header più presente e moderno */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(250, 248, 245, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Spaziature header leggermente più eleganti */
.header-inner {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* Logo: micro-riduzione per equilibrio */
.site-logo {
  height: 64px;
}

@media (max-width: 768px) {
  .site-logo {
    height: 56px;
  }
}

/* Link di navigazione: più respiro e chiarezza */
.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Stato focus/accessibilità */
.main-nav a:focus-visible {
  outline: 2px solid #b58a4a;
  outline-offset: 4px;
}

/* Menu mobile: pannello più elegante */
@media (max-width: 768px) {
  .main-nav {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
  }
}

/* Toggle hamburger: più discreto */
.nav-toggle {
  font-size: 1.6rem;
}
/* =========================================================
   STEP 5B.1 – MENU + IMMAGINE (LAYOUT BASE)
   ========================================================= */

.menu-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: auto;
}

/* Colonna menu */
.menu-content {
  max-width: 720px;
}

/* Colonna immagine */
.menu-visual {
  position: sticky;
  top: 120px;
}

.menu-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Mobile: niente immagine, menu full width */
@media (max-width: 992px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .menu-visual {
    display: none;
  }
}
/* ================= MENU INTRO TESTO ================= */

.section-menu > p.center {
  max-width: 700px;
  margin: 1.5rem auto 3rem;
  line-height: 1.6;
}
/* ================= PAGINE LEGALI ================= */

.legal-page {
  background: #faf8f5;
}

.legal-page .legal-container {
  max-width: 900px;
  margin: 3rem auto 6rem;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}
/* ================= FOOTER LINK LEGALI ================= */

footer a {
  color: inherit;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}
/* ================= HERO FADE-IN ================= */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn 1.8s ease-out forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ================= HERO CTA MOBILE FIX ================= */
@media (max-width: 767px) {
  .hero-inner {
    top: 38%;
  }

  .hero-cta {
    margin-top: 1.2rem;
  }
}
/* ================= HERO CTA MICRO-ANIMATIONS ================= */

.hero-cta .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

/* Hover / focus (desktop) */
.hero-cta .btn:hover,
.hero-cta .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Press / tap (mobile & desktop) */
.hero-cta .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* ================= HERO STAGGER FADE-IN ================= */

.hero-title,
.hero-payoff,
.hero-cta-anim {
  opacity: 0;
  transform: translateY(10px);
  animation: heroStaggerFade 0.8s ease-out forwards;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-payoff {
  animation-delay: 0.4s;
}

.hero-cta-anim {
  animation-delay: 0.6s;
}

@keyframes heroStaggerFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FOOTER SOCIAL ================= */

.site-footer {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
}

.site-footer p {
  margin-top: 1.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover img {
  transform: translateY(-3px);
  opacity: 0.8;
}

.site-footer sup {
  font-size: 0.6em;
  vertical-align: super;
}

.footer-bottom {
  margin-top: 1.5rem;
}

.footer-copy {
  margin: 0.4rem 0;
  font-size: 0.85rem;
}

.footer-legal {
  margin: 0.4rem 0;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-legal .sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

