/* Gabetti Torino Parella: layout comune (header, sezioni, FAQ, footer, menu mobile) */
picture { display: contents; }
picture > source { display: none; }
img { height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s, padding 0.4s var(--ease);
  padding: 22px 0;
}
header.site.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-logo { height: 76px; width: auto; display: block; background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: none; transition: padding 0.4s var(--ease); }
header.site.scrolled .brand-logo { padding: 7px 12px; box-shadow: none; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand span { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
header.site.scrolled .brand b,
header.site.scrolled .brand span,
header.site.scrolled .nav-links a { color: var(--ink); }
/* header is solid white: keep nav text always dark/legible */
header.site:not(.scrolled) .brand b { color: var(--ink); }
header.site:not(.scrolled) .brand span { color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: opacity 0.3s; }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { display: inline-flex; }
.burger { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0.62) 0%, rgba(20,18,15,0.58) 40%, rgba(20,18,15,0.85) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); padding-top: 120px; width: 100%; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.3rem); font-weight: 700; max-width: 16ch; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 52ch; margin-top: 26px; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta { position: absolute; top: 0; left: 0; right: 0; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: clamp(48px,9vh,110px); z-index: 2; writing-mode: vertical-rl; font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 14px; }
.scroll-hint::after { content: ""; height: 54px; width: 1px; background: rgba(255,255,255,0.6); }

/* Section frame */
section.block { padding-block: clamp(72px, 11vw, 150px); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.lede { font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; max-width: 20ch; margin: 22px auto 0; }
.section-head { max-width: 760px; margin: 0 auto; }
.section-head h2 { font-size: clamp(2rem, 4.3vw, 3.4rem); margin-top: 20px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 18px; }

/* Intro split */
.intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); }
.intro-badge { position: absolute; left: -22px; bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; box-shadow: 0 24px 60px -30px rgba(27,25,22,0.4); }
.intro-badge b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; display: block; line-height: 1; }
.intro-badge span { font-size: 0.85rem; color: var(--ink-soft); }
.intro h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.intro .body { margin-top: 22px; color: var(--ink-soft); display: grid; gap: 16px; font-size: 1.06rem; }

/* Services 3-col */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 38px 34px 34px; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(27,25,22,0.45); }
.svc .num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; }
.svc h3 { font-size: 1.4rem; margin-top: 30px; }
.svc p { color: var(--ink-soft); margin-top: 12px; font-size: 1rem; }

/* Stats band */
.stats { background: var(--ink); color: var(--bg); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat b { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; display: block; line-height: 1; letter-spacing: -0.03em; }
.stat span { color: rgba(255,255,255,0.62); font-size: 0.96rem; margin-top: 10px; display: block; }

/* FAQ */
.faq-wrap { max-width: 840px; margin: 56px auto 0; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--ink); }
.faq-q .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background 0.3s, border-color 0.3s; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--ink); top: 50%; left: 50%; transform: translate(-50%,-50%); transition: opacity 0.3s, transform 0.3s; }
.faq-q .ico::before { width: 12px; height: 1.5px; }
.faq-q .ico::after { width: 1.5px; height: 12px; }
.faq.open .faq-q .ico { background: var(--accent); border-color: var(--accent); }
.faq.open .faq-q .ico::before, .faq.open .faq-q .ico::after { background: #fff; }
.faq.open .faq-q .ico::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-soft); padding: 0 64px 0 4px; font-size: 1.05rem; }
.faq.open .faq-a { grid-template-rows: 1fr; }
.faq.open .faq-a p { padding-bottom: 28px; }

/* CTA */
.cta { position: relative; color: #fff; border-radius: var(--r-lg); overflow: hidden; padding: clamp(56px, 8vw, 110px) var(--gutter); text-align: center; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0.55), rgba(20,18,15,0.78)); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.cta p { color: rgba(255,255,255,0.86); max-width: 52ch; margin: 20px auto 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Footer */
footer.site { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand .foot-logo { height: 52px; width: auto; display: block; }
.foot-brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; }
.foot-brand p { color: var(--ink-soft); margin-top: 18px; max-width: 34ch; }
.loc h4 { font-size: 1.05rem; }
.loc p { color: var(--ink-soft); margin-top: 10px; font-size: 0.98rem; }
.loc a { color: var(--accent-deep); font-weight: 600; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-faint); font-size: 0.85rem; }

/* Mobile menu */
[data-mobile-menu] { position: fixed; inset: 0; z-index: 49; background: var(--bg); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease), opacity 0.4s; }
[data-mobile-menu].open { transform: none; opacity: 1; pointer-events: auto; }
[data-mobile-menu] a { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
[data-mobile-menu] .btn { margin-top: 24px; font-size: 1rem; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
  .intro-badge { left: 16px; }
  .services { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
  header.site.scrolled .burger span { background: var(--ink); }
  .burger.open span { background: var(--ink); }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .scroll-hint { display: none; }
  .brand-logo { height: 56px; padding: 8px 12px; }
  header.site { padding: 14px 0; }
  .hero-inner { padding-top: 100px; }
  .faq-q { gap: 16px; }
  .faq-a p { padding-right: 8px; }
}
@media (max-width: 520px) {
  .foot-top { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .brand-logo { height: 48px; padding: 7px 10px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  [data-mobile-menu] a { font-size: 1.5rem; }
}

/* Sedi (home) */
.sedi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.sede-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.sede-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(27,25,22,0.45); }
.sede-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sede-card-body { padding: 26px 28px 30px; }
.sede-card h3 { font-size: 1.45rem; }
.sede-card p { color: var(--ink-soft); margin-top: 6px; }
.sede-card .lnk { margin-top: 18px; }
.loc h4 a { color: inherit; font-weight: inherit; }
.loc h4 a:hover { color: var(--accent-deep); }
@media (max-width: 720px) { .sedi-grid { grid-template-columns: 1fr; } }

/* ---- Pagine sede ---- */
.pagina-sede header.site { background: #fff; box-shadow: 0 1px 0 var(--line-soft); }
.sede-top { padding-top: 132px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.88rem; color: var(--ink-faint); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-deep); }
.sede-hero { padding-block: 28px clamp(48px, 7vw, 96px); }
.sede-hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sede-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-top: 18px; }
.sede-answer { color: var(--ink-soft); font-size: 1.1rem; margin-top: 20px; max-width: 56ch; }
.sede-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sede-hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; }
.info-card h2 { font-size: 1.05rem; letter-spacing: 0; }
.info-card p { margin-top: 10px; color: var(--ink-soft); }
.info-card a { color: var(--accent-deep); font-weight: 600; }
.info-card .muted { font-size: 0.92rem; color: var(--ink-faint); }
.orari { margin-top: 10px; border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.orari th { text-align: left; font-weight: 600; color: var(--ink); padding: 4px 12px 4px 0; vertical-align: top; white-space: nowrap; }
.orari td { color: var(--ink-soft); padding: 4px 0; }
.servizi-sede { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.servizi-sede li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.servizi-sede strong { color: var(--ink); font-family: var(--font-display); }
.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.g-item { display: block; border-radius: var(--r-sm); overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.pagina-sede .faq-wrap { margin: 40px 0 0; }
.faq-a a { color: var(--accent-deep); font-weight: 600; }
.altra-sede { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 28px); }
.altra-sede img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); }
.altra-sede h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 14px; }
.altra-sede p { color: var(--ink-soft); margin-top: 10px; }
.altra-sede .lnk { margin-top: 18px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,14,12,0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1280px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-sm); margin: 0 auto; }
.lightbox figcaption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.24); }

@media (max-width: 980px) {
  .sede-hero-grid { grid-template-columns: 1fr; }
  .sede-hero-media { order: -1; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .altra-sede { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sede-top { padding-top: 104px; }
  .galleria { grid-template-columns: 1fr 1fr; gap: 8px; }
  .servizi-sede { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .info-grid { grid-template-columns: 1fr; }
  .sede-actions { flex-direction: column; align-items: stretch; }
  .sede-actions .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
.pagina-sede .section-head { margin: 0; }
@media (max-width: 720px) { .hero-img img { object-position: 50% 35%; } }
.servizi-testo { color: var(--ink-soft); font-size: 1.08rem; max-width: 70ch; margin-top: 24px; }
