/* ==========================================================================
   Autoracconigi — foglio di stile del sito statico
   Design: salone scuro + accento ambra, tipografia forte, card vetture.
   Nessuna dipendenza esterna: funziona su qualsiasi webserver statico.
   ========================================================================== */

:root {
  --navy-900: #0b1621;
  --navy-800: #10202f;
  --navy-700: #16293b;
  --navy-600: #1f3a52;
  --ink: #16202a;
  --body: #3c4a58;
  --muted: #6b7a89;
  --line: #e2e8ef;
  --line-strong: #cbd6e0;
  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --paper-3: #eef2f6;
  --accent: #e0a43c;
  --accent-dark: #b9821f;
  --accent-soft: #fdf4e3;
  --ok: #1c7a4b;
  --ok-soft: #e7f5ec;
  --warn: #a9631b;
  --warn-soft: #fdf1e2;
  --danger: #b0241d;
  --danger-soft: #fdeceb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 47, .06), 0 2px 8px rgba(16, 32, 47, .05);
  --shadow: 0 10px 30px -12px rgba(16, 32, 47, .22);
  --shadow-lg: 0 24px 60px -20px rgba(11, 22, 33, .35);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------- reset ------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ------------------------------ layout ------------------------------ */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: 820px; }
section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: #cfd9e4; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .eyebrow { color: var(--accent); }
/* i paragrafi prendono la larghezza del container: nessuna colonna a "ch" (scelta del titolare, 2026-11-11) */
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); }
/* --body è un colore da fondo chiaro: sul navy del hero e delle sezioni dark non si legge (1,6:1),
   quindi il paragrafo prende il colore della sezione (.hero #d9e3ee, .section--dark #cfd9e4). */
.hero .lead, .section--dark .lead { color: inherit; }
/* anche i link scritti dal pannello in un paragrafo devono restare leggibili sul navy */
.hero .lead a, .section--dark .lead a { color: var(--accent); }
.hero .lead a:hover, .section--dark .lead a:hover { color: #fff; }
.section-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ------------------------------- header ------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 33, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.brand__mark { flex: none; width: 42px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.12rem; letter-spacing: .04em; }
.brand__sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: .32rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.site-nav a {
  color: #dbe4ee; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .55rem .8rem; border-radius: 8px; transition: background .16s, color .16s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a[aria-current="page"] { color: var(--navy-900); background: var(--accent); }
.site-header__cta { display: flex; align-items: center; gap: .5rem; margin-left: .6rem; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; border-radius: 10px; padding: .5rem .75rem; font: inherit; font-weight: 600; cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  /* su mobile le CTA vanno a capo e l'header ha due righe: il padding verticale
     deve essere simmetrico, perche' con la sola base il tasto «Menu» tocca il
     bordo alto e tutto lo spazio respirabile finisce sotto (segnalato su iPhone).
     Il «gap: 1.4rem» del desktop vale anche tra le righe (22 px di vuoto): qui
     serve solo lo spazio orizzontale, tra le righe ne basta poco. */
  .site-header__inner { flex-wrap: wrap; gap: .4rem 1.4rem; padding-block: .6rem; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--navy-900); padding: .6rem clamp(1rem, 4vw, 2rem) 1.2rem; gap: .1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1); display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
  .site-header__cta { margin: 0; flex: 1 1 100%; }
  .site-header__cta .btn { flex: 1; justify-content: center; }
}

/* senza JavaScript niente animazioni di ingresso: i contenuti restano visibili */
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .8rem 1.25rem; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .16s ease, background .16s ease, color .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 8px 20px -10px rgba(224, 164, 60, .8); }
.btn--primary:hover { background: #f0b652; color: var(--navy-900); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: #16643d; color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8e1c17; color: #fff; }
.btn--sm { padding: .5rem .8rem; font-size: .84rem; border-radius: 9px; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* -------------------------------- hero -------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 12% 10%, #1d3550 0%, transparent 58%),
    linear-gradient(160deg, var(--navy-900) 0%, #14283c 55%, #0d1b28 100%);
  color: #d9e3ee; padding-block: clamp(3.4rem, 8vw, 6.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1100px 520px at 78% 12%, #000 0%, transparent 78%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__kicker {
  display: inline-flex; gap: .6rem; align-items: center; font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(224, 164, 60, .45); background: rgba(224, 164, 60, .1);
  padding: .45rem .85rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__note { margin-top: 1.4rem; font-size: .95rem; color: #9fb1c2; }
.hero__panel {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: clamp(1.2rem, 2.4vw, 1.8rem); backdrop-filter: blur(6px);
}
.hero__panel h2 { font-size: 1.15rem; color: #fff; margin-bottom: 1rem; }
.hero__panel ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .8rem; }
.hero__panel li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: #d3dde8; }
.hero__panel li svg { flex: none; margin-top: .18rem; color: var(--accent); }
.hero__contact { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.1rem; display: grid; gap: .35rem; }
.hero__contact a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.06rem; }
.hero__contact a:hover { color: var(--accent); }
.hero__contact span { font-size: .85rem; color: #94a7b9; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* -------------------------------- stats -------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: #fff; padding: 1.5rem 1.2rem; text-align: center; }
.stats strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy-800); line-height: 1; letter-spacing: -.03em; }
.stats span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------- cards -------------------------------- */

.cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); }
.cards--featured { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.car-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.car-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--paper-3); overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.car-card:hover .car-card__media img { transform: scale(1.04); }
.car-card__body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.car-card__title { font-size: 1.12rem; margin: 0; font-weight: 800; letter-spacing: -.015em; }
.car-card__title a { text-decoration: none; color: var(--ink); }
.car-card__title a:hover { color: var(--accent-dark); }
.car-card__trim { font-size: .9rem; color: var(--muted); margin-top: -.35rem; }
.car-card__specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .87rem; color: var(--body); margin-top: auto; padding-top: .3rem; }
.car-card__specs span { display: inline-flex; align-items: center; gap: .35rem; }
.car-card__price { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); padding-top: .85rem; margin-top: .2rem; }
.car-card__price .amount { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; line-height: 1; }
.car-card__price .new-price { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.car-card__rate { font-size: .8rem; color: var(--muted); text-align: right; }
.car-card__link { font-size: .85rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.car-card__link:hover { text-decoration: underline; }
.car-card[data-status="venduta"] { opacity: .82; }
.car-card[data-status="venduta"] .car-card__media::after {
  content: "VENDUTA"; position: absolute; inset: auto 0 0 0; background: rgba(11, 22, 33, .86); color: #fff;
  font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-align: center; padding: .45rem;
}
.car-card[data-status="riservata"] .car-card__media::after {
  content: "RISERVATA"; position: absolute; inset: auto 0 0 0; background: rgba(169, 99, 27, .92); color: #fff;
  font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-align: center; padding: .45rem;
}
.car-card__soldlink { position: absolute; inset: 0; z-index: 2; }
.car-card__soldlink:focus-visible { outline-offset: -4px; }

/* -------------------------------- badges -------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 7px;
  background: var(--paper-3); color: var(--navy-800); border: 1px solid var(--line);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge--accent { background: var(--accent); color: var(--navy-900); border-color: transparent; }
.badge--dark { background: var(--navy-900); color: #fff; border-color: transparent; }
.car-card__badges { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; flex-wrap: wrap; gap: .35rem; z-index: 3; pointer-events: none; }
.car-card__badges .badge { box-shadow: 0 2px 8px rgba(11, 22, 33, .18); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  padding: .3rem .62rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--body);
}
.chip--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-dark); }

/* ------------------------------- features ------------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.2rem, 2.6vw, 2rem); }
.feature { padding: 1.5rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .95rem;
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; font-size: .96rem; }
.section--dark .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.section--dark .feature p { color: #b9c7d5; }
.section--dark .feature__icon { background: rgba(224, 164, 60, .14); color: var(--accent); border-color: rgba(224, 164, 60, .3); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.3rem 1.4rem 1.3rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1; margin-bottom: .6rem;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* prezzo vero band */
.truth { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 900px) { .truth { grid-template-columns: 1fr; } }
.truth__box {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.section--dark .truth__box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); border-left-color: var(--accent); }
.truth__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.truth__list li { display: flex; gap: .7rem; align-items: flex-start; }
.truth__list svg { flex: none; margin-top: .25rem; color: var(--ok); }
.section--dark .truth__list svg { color: var(--accent); }

/* -------------------------------- filters -------------------------------- */

.filters {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end;
}
.filters .field { display: grid; gap: .3rem; }
.filters .field--search { grid-column: 1 / -1; }
.filters__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; }
.results-count { font-weight: 700; color: var(--ink); font-size: .95rem; }
.results-count b { color: var(--accent-dark); }
.no-js .filters__js-only { display: none; }

label { font-size: .82rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .62rem .75rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 164, 60, .22); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7a89' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 11px; padding-right: 2rem; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-dark); }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper-2); }
.empty-state h3 { margin-bottom: .4rem; }

/* -------------------------------- detail -------------------------------- */

.detail-head { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); grid-template-columns: 1.25fr .75fr; align-items: start; }
@media (max-width: 1000px) { .detail-head { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__main { position: relative; background: var(--navy-900); }
.gallery__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery__main .is-hidden { display: none; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11, 22, 33, .62); color: #fff; border: 0; width: 42px; height: 52px; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.gallery__nav:hover { background: rgba(11, 22, 33, .85); }
.gallery__nav--prev { left: 0; border-radius: 0 10px 10px 0; }
.gallery__nav--next { right: 0; border-radius: 10px 0 0 10px; }
.gallery__thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; background: var(--paper-2); border-top: 1px solid var(--line); }
.gallery__thumbs img { width: 92px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.gallery__thumbs img[aria-current="true"] { border-color: var(--accent); }
.gallery__count { margin-left: auto; align-self: center; font-size: .8rem; color: var(--muted); white-space: nowrap; padding-right: .3rem; }

.pricebox { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.pricebox__price { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy-900); letter-spacing: -.035em; line-height: 1; }
.pricebox__meta { color: var(--muted); font-size: .9rem; margin: .5rem 0 1rem; }
.pricebox__vat { font-size: .82rem; color: var(--muted); }
.pricebox .btn { width: 100%; margin-top: .5rem; }
.pricebox__truth { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--body); }
.pricebox__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; font-size: .9rem; }
.pricebox__list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding-bottom: .45rem; }
.pricebox__list span:first-child { color: var(--muted); }
.pricebox__list span:last-child { font-weight: 700; color: var(--ink); text-align: right; }

.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs caption { text-align: left; font-weight: 800; color: var(--ink); padding: 0 0 .6rem; font-size: 1.05rem; }
.specs th, .specs td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; overflow-wrap: anywhere; }
.specs th { width: 42%; color: var(--muted); font-weight: 600; background: var(--paper-2); }
@media (max-width: 620px) {
  .specs th { width: 44%; padding-right: .5rem; }
  .specs th, .specs td { font-size: .88rem; padding-block: .55rem; }
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs-tables { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.specs-tables > div { min-width: 0; }

.equipment { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.equipment li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; padding: .45rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.equipment li svg { flex: none; margin-top: .22rem; color: var(--ok); }

.cta-band {
  background: radial-gradient(90% 130% at 15% 20%, #22405e 0%, transparent 60%),
    linear-gradient(135deg, #0b1621 0%, #16293b 100%);
  color: #d5e0ec;
}
.cta-band h2 { color: #fff; }
.cta-band__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
@media (max-width: 880px) { .cta-band__inner { grid-template-columns: 1fr; } }
.cta-band__phone { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.cta-band__phone:hover { color: var(--accent); }

/* -------------------------------- info -------------------------------- */

.info-grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.info-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.info-card h3 svg { color: var(--accent-dark); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--muted); }
.hours td { text-align: right; font-weight: 700; color: var(--ink); }
.hours tr[data-today="true"] { background: var(--accent-soft); }
.hours tr[data-today="true"] th, .hours tr[data-today="true"] td { color: var(--accent-dark); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list .k { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumbs span { color: var(--line-strong); }

.notice { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; color: #5a4520; margin-bottom: 1.6rem; }
.notice svg { flex: none; margin-top: .2rem; color: var(--accent-dark); }
.notice--info { background: var(--paper-2); border-left-color: var(--navy-700); color: var(--body); }
.notice--warn { background: var(--warn-soft); border-left-color: var(--warn); color: #5f3d11; }

/* -------------------------------- footer -------------------------------- */

.site-footer { background: var(--navy-900); color: #9fb0c1; padding-block: 3rem 1.6rem; font-size: .93rem; }
.site-footer a { color: #dbe4ee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; font-size: .82rem; color: #7f93a6; }

/* mobile sticky contact bar (solo telefono/WhatsApp) */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 120;
    background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .mobile-bar a {
    flex: 1; text-align: center; padding: .85rem .4rem; color: #fff; text-decoration: none;
    font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: .45rem;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .mobile-bar a[data-accent="true"] { background: var(--accent); color: var(--navy-900); }
}

/* ------------------------------ reveal anim ------------------------------ */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------- print -------------------------------- */

@media print {
  .site-header, .site-footer, .mobile-bar, .pricebox .btn, .btn, .gallery__thumbs, .gallery__nav, .cta-band, .breadcrumbs { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .pricebox, .gallery, .info-card, .feature { box-shadow: none; }
  section { padding-block: .6rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
