/*
Theme Name: Libralesso Officina
Theme URI: https://officinacarrozzerialibralesso.it
Author: Officina Carrozzeria Libralesso
Description: Tema vetrina minimal bianco, rosso e nero per officina e carrozzeria, con richiesta di preventivo (email e WhatsApp), servizi, galleria e SEO locale. Nessun prezzo, nessun pagamento online.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: libralesso
*/

/* ==========================================================================
   Token – proporzioni colore: ~60% bianco, ~30% nero, ~10% rosso
   ========================================================================== */
:root {
  --red: #d6141d;
  --red-d: #b00f17;
  --black: #0d0d0e;
  --ink: #17181a;
  --muted: #5a5d63;
  --line: #e4e4e7;
  --soft: #f5f5f6;
  --white: #fff;
  --r: 8px;
  --w: 1160px;
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 1rem/1.65 var(--font); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-d); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--black); color: #fff; padding: .6rem 1rem; border-radius: var(--r); }
.container { width: min(var(--w), 100% - 2rem); margin-inline: auto; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: var(--black); }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.eyebrow { color: var(--red); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .8rem; }

/* ==========================================================================
   Pulsanti
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 6px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--black); }
.brand:hover { color: var(--black); }
.brand-mark { width: 26px; height: 30px; background: linear-gradient(105deg, var(--red) 0 52%, transparent 52% 62%, var(--black) 62%); transform: skewX(-12deg); flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
.brand-text small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.custom-logo { max-height: 54px; width: auto; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--black); transition: transform .2s, opacity .2s; }
.nav-toggle .bars { top: 22px; }
.nav-toggle .bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav .menu, .site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--black); text-decoration: none; font-weight: 700; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--black); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1rem 1.4rem; display: none; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .menu, .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--black); color: #fff; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(5rem, 10vw, 8rem); background-size: cover; background-position: center; }
.hero--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 14, .92) 30%, rgba(13, 13, 14, .55)); }
.hero::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; right: 6%; width: 22%; transform: skewX(-14deg);
  background: linear-gradient(90deg, var(--red) 0 55%, transparent 55% 68%, #fff 68% 76%, transparent 76%); opacity: .95; pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-tag { font-size: 1.1rem; font-style: italic; color: #e8e8ea; margin-bottom: .6rem; }
.hero-lead { max-width: 34rem; color: #cfcfd3; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
@media (max-width: 899px) { .hero::after { width: 16%; right: -2%; opacity: .5; } .hero h1 { max-width: 100%; } }

.open-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; margin: 0 0 1rem; min-height: 1.3em; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-status.is-open::before { background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .25); }
.open-status.is-closed::before { background: var(--red); }
.open-status--hero { background: rgba(255, 255, 255, .1); padding: .4rem .8rem; border-radius: 999px; color: #fff; }

.facts { list-style: none; margin: -2.6rem 0 0; padding: 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r); box-shadow: var(--shadow); }
.facts li { padding: 1.1rem 1.2rem; display: grid; border-right: 1px solid var(--line); }
.facts li:nth-child(2n) { border-right: 0; }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts strong { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--black); }
.facts span { color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts li:last-child { border-right: 0; }
  .facts li:nth-child(n+3) { border-top: 0; }
}

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); }
.section-lead { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; font-size: 1.08rem; }

.page-hero { background: var(--black); color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-bottom: 4px solid var(--red); }
.page-hero h1 { color: #fff; margin-bottom: .4em; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.page-hero .lead { color: #c9c9ce; margin-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: #a9a9af; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: #d7d7db; }
.crumbs [aria-current] { color: #fff; }

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; text-transform: none; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose--narrow { max-width: 50rem; }
.prose--intro { margin-bottom: 1.6rem; }
.prose .lead { color: var(--ink); font-size: 1.25rem; }

.split { display: grid; gap: 2.2rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .split--center { align-items: center; }
  .split--form { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .side { position: sticky; top: 100px; }
}
.side { display: grid; gap: 1.2rem; }
.side-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; background: #fff; }
.side-card h2, .side-card h3 { font-size: 1.15rem; text-transform: none; }
.side-card--dark { background: var(--black); color: #e6e6e9; border-color: var(--black); }
.side-card--dark h2 { color: #fff; }
.side-or { text-align: center; color: var(--muted); margin: .6rem 0; font-size: .9rem; }

/* ==========================================================================
   Servizi (card)
   ========================================================================== */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card::after { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .2s; border-radius: 0 3px 3px 0; }
.card:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card:hover::after { transform: scaleY(1); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--black); color: #fff; margin-bottom: .6rem; }
.card-icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; margin-bottom: .8rem; }
.card-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--red); font-weight: 700; font-size: .92rem; }
.card-more .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Come funziona
   ========================================================================== */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 1.2rem; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 3.4rem 1.3rem 1.3rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; border-radius: var(--r) 0 var(--r) 0; }
.steps li:last-child::before { background: var(--red); }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.steps-note { color: var(--muted); font-size: .92rem; max-width: 46rem; }

/* ==========================================================================
   Citazione, CTA, indirizzi
   ========================================================================== */
.quote-card { background: var(--black); color: #fff; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r); position: relative; border-left: 8px solid var(--red); }
.quote-card p { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.25; font-style: italic; margin-bottom: 1rem; }
.quote-card span { color: #b9b9bf; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }

.cta-band { background: var(--red); color: #fff; padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.cta-in { display: grid; gap: 1.4rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; } }

.addr { display: flex; gap: .7rem; align-items: flex-start; font-style: normal; margin-bottom: .8rem; }
.addr .icon { width: 22px; height: 22px; color: var(--red); margin-top: 2px; flex: none; }
.addr a { color: var(--ink); font-weight: 600; }

.hours { margin: 0 0 .8rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; }
.hours-note { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); margin: 0; }
.hours-note .icon { width: 20px; height: 20px; color: var(--red); }
.hours--dark div { border-color: rgba(255, 255, 255, .15); }

/* ==========================================================================
   Notice
   ========================================================================== */
.notice { background: var(--soft); border-left: 4px solid var(--black); border-radius: 0 var(--r) var(--r) 0; padding: .9rem 1.1rem; font-size: .95rem; margin: 1rem 0; }
.notice--alert { border-left-color: var(--red); background: #fdeeee; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }

/* ==========================================================================
   Modulo preventivo
   ========================================================================== */
.qform { display: grid; gap: 1.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qblock { border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; margin: 0; min-width: 0; background: #fff; }
.qblock legend { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.15rem; padding: 0 .5rem; margin-left: -.5rem; color: var(--black); }
.qblock legend small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.qblock .n { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--black); color: #fff; font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .2rem 0 .8rem; }
.grid2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; align-content: start; margin-bottom: .4rem; }
.field label { font-weight: 700; font-size: .93rem; display: flex; align-items: center; gap: .4rem; }
.field label .icon { width: 18px; height: 18px; color: var(--red); }
.qform input[type="text"], .qform input[type="tel"], .qform input[type="email"], .qform input[type="number"], .qform input[type="date"], .qform select, .qform textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c9c9ce; border-radius: 6px; padding: .8rem .9rem; min-height: 48px;
}
.qform textarea { min-height: 110px; resize: vertical; }
.qform input:focus, .qform select:focus, .qform textarea:focus { border-color: var(--black); outline: 3px solid rgba(214, 20, 29, .35); outline-offset: 0; }
.qform input[type="file"] { font: inherit; padding: .6rem; border: 1.5px dashed #c9c9ce; border-radius: 6px; background: var(--soft); width: 100%; }
.qform .is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red-d); font-weight: 700; font-size: .88rem; margin: .2rem 0 0; min-height: 0; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1.5px solid #c9c9ce; border-radius: 999px; font-weight: 600; font-size: .95rem; background: #fff; transition: all .15s; }
.chip input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: #fff; background: var(--red); border-radius: 50%; width: 1.2rem; height: 1.2rem; display: inline-grid; place-items: center; font-size: .75rem; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip:hover span { border-color: var(--black); }

.radios { display: grid; gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .radios { grid-template-columns: repeat(3, 1fr); } }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.radio span { display: grid; gap: .15rem; padding: .8rem 1rem; border: 1.5px solid #c9c9ce; border-radius: var(--r); height: 100%; }
.radio small { color: var(--muted); font-size: .82rem; }
.radio input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); background: #fff7f7; }
.radio input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; margin: 1rem 0 .2rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }

.form-status { font-weight: 700; margin: 1rem 0 .6rem; min-height: 1.4em; }
.form-status.is-error { color: var(--red-d); }

.qsuccess { text-align: center; border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--r); padding: clamp(1.6rem, 5vw, 3rem); background: #fff; }
.qsuccess[hidden] { display: none; }
.qsuccess-icon { display: grid; place-items: center; width: 64px; height: 64px; background: var(--black); color: #fff; border-radius: 50%; margin: 0 auto 1rem; }
.qsuccess-icon .icon { width: 32px; height: 32px; }
.qsuccess h2 { text-transform: none; }

.mini-steps { padding-left: 1.2rem; margin: 0 0 1rem; }
.mini-steps li { margin-bottom: .7rem; }
.mini-steps li::marker { color: var(--red); font-weight: 800; }
.mini-note { font-size: .9rem; color: #b9b9bf; margin: 0; }

.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* Zone servite e FAQ servizio */
.area-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-list li { border: 1.5px solid var(--black); border-radius: 999px; padding: .35rem .95rem; font-weight: 700; font-size: .92rem; }
.svc-faq { margin-top: 2.2rem; }
.svc-faq h2 { font-size: 1.4rem; text-transform: none; }

/* ==========================================================================
   Galleria
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip-btn { font: 700 .9rem var(--font); padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid #c9c9ce; background: #fff; cursor: pointer; }
.chip-btn:hover { border-color: var(--black); }
.chip-btn.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.4rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.g-item { display: block; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.05); }
.g-item[hidden] { display: none; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); max-width: 40rem; margin: 0 auto; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: .8rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }


/* ==========================================================================
   Recensioni
   ========================================================================== */
.stars { position: relative; display: inline-block; width: 5.4em; height: 1em; font-size: 1.05rem; vertical-align: -.12em;
  background: linear-gradient(90deg, #c9c9ce 0 100%); -webkit-mask: var(--star-mask) repeat-x left / 1.08em 1em; mask: var(--star-mask) repeat-x left / 1.08em 1em; }
.stars-on { position: absolute; inset: 0 auto 0 0; background: var(--red); }
:root { --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 18l-6.4 3.6L7 14.500 1.700 9.500l7.200-.9z'/%3E%3C/svg%3E"); }

.rating-badge { display: inline-flex; align-items: center; gap: .6rem; margin: 1.2rem 0 0; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: .92rem; }
.rating-badge:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.rating-badge .stars { background: rgba(255, 255, 255, .35); }
.rating-badge .stars-on { background: #ff5a62; }
.rating-badge + .hero-actions { margin-top: 1rem; }

.rev-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 1.4rem 0 2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--r); background: #fff; }
.rev-score { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 900; line-height: 1; color: var(--black); }
.rev-count { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.rev-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-left: auto; }
.rev-summary--link { border-left-color: var(--black); }
.rev-linktext { margin: 0; max-width: 34rem; }
.rev-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.review header { display: flex; align-items: center; gap: .7rem; }
.rev-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.rev-author { display: block; line-height: 1.2; }
.rev-when { color: var(--muted); font-size: .85rem; }
.review blockquote { margin: 0; flex: 1; font-size: .98rem; }
.rev-link { font-size: .88rem; font-weight: 700; }
.rev-note { margin: 1.4rem 0 0; color: var(--muted); font-size: .85rem; max-width: 46rem; }
.rev-compact .rev-sum-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; font-size: .95rem; }
.rev-mini { margin: 0 0 .9rem; padding-left: .8rem; border-left: 3px solid var(--red); }
.rev-mini blockquote { margin: 0 0 .2rem; font-size: .93rem; }
.rev-mini figcaption { color: var(--muted); font-size: .85rem; font-weight: 700; }
.rev-more { margin: 0; font-size: .9rem; }
@media (max-width: 759px) { .rev-actions { margin-left: 0; width: 100%; } .rev-actions .btn { flex: 1; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); color: #c9c9ce; padding-top: 3.4rem; border-top: 4px solid var(--red); }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--red); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-bottom: 2.4rem; }
.f-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.f-tag { font-style: italic; color: #fff; }
.f-title { color: #fff; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .95rem; }
.f-note { color: #fff; font-weight: 700; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.menu-footer { display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }

/* Barra azioni mobile */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--black); border-top: 3px solid var(--red); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .4rem; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; }
.mobile-bar .icon { width: 22px; height: 22px; }
.mobile-bar .is-main { background: var(--red); }
@media (max-width: 759px) { body { padding-bottom: 66px; } }
@media (min-width: 760px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-header, .mobile-bar, .cta-band, .site-footer { display: none; } }
