@import url("https://fonts.googleapis.com/css2?family=Bowlby+One&family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --bg: #f1e6d0;
  --surface: #faf4e6;
  --text: #2a2a22;
  --muted: #6b6455;
  --primary: #3f5d3a;
  --primary-dark: #2f4a2b;
  --accent: #b4552d;
  --burgundy: #6b1f2e;
  --burgundy-dark: #521723;
  --border: #dccfb2;
  --font-heading: "Bowlby One", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; }
img, iframe { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; color: var(--primary-dark); }
h1 { font-size: 2.2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.05rem; line-height: 1.2; }
a { color: var(--primary); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 40px 0; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; }
.logo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--primary-dark); }
.logo { display: flex; flex-direction: column; line-height: 1.1; padding: 6px 0; }
.logo .payoff { font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { cursor: pointer; padding: 10px; display: grid; gap: 5px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); display: block; }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--primary); }
.site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { padding: 10px 0; text-decoration: none; color: var(--text); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--burgundy); color: #fff; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--burgundy-dark); }
.btn-paypal { background: #ffc439; color: #111; }
.btn-paypal:hover { background: #f0b52a; }

/* Hero */
.hero { padding: 56px 0 48px; background: var(--primary); color: var(--bg); }
.hero h1 { font-size: clamp(2.4rem, 11vw, 4.6rem); color: transparent; -webkit-text-stroke: 1.5px var(--bg); }
.hero p { max-width: 60ch; font-size: 1.1rem; }.hero .hero-cta-text { font-family: var(--font-heading); text-transform: uppercase; font-size: 1.3rem; margin: 0 0 10px; }
.hero-facts { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 6px; }

/* Carousel */
.carousel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.carousel-head h2 { margin: 0; }
.carousel-nav { display: none; gap: 8px; }
.carousel-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 1.2rem; cursor: pointer; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.card { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card a { text-decoration: none; color: inherit; display: block; }
.card-media { aspect-ratio: 4 / 3; background: #dfe6d3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #b7c8a3, #6f8f5f); }
.card-body { padding: 14px; }
.card-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

/* Event page */
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); }
.badge[data-status="aperto"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy); animation: live 1.6s ease-out infinite; }
.badge[data-status="passato"] { color: var(--muted); }
.badge[data-status="futuro"] { color: var(--accent); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(107, 31, 46, .55); } 100% { box-shadow: 0 0 0 9px rgba(107, 31, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .badge[data-status="aperto"]::before { animation: none; } }
.meta { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.meta li { display: flex; align-items: center; gap: 12px; }
.meta li { flex-wrap: wrap; }
.maps-link { font-size: .9rem; font-weight: 700; color: var(--burgundy); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--burgundy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tickets { list-style: none; padding: 0; margin: 0 0 16px; }
.tickets li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tickets:empty { display: none; }
.tickets small { display: block; color: var(--muted); font-size: .85rem; }
.hint { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.buttons { display: grid; gap: 10px; }
.closed { margin: 0; padding: 12px; border-radius: 8px; background: #efece2; color: var(--muted); }
.video { aspect-ratio: 16 / 9; margin-bottom: 20px; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #eef1e6; padding: 40px 0 24px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.2rem; color: var(--bg); }
.newsletter { display: grid; gap: 10px; max-width: 420px; }
.newsletter input { padding: 12px 14px; border-radius: 999px; border: 0; font: inherit; }
.newsletter .btn { background: var(--burgundy); }
.newsletter .btn:hover { background: var(--burgundy-dark); }
.footer-cols { display: grid; gap: 56px; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
h2[id], #newsletter { scroll-margin-top: 88px; }
.hero a:not(.btn) { color: inherit; text-decoration: underline; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; }
.hero-cta .hero-cta-text { margin-bottom: 10px; }
.empty a { color: var(--burgundy); font-weight: 700; }
.newsletter { max-width: 460px; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-hint { margin: 0; font-size: .85rem; color: #d3dac4; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: #d3dac4; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form-note { margin: 0; font-size: .8rem; color: #d3dac4; }
.form-msg { margin: 0; padding: 10px 12px; border-radius: 8px; background: #faf4e6; color: var(--text); }
.form-msg[data-state="error"] { background: #f6d9d9; color: #5a1a1a; }
.social { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.or { margin: 0; padding-top: 6px; }
.footer-legal { margin-top: 22px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ico-s { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-wa, .btn-wa-light { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #0b3d1f; }
.btn-wa:hover, .btn-wa-light:hover { background: #1fb957; }
.site-footer .btn-wa { color: #0b3d1f; }
.map-box { margin-top: 28px; }
.map-facade { display: flex; }
.map-box iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; }
.company { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; color: #d3dac4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Legal pages */
.legal { max-width: 760px; }
.legal .draft { background: #fff3cd; border: 1px solid #e6cf85; padding: 12px 14px; border-radius: 8px; }

@media (min-width: 720px) {
  h1 { font-size: 2.6rem; }
  .nav-burger { display: none; }
  .site-nav { display: flex; flex-direction: row; gap: 22px; width: auto; padding: 0; }
  .carousel-nav { display: flex; }
  .card { flex-basis: 300px; }
  .buttons { grid-template-columns: repeat(3, auto); justify-content: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
