:root {
  --bg: #f6f0e6;
  --surface: #fffaf1;
  --surface-2: #eadfce;
  --text: #2c2219;
  --muted: #766757;
  --line: rgba(79, 57, 35, .16);
  --gold: #b87925;
  --gold-bright: #d99b3d;
  --wood: #744824;
  --header: rgba(255, 250, 241, .9);
  --shadow: 0 24px 60px rgba(77, 52, 27, .13);
  --logo-glow: drop-shadow(0 0 8px rgba(184, 121, 37, .42));
  --script: "Allura", "Brush Script MT", cursive;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #11100d;
  --surface: #1b1813;
  --surface-2: #272118;
  --text: #fbf3e7;
  --muted: #b9aa96;
  --line: rgba(238, 207, 163, .15);
  --gold: #e1a34b;
  --gold-bright: #f2bd69;
  --wood: #bd8650;
  --header: rgba(17, 16, 13, .9);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --logo-glow: drop-shadow(0 0 7px rgba(229, 168, 70, .9)) drop-shadow(0 0 22px rgba(229, 168, 70, .32));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 15px; border-radius: 8px; background: var(--surface); color: var(--text); }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { padding: 7px 0; border-color: var(--line); background: var(--header); box-shadow: 0 8px 34px rgba(34, 24, 14, .08); backdrop-filter: blur(18px); }
.header-inner { width: min(1240px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 30px; }
.brand { position: relative; z-index: 3; width: 210px; height: 70px; display: flex; align-items: center; }
.brand img, .brand .custom-logo { width: 205px; height: auto; filter: brightness(0) saturate(100%) invert(55%) sepia(63%) saturate(650%) hue-rotate(355deg) brightness(90%) contrast(89%) var(--logo-glow); }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .brand .custom-logo { filter: brightness(0) saturate(100%) invert(79%) sepia(47%) saturate(757%) hue-rotate(349deg) brightness(98%) contrast(93%) var(--logo-glow); }
.site-nav { justify-self: center; }
.nav-list { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: clamp(18px, 3vw, 39px); }
.nav-list a { position: relative; display: inline-block; color: var(--text); font-family: var(--script); font-size: 1.48rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--gold); transition: right .25s ease; }
.nav-list a:hover::after, .nav-list a:focus-visible::after { right: 0; }
.theme-toggle { position: relative; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--muted); box-shadow: 0 9px 28px rgba(35, 24, 13, .1); cursor: pointer; }
.theme-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; line-height: 1; transition: color .25s ease, background .25s ease, transform .25s ease; }
.theme-sun { background: var(--gold); color: #fffaf1; }
:root[data-theme="dark"] .theme-sun { background: transparent; color: var(--muted); }
:root[data-theme="dark"] .theme-moon { background: var(--gold); color: #17120d; }
.nav-toggle { display: none; position: relative; z-index: 3; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

main { display: block; }
.hero { position: relative; min-height: min(920px, 100svh); display: grid; place-items: center; overflow: hidden; isolation: isolate; background: #4c3c2a; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -3; object-fit: cover; object-position: center 47%; transform: scale(1.015); animation: hero-breathe 18s ease-in-out infinite alternate; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(27, 19, 11, .56) 0%, rgba(34, 24, 14, .23) 50%, rgba(21, 15, 10, .06) 100%), linear-gradient(0deg, rgba(20, 14, 8, .46), transparent 45%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 34% 48%, rgba(225, 163, 75, .15), transparent 34rem); }
.hero-content { width: min(1240px, calc(100% - 40px)); padding: 130px 0 80px; color: #fff9ef; }
.eyebrow { margin: 0 0 13px; color: var(--gold-bright); font-family: var(--script); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; }
.hero h1 { margin: 0; max-width: 750px; font-family: var(--script); font-size: clamp(5.5rem, 12vw, 10.5rem); font-weight: 400; line-height: .68; text-shadow: 0 0 13px rgba(226, 164, 75, .63), 0 0 42px rgba(226, 164, 75, .18); }
.hero h1 span { display: block; margin-left: clamp(100px, 15vw, 210px); color: #f0b75f; }
.hero-lead { max-width: 540px; margin: 40px 0 0; color: rgba(255, 249, 239, .88); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 23px; border: 1px solid transparent; border-radius: 999px; font-family: var(--script); font-size: 1.38rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--gold-bright), #a9681e); color: #fffaf2; box-shadow: 0 13px 28px rgba(147, 87, 21, .25); }
.button-glass { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .09); color: #fff; backdrop-filter: blur(8px); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 28px; height: 45px; display: grid; place-items: start center; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.45); border-radius: 99px; }
.scroll-cue span { width: 4px; height: 8px; margin-top: 8px; border-radius: 99px; background: #fff; animation: scroll-cue 1.7s ease infinite; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 115px 0; }
.section h2 { margin: 0; font-family: var(--script); color: var(--text); font-size: clamp(3.7rem, 7vw, 6.4rem); font-weight: 400; line-height: .9; }
.about { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px, 8vw, 110px); }
.section-copy > p:not(.eyebrow) { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 1rem; }
.feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 31px; }
.feature-row span { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--wood); font-family: var(--script); font-size: 1.18rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; }
.about-image { position: relative; min-height: 540px; margin: 0; overflow: hidden; border-radius: 52% 48% 45% 55% / 42% 47% 53% 58%; box-shadow: var(--shadow); }
.about-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; }
.about-image img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: 55% center; }

.experience { padding-top: 55px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.section-heading h2 { max-width: 760px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.experience-card { min-height: 275px; padding: 34px 32px; border-right: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.experience-card:last-child { border-right: 0; }
.experience-card:hover { background: color-mix(in srgb, var(--gold) 7%, var(--surface)); transform: translateY(-4px); }
.experience-card > span { color: var(--gold); font-family: Georgia, serif; font-size: .8rem; }
.experience-card h3 { margin: 48px 0 12px; font-family: var(--script); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.experience-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.event-section { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--surface-2); }
.event-visual { min-height: 760px; overflow: hidden; }
.event-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 61%; }
.event-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(55px, 8vw, 120px); }
.event-card .event-day { margin: 9px 0 14px; color: var(--wood); font-family: var(--script); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; }
.event-card h2 { color: var(--text); font-size: clamp(5rem, 9vw, 8.5rem); }
.event-details { width: min(100%, 440px); margin: 34px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-details p { margin: 0; padding: 15px 0; display: flex; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.event-details p:last-child { border-bottom: 0; }
.event-details span { color: var(--muted); }
.event-details strong { color: var(--gold); }
.event-copy { max-width: 430px; margin: 0 0 27px; color: var(--muted); }

.gallery-section { padding-bottom: 125px; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 300px 300px; gap: 15px; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid figure:hover img { transform: scale(1.035); }
.gallery-wide { grid-column: 1; grid-row: 1; }
.gallery-tall { grid-column: 2; grid-row: 1 / span 2; }
.gallery-small { grid-row: 2; }
.gallery-small:nth-of-type(3) { width: calc(50% - 7.5px); }
.gallery-small:nth-of-type(4) { width: calc(50% - 7.5px); justify-self: end; }

.menu-banner { margin-bottom: 105px; padding: 58px 65px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); box-shadow: var(--shadow); }
.menu-banner h2 { font-size: clamp(3.5rem, 6vw, 5.4rem); }
.menu-banner p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); }

.site-footer { padding: 70px 0 22px; background: #1e1711; color: #f8eddf; }
.footer-inner, .footer-bottom { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 55px; }
.footer-brand img { width: 230px; height: auto; filter: brightness(0) saturate(100%) invert(76%) sepia(43%) saturate(935%) hue-rotate(352deg) brightness(98%) contrast(89%) drop-shadow(0 0 10px rgba(225,163,75,.5)); }
.footer-brand p { margin: -8px 0 0; color: #bcae9d; font-size: .78rem; }
.footer-event { display: grid; gap: 4px; }
.footer-event span { color: var(--gold-bright); font-family: var(--script); font-size: 1.25rem; font-weight: 400; letter-spacing: 0; text-transform: none !important; }
.footer-event strong { font-family: var(--script); font-size: 2rem; font-weight: 400; }
.footer-links { display: grid; gap: 10px; font-size: .8rem; font-weight: 700; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom { margin-top: 54px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: #9f9181; font-size: .72rem; }
.footer-bottom p { margin: 0; }

.content-shell { width: min(920px, calc(100% - 40px)); min-height: 65vh; margin: 0 auto; padding: 145px 0 80px; }
.content-card { margin-bottom: 30px; padding: 35px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.content-card h1 { margin-top: 0; font-family: var(--script); font-size: 3.7rem; font-weight: 400; line-height: 1; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-breathe { to { transform: scale(1.055); } }
@keyframes scroll-cue { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(12px); } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; order: 2; }
  .theme-toggle { order: 3; }
  html body .site-header .site-nav {
    position: fixed !important;
    z-index: 2;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 105px 20px 34px !important;
    display: grid;
    place-items: center;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background:
      radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 19rem),
      color-mix(in srgb, var(--bg) 97%, transparent);
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(22px);
    transition: opacity .28s ease, visibility .28s ease;
  }
  html body .site-header .site-nav.is-open { visibility: visible !important; opacity: 1; }
  .site-nav .nav-list {
    width: min(390px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  html body .site-nav .nav-list li { width: 100%; }
  html body .site-nav .nav-list a {
    position: relative;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--gold) 33%, var(--line));
    border-radius: 19px;
    background: color-mix(in srgb, var(--surface) 91%, transparent);
    color: var(--text);
    font-family: var(--script);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    text-transform: none !important;
    box-shadow:
      0 10px 28px color-mix(in srgb, var(--gold) 9%, transparent),
      inset 0 0 0 1px color-mix(in srgb, var(--gold) 7%, transparent),
      inset 0 0 22px color-mix(in srgb, var(--gold) 4%, transparent);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  }
  html body .site-nav .nav-list a::after {
    right: 18%;
    bottom: 8px;
    left: 18%;
    height: 1px;
    opacity: .55;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  html body .site-nav .nav-list a:hover,
  html body .site-nav .nav-list a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow:
      0 12px 34px color-mix(in srgb, var(--gold) 17%, transparent),
      0 0 24px color-mix(in srgb, var(--gold) 12%, transparent),
      inset 0 0 26px color-mix(in srgb, var(--gold) 7%, transparent);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .about { grid-template-columns: 1fr; }
  .about-image { min-height: 460px; }
  .experience-grid { grid-template-columns: 1fr; border-top: 0; }
  .experience-card { min-height: auto; border-top: 1px solid var(--line); border-right: 0; }
  .experience-card h3 { margin-top: 25px; }
  .event-section { grid-template-columns: .9fr 1.1fr; }
  .event-card { padding-inline: 50px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; display: flex; }
}

@media (max-width: 700px) {
  .header-inner { width: calc(100% - 26px); grid-template-columns: 1fr auto auto; gap: 7px; }
  .brand { width: 155px; height: 59px; }
  .brand img, .brand .custom-logo { width: 150px; }
  .theme-icon { width: 29px; height: 31px; }
  .nav-toggle { width: 39px; height: 39px; }
  html body .site-header .site-nav { padding: 96px 15px 26px !important; }
  .site-nav .nav-list { width: min(360px, 100%); gap: 9px; }
  html body .site-nav .nav-list a { min-height: 59px; border-radius: 17px; font-size: 1.8rem; }
  .hero { min-height: 760px; align-items: end; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(22,15,9,.84) 0%, rgba(22,15,9,.34) 72%, rgba(22,15,9,.3) 100%); }
  .hero-content { width: calc(100% - 30px); padding: 140px 0 95px; }
  .hero h1 { font-size: clamp(5rem, 24vw, 7.4rem); }
  .hero h1 span { margin-left: 65px; }
  .hero-lead { margin-top: 31px; }
  .button { min-height: 46px; padding-inline: 18px; }
  .section { width: calc(100% - 30px); padding: 80px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .about { gap: 45px; }
  .about-image, .about-image img { min-height: 390px; }
  .experience { padding-top: 20px; }
  .event-section { width: 100%; display: flex; flex-direction: column; padding: 0; }
  .event-visual { min-height: 480px; }
  .event-visual img { object-position: center 60%; }
  .event-card { padding: 65px 24px 75px; }
  .event-card h2 { font-size: 5.1rem; }
  .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 245px 300px 205px; }
  .gallery-wide { grid-column: 1 / span 2; grid-row: 1; }
  .gallery-tall { grid-column: 2; grid-row: 2 / span 2; }
  .gallery-small { width: auto !important; grid-column: 1; }
  .gallery-small:nth-of-type(3) { grid-row: 2; }
  .gallery-small:nth-of-type(4) { grid-row: 3; }
  .menu-banner { width: calc(100% - 30px); margin-bottom: 75px; padding: 40px 26px; align-items: flex-start; flex-direction: column; gap: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 35px; }
  .footer-links { grid-column: auto; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mantiene la capitalizzazione naturale anche in presenza di stili WordPress o plugin. */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .eyebrow,
html body .button,
html body .feature-row span,
html body .event-day,
html body .footer-event span,
html body .footer-event strong,
html body .site-nav .nav-list a {
  text-transform: none !important;
}

html body .site-nav .nav-list a {
  font-family: var(--script) !important;
}
