/* Ritmatica — stile comune (colori della sezione karaoke) */
:root {
  /* stessa palette della sezione karaoke (/k/prenota) */
  --bg: #1a1928;
  --dark: #2d2b3d;
  --card: #3a3850;
  --plum: #4a3868;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .1);
  --surface: rgba(58, 56, 80, .45);
  --accent: #f26b3a;
  --accent-2: #e0522a;
  --peach: #f5c5a3;
  --serif: 'Anton', Impact, sans-serif;
  --sans: 'Poppins', system-ui, sans-serif;
  --warm: linear-gradient(180deg, var(--peach) 0%, var(--accent) 100%);
}
.hero h1, h2, .next h3, .stat b, .services h3, .back .day, .back h3, .caption .where, .contact-list b, .marquee span, .loader-word {
  text-transform: uppercase; font-style: normal !important; letter-spacing: .01em;
}
h1 em, h2 em, .next h3 em {
  font-style: normal; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(120% 140% at 50% -20%, var(--plum) 0%, var(--dark) 42%, var(--bg) 75%) fixed, var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400;
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Scena 3D e strati ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body.no-webgl #scene { display: none; }
.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 25, 40, .8) 0%, rgba(26, 25, 40, .3) 45%, transparent 70%),
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(10, 9, 18, .65));
}
@media (max-width: 860px) {
  .shade { background: linear-gradient(180deg, transparent 30%, rgba(26, 25, 40, .85) 60%), radial-gradient(130% 100% at 50% 30%, transparent 55%, rgba(10, 9, 18, .65)); }
}
.dim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--bg); opacity: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); }
  75% { transform: translate(-6%, -2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Caricamento ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity 1s ease, visibility 1s; }
#loader.hide { opacity: 0; visibility: hidden; }
.loader-word { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.4rem); background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-line { margin: 14px auto 0; width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line span { display: block; height: 100%; width: 35%; background: var(--text); animation: load 1.3s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 56px); transition: background .5s, padding .5s, border-color .5s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(26, 25, 40, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width .35s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.cta { color: var(--text); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; }
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { border-color: var(--text); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(26, 25, 40, .97); opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav-links a { font-size: 1rem; }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
}

/* ---------- Struttura ---------- */
main { position: relative; z-index: 5; }
section { position: relative; padding: clamp(90px, 14vh, 160px) clamp(16px, 5vw, 72px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.label { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; font-size: clamp(2.6rem, 6.5vw, 5.4rem); letter-spacing: -.01em; margin: 18px 0 24px; }
h2 em, h1 em { font-style: italic; color: var(--muted); }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); max-width: 560px; font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 999px; font-size: .86rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn i { transition: transform .3s; }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px rgba(242, 107, 58, .35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(242, 107, 58, .55); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1), transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 130px; }
.hero-text { max-width: 640px; }
.hero h1 { font-family: var(--serif); font-weight: 400; line-height: 1; font-size: clamp(3rem, 7.4vw, 6.8rem); margin: 22px 0 28px; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.hero .label, .hero .lead, .hero-ctas { opacity: 0; animation: fade 1.2s forwards; }
.hero .label { animation-delay: .2s; } .hero .lead { animation-delay: .7s; } .hero-ctas { animation-delay: .9s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.hero-foot {
  position: absolute; left: clamp(16px, 5vw, 72px); right: clamp(16px, 5vw, 72px); bottom: 30px;
  display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fade 1.2s 1.3s forwards;
}
.hero-foot .scroll { display: flex; align-items: center; gap: 12px; }
.hero-foot .scroll i { width: 40px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-foot .scroll i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--text); animation: load 2s ease-in-out infinite; }
@media (max-width: 860px) { .hero { align-items: flex-start; padding-top: 42svh; padding-bottom: 110px; } .hero-foot .loc { display: none; } }

/* ---------- Striscia ---------- */
.marquee { position: relative; z-index: 5; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(26, 25, 40, .6); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); white-space: nowrap; padding: 0 28px; color: var(--muted); display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chi siamo ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.stats { display: flex; gap: 46px; margin-top: 46px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.services { list-style: none; border-top: 1px solid var(--line); align-self: end; }
.services li { display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .4s; }
.services li:hover { padding-left: 12px; }
.services .n { font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.services h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.services p { grid-column: 2 / 4; color: var(--muted); font-size: .92rem; font-weight: 300; margin-top: 4px; }
.services i { color: var(--muted); font-size: .95rem; transition: color .3s; }
.services li:hover i { color: var(--accent); }

/* ---------- Serate ---------- */
.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.stage { position: relative; height: clamp(420px, 60vw, 560px); perspective: 1600px; margin-top: 40px; touch-action: pan-y; user-select: none; outline: none; }
.card {
  position: absolute; left: 50%; top: 50%; width: clamp(210px, 25vw, 290px); aspect-ratio: 4 / 5; transform-style: preserve-3d; cursor: pointer;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .7s, filter .7s;
}
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.card.flipped .card-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; background: var(--dark); }
.face.front img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card.active .face { box-shadow: 0 40px 90px rgba(10, 9, 18, .7), 0 0 0 1px rgba(242, 107, 58, .45), 0 0 60px rgba(242, 107, 58, .18); }
.face.back { transform: rotateY(180deg); padding: 30px 26px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, var(--plum), var(--dark) 70%); }
.back .day { font-family: var(--serif); font-size: 4.6rem; line-height: .9; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back .month { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.back h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.back p { color: var(--muted); font-size: .84rem; margin-top: 8px; font-weight: 300; }
.back .btn { padding: 12px 18px; font-size: .74rem; align-self: flex-start; }
.caption { text-align: center; margin-top: 8px; min-height: 64px; }
.caption .when { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.caption .where { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.stage-ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 22px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .3s; }
.arrow:hover { border-color: var(--text); }
.counter { font-size: .8rem; letter-spacing: .2em; color: var(--muted); min-width: 70px; text-align: center; }
.counter b { color: var(--text); font-weight: 500; }

/* ---------- Prossimo evento ---------- */
.next { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 70px) 0; }
.next h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; margin: 16px 0 14px; }
.next .ctas { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact-list { list-style: none; border-top: 1px solid var(--line); margin-top: 50px; }
.contact-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .4s; }
.contact-list a:hover { padding-left: 14px; }
.contact-list i:first-child { color: var(--muted); font-size: 1.15rem; transition: color .3s; }
.contact-list a:hover i:first-child { color: var(--accent); }
.contact-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; }
.contact-list span { color: var(--muted); font-size: .85rem; letter-spacing: .06em; }
.contact-list .go { color: var(--muted); transition: transform .3s, color .3s; }
.contact-list a:hover .go { transform: translateX(6px) rotate(-45deg); color: var(--text); }
@media (max-width: 600px) { .contact-list span { display: none; } }

footer {
  position: relative; z-index: 5; padding: 30px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; letter-spacing: .08em; background: rgba(20, 19, 31, .9);
}
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero .label, .hero .lead, .hero-ctas, .hero-foot { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
}

/* ---------- Menu cellulare (rifatto) ---------- */
@media (max-width: 860px) {
  .nav-links {
    visibility: hidden; padding: 100px 24px 40px; gap: 18px;
    background: radial-gradient(120% 80% at 50% 0%, #4a3868, #1a1928 60%);
    transition: opacity .35s, visibility .35s;
  }
  body.menu-open .nav-links { visibility: visible; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav-links li { opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s; }
  body.menu-open .nav-links li { opacity: 1; transform: none; }
  body.menu-open .nav-links li:nth-child(2) { transition-delay: .06s; }
  body.menu-open .nav-links li:nth-child(3) { transition-delay: .12s; }
  body.menu-open .nav-links li:nth-child(4) { transition-delay: .18s; }
  body.menu-open .nav-links li:nth-child(5) { transition-delay: .24s; }
  .nav-links a { font-family: var(--serif); font-size: 2.3rem; letter-spacing: .02em; color: var(--text); text-align: center; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .nav-links a.cta {
    font-family: var(--sans); font-size: .85rem; letter-spacing: .16em; padding: 15px 34px; margin-top: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0;
  }
  .burger { position: relative; z-index: 2; width: 44px; height: 44px; }
}
@media (min-width: 861px) {
  .nav-links a.active { color: var(--text); }
  .nav-links a.active::after { width: 100%; }
}

/* ---------- Ritocchi home ---------- */
.services h3 small { font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; color: var(--accent); margin-left: 10px; vertical-align: middle; white-space: nowrap; }
.story { margin-top: 26px; display: grid; gap: 18px; max-width: 600px; }
.story p { color: rgba(255, 255, 255, .78); font-weight: 300; font-size: clamp(1rem, 1.35vw, 1.08rem); }
.story > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: 6px 12px 0 0; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Pagina Eventi ---------- */
.page-hero { min-height: 62svh; display: flex; align-items: flex-end; padding-top: 140px; padding-bottom: 40px; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(4rem, 13vw, 10rem); margin: 16px 0 18px; }
.page-hero h1 em { font-style: normal; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .page-hero { min-height: 70svh; } }
.empty {
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 50px);
  background: linear-gradient(135deg, rgba(58, 56, 80, .5), rgba(26, 25, 40, .4)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
}
.empty .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px rgba(242, 107, 58, .35); }
.empty h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; }
.empty p { color: var(--muted); font-weight: 300; margin-top: 6px; }
@media (max-width: 760px) { .empty { grid-template-columns: 1fr; } }
.years { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 36px; }
.years button, .years a {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted); transition: all .3s;
}
.years button:hover, .years a:hover { color: var(--text); border-color: var(--text); }
.years button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(242, 107, 58, .3); }
.years b { font-weight: 600; margin-left: 6px; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 24px); perspective: 1200px; }
.tile { position: relative; aspect-ratio: 4 / 5; cursor: pointer; transform-style: preserve-3d; transition: transform .25s ease-out; }
.tile .card-inner { border-radius: 14px; }
.tile.flipped .card-inner { transform: rotateY(180deg); }
.tile .face { box-shadow: 0 18px 40px rgba(10, 9, 18, .5); }
.tile .face.front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 60%);
}
.tile:hover .face.front::after { opacity: 1; }
.tile .chip {
  position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(26, 25, 40, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; transform: translateZ(30px);
}
.tile .chip b { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: 1.02rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .chip span { font-size: .7rem; letter-spacing: .12em; color: var(--accent); white-space: nowrap; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(100% 80% at 50% 20%, var(--plum), var(--dark)); }
.noimg img { width: 46%; opacity: .5; }
.tile .face.back { padding: 22px 20px; }
.tile .back .day { font-size: 3.6rem; }
.tile .back h3 { font-size: 1.35rem; }
.tile .back .row { display: flex; gap: 8px; flex-wrap: wrap; }
.tile .back .btn { padding: 10px 14px; font-size: .68rem; }
.more { display: flex; justify-content: center; margin-top: 40px; }h1 em, h2 em, .next h3 em { font-style: normal !important; }

/* ---------- Eventi: barra degli anni e pagine ---------- */
.years-bar { position: relative; display: flex; align-items: center; margin: 10px 0 36px; }
.years-bar .years { margin: 0; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.years-bar .years::-webkit-scrollbar { display: none; }
.years-bar .years button { flex: 0 0 auto; font-size: .9rem; padding: 10px 22px; }
.ybtn {
  position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(26, 25, 40, .92); color: var(--text); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, border-color .25s;
}
.ybtn.show { opacity: 1; pointer-events: auto; }
.ybtn:hover { border-color: var(--accent); color: var(--accent); }
.ybtn.prev { left: -6px; } .ybtn.next { right: -6px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 44px; }
.pager .arrow:disabled { opacity: .3; cursor: default; }
.pager .arrow:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Caricamento con il logo orizzontale ---------- */
.loader-inner { text-align: center; padding: 0 24px; }
.loader-logo { width: min(72vw, 360px); height: auto; margin: 0 auto; animation: loaderPulse 1.8s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.97); } }
.loader-inner .loader-line { margin-top: 26px; width: 160px; }
.loader-txt { margin-top: 14px; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }

/* ---------- Chi siamo: Continua ---------- */
.story-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2,.7,.2,1), opacity .5s, margin .6s; opacity: 0; margin: -18px 0 -10px; }
.story-more > div { overflow: hidden; min-height: 0; display: grid; gap: 18px; }
.story-more.open { grid-template-rows: 1fr; opacity: 1; margin: 0; }
.story-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: 0; padding: 4px 0; color: var(--accent);
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.story-toggle i { font-size: .7rem; transition: transform .4s; }
.story-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.story-toggle:hover { color: var(--peach); }

/* ---------- Frecce anni piu piccole ---------- */
.ybtn { padding: 0; gap: 0; grid-template-columns: none; align-items: center; border-top: 0; border-bottom: 0; width: 26px; height: 26px; margin-top: -13px; font-size: .62rem; border: 0; background: rgba(242, 107, 58, .9); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ybtn:hover { border: 0; background: var(--accent); color: #fff; }
.ybtn.prev { left: -4px; } .ybtn.next { right: -4px; }

/* ---------- Cellulare: niente che sporga ai lati ---------- */
html, body, main { overflow-x: clip; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile .chip { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; left: 8px; right: 8px; bottom: 8px; }
  .tile .chip b { font-size: .86rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tile .chip span { font-size: .62rem; }
  .tile .face.back { padding: 14px 12px; }
  .tile .back .day { font-size: 2.4rem; }
  .tile .back .month { font-size: .58rem; letter-spacing: .14em; margin-top: 4px; }
  .tile .back h3 { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tile .back p { font-size: .68rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tile .back .row { gap: 6px; }
  .tile .back .btn { padding: 8px 10px; font-size: .6rem; letter-spacing: .08em; }
}

/* SEO 1.0.1 (15/11/2026): etichetta dentro il titolo della home e domande frequenti */
.hero h1 { margin-top: 0; }
.hero h1 .label { display: flex; font-family: var(--sans); font-weight: 400; font-size: .74rem; line-height: 1.4; margin-bottom: 22px; }
.faq { border-top: 1px solid var(--line); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.15; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-weight: 300; margin-top: 12px; max-width: 70ch; }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
