/* =======================================================
   LAMPONI MOTORS — tema nero / argento / rosso (dal logo)
   ======================================================= */
:root {
  --red: #ff3131;
  --red-dark: #d92222;
  --red-soft: rgba(255, 49, 49, .14);
  --glow: rgba(255, 49, 49, .38);

  --black: #000000;
  --black-2: #0c0e0e;
  --panel: #0c0e0e;
  --panel-2: #141818;
  --line: #1e2222;
  --line-2: #2c3131;

  --white: #f4f4f4;
  --silver: #e4e4e4;
  --silver-2: #b4b6b6;
  --muted: #888b8b;

  --ok: #3ecf7a;
  --warn: #e0a52a;

  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--black);
  color: var(--silver);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--silver); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--white); line-height: 1.2; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section[id] { scroll-margin-top: 88px; }

/* ===== Header ===== */
.site-header {
  background: rgba(8, 8, 10, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.logo:hover { color: inherit; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--silver); font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.btn-admin {
  border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 999px;
  font-size: 13px; color: var(--silver-2);
}
.nav a.btn-admin:hover { border-color: var(--red); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--black-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open { max-height: 400px; }
  .nav a { width: 100%; padding: 15px 22px; border-top: 1px solid var(--line); }
  .nav a.btn-admin { border-radius: 0; border: 0; border-top: 1px solid var(--line); }
}

/* ===== Bottoni ===== */
.btn {
  display: inline-block; background: var(--red); color: #fff !important;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; border: none;
  cursor: pointer; font-size: 15px; transition: all .15s; letter-spacing: .3px;
}
.btn:hover { background: var(--red-dark); box-shadow: 0 8px 22px var(--glow); }
.btn-outline {
  background: transparent; border: 1px solid var(--line-2); color: var(--white) !important;
}
.btn-outline:hover { border-color: var(--red); background: var(--red-soft); box-shadow: none; }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: transparent; border: 1px solid #5a2530; color: #ff8a8a !important; }
.btn-danger:hover { background: #2a1418; box-shadow: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(1100px 480px at 50% -6%, rgba(255,49,49,.28), transparent 62%),
    linear-gradient(180deg, #0c0e0e 0%, #000000 100%);
  padding: 92px 0 100px;
}
/* Logo "illuminato" sullo sfondo: il blend "screen" rende invisibile il nero
   del file e fa risaltare solo cromo e rosso del logo. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("/public/img/logo.jpg") no-repeat center center;
  background-size: 620px auto;
  mix-blend-mode: screen; opacity: .18; pointer-events: none;
  transform: scale(1); transform-origin: center;
  animation: heroZoom 5s ease-out forwards;
}
/* Zoom foto (stile Canva): il logo compare in dissolvenza mentre si ingrandisce */
@keyframes heroZoom {
  from { transform: scale(1);    opacity: 0; }
  to   { transform: scale(1.12); opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; transform: none; }
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  color: var(--red); font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  font-size: 13px; margin-bottom: 14px; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero h1 { font-size: 48px; margin: 0 0 16px; letter-spacing: -1.2px; white-space: nowrap; text-shadow: 0 2px 16px rgba(0,0,0,.65); }
.hero h1 .accent { color: var(--red); }
.hero p { font-size: 20px; color: var(--silver); max-width: 620px; margin: 0 auto 30px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
/* Pulsanti secondari dell'hero: riempimento semi-trasparente per essere più leggibili sul logo di sfondo */
.hero .btn-outline { background: rgba(255, 49, 49, .16); border-color: var(--red); }
.hero .btn-outline:hover { background: rgba(255, 49, 49, .3); box-shadow: 0 8px 22px var(--glow); }
@media (max-width: 1024px) { .hero h1 { white-space: normal; font-size: 40px; } }

/* ===== Sezioni ===== */
.section { padding: 74px 0; }
/* Sezioni "alternate": nessuna riga netta, ma sfumatura morbida ai bordi */
.section.alt {
  background: linear-gradient(180deg,
    var(--black) 0%,
    var(--black-2) 110px,
    var(--black-2) calc(100% - 110px),
    var(--black) 100%);
}
.section-head { margin-bottom: 34px; }
.section-head .eyebrow {
  color: var(--red); font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  font-size: 12px; margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; margin: 0; letter-spacing: -.6px; }
.section-head p { color: var(--silver-2); margin: 10px 0 0; max-width: 640px; }

/* ===== Griglia auto ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, border-color .16s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); color: inherit; box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/10; background: #000 center/cover no-repeat; position: relative; }
.card .thumb.empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1f, #101013); color: var(--muted); font-weight: 600;
}
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .3px;
}
.badge.featured { background: var(--red); }
.badge.prenotata { background: var(--warn); color: #241a02; }
.card .body { padding: 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card .body h3 { margin: 0; font-size: 18px; }
.card .specs { color: var(--silver-2); font-size: 14px; }
.card .price { margin-top: auto; padding-top: 10px; font-size: 23px; font-weight: 800; color: #fff; }
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--silver); text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-contact { display: inline-block; align-self: flex-start; margin: 0 0 15px 17px; color: #fff; text-decoration: underline; font-weight: 400; font-size: 14px; }
.card-contact:hover { color: var(--red); }

/* Finestra "Contatta" */
.contact-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.contact-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(2px); }
.cm-box { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px 26px; width: 100%; max-width: 430px; box-shadow: var(--shadow); text-align: center; }
.cm-box .eyebrow { color: var(--red); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.cm-box h3 { margin: 6px 0 20px; font-size: 22px; }
.cm-x { position: absolute; top: 8px; right: 14px; background: none; border: 0; color: var(--silver-2); font-size: 28px; line-height: 1; cursor: pointer; }
.cm-x:hover { color: #fff; }

.empty-state {
  text-align: center; padding: 64px 22px; color: var(--silver-2);
  background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius);
}

/* Card noleggio */
.card .thumb.icon { font-size: 76px; }
.rental-cat { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.price .per { font-size: 14px; color: var(--silver-2); font-weight: 600; }
.card .body .btn { margin-top: 12px; align-self: flex-start; }

/* Vetrina "Consegnate" (foto in dissolvenza + descrizione laterale) */
.deliveries { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .deliveries { grid-template-columns: 1fr; gap: 22px; } }
.dshow-media { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.dslide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.dslide.active { opacity: 1; }
.dshow-info { position: relative; min-height: 168px; }
.dinfo { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.dinfo.active { opacity: 1; transform: none; pointer-events: auto; }
.dinfo h3 { font-size: 26px; margin: 0 0 6px; }
.dinfo .dyear { color: var(--red); font-weight: 800; letter-spacing: .5px; margin-bottom: 12px; }
.dinfo p { color: var(--silver-2); margin: 0; }
@media (max-width: 860px) { .dshow-info { min-height: 120px; } }

/* ===== Chi siamo ===== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about .lead { font-size: 18px; color: var(--silver); }
.about .lead p { margin: 0 0 16px; }
.about .lead .quote-sign { text-align: right; color: var(--red); font-weight: 700; font-style: italic; margin-top: 4px; }
.owners { display: flex; flex-direction: column; gap: 16px; }
.owner {
  display: flex; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 12px; padding: 16px 18px;
}
.owner .avatar {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a30, #141418); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
  border: 1px solid var(--line-2); background-size: cover; background-position: center;
}
.owner .avatar.big { flex-basis: 128px; width: 128px; height: 128px; background-position: center 40%; font-size: 0; }
.owner .who h4 { margin: 0 0 2px; font-size: 17px; }
.owner .who .role { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.owner .who p { margin: 5px 0 0; color: var(--silver-2); font-size: 14px; }
.owner .who .ig-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--silver); font-weight: 600; font-size: 14px; }
.owner .who .ig-link svg { color: var(--red); }
.owner .who .ig-link:hover { color: #fff; }

/* ===== Dove siamo ===== */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.25) contrast(1.05); }
.where-info { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.where-info .addr { font-size: 20px; color: var(--white); font-weight: 600; }
.where-info .line { display: flex; gap: 12px; align-items: center; color: var(--silver-2); }
.where-info .line .ico { color: var(--red); font-size: 20px; width: 24px; text-align: center; }

/* ===== Form ===== */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.fld { display: block; font-size: 13px; color: var(--silver-2); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=number], input[type=email], input[type=tel],
input[type=password], select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--black-2); color: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { min-height: 130px; resize: vertical; }
select option { color: #fff; background: #0c0e0e; }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: auto; }

.flash { padding: 15px 17px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.flash.ok { background: rgba(62,207,122,.12); color: var(--ok); border: 1px solid rgba(62,207,122,.35); }
.flash.err { background: var(--red-soft); color: #ff9a9a; border: 1px solid rgba(255,49,49,.4); }

/* ===== Dettaglio auto ===== */
.crumbs { color: var(--muted); font-size: 14px; margin: 24px 0 6px; }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin: 14px 0 40px; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }
.gallery .main {
  aspect-ratio: 16/10; border-radius: var(--radius); background: #000 center/cover no-repeat;
  border: 1px solid var(--line);
}
.gallery .main.empty { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#1a1a1f,#101013); color: var(--muted); font-weight: 600; font-size: 18px; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs img { width: 96px; height: 66px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; background: #000; }
.gallery .thumbs img:hover, .gallery .thumbs img.sel { border-color: var(--red); }
.detail h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.5px; }
.detail .price-big { font-size: 34px; font-weight: 800; color: #fff; margin: 10px 0 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table td:first-child { color: var(--silver-2); width: 45%; }
.spec-table td:last-child { font-weight: 600; color: var(--white); }
.description { white-space: pre-wrap; color: var(--silver); }
.status-line { margin: 4px 0 16px; }

.tag { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.tag.disponibile { background: rgba(62,207,122,.14); color: var(--ok); }
.tag.prenotata { background: rgba(224,165,42,.16); color: var(--warn); }
.tag.venduta { background: var(--red-soft); color: #ff9a9a; }

/* ===== Admin ===== */
.adminbar { background: #000; border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 0; z-index: 60; }
.adminbar .bar { display: flex; justify-content: space-between; align-items: center; }
.adminbar .brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.adminbar .brand img { height: 34px; }
.adminbar .links { display: flex; gap: 22px; align-items: center; }
.adminbar .links a { color: var(--silver); font-weight: 600; font-size: 14px; }
.adminbar .links a:hover { color: #fff; }
.pill { background: var(--red); color: #fff; padding: 1px 9px; border-radius: 999px; font-size: 12px; margin-left: 5px; }

.page-head { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 20px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 27px; }

.table { width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { background: var(--black-2); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .6px; }
.table tr:last-child td { border-bottom: none; }
.table .mini-thumb { width: 66px; height: 46px; object-fit: cover; border-radius: 6px; background: #000; }
.status-select { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; background: var(--black-2); color: #fff; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.login-wrap { max-width: 400px; margin: 8vh auto; }
.login-wrap .logo-c { text-align: center; margin-bottom: 24px; }
.login-wrap .logo-c img { height: 60px; margin: 0 auto; }

.thumbs-edit { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.thumb-edit { position: relative; }
.thumb-edit img { width: 128px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); background: #000; }
.thumb-edit button { position: absolute; top: -9px; right: -9px; background: var(--red); color: #fff;
  border: none; border-radius: 999px; width: 26px; height: 26px; cursor: pointer; font-weight: 700; line-height: 1; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
@media (max-width: 700px) { .stat-cards { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat .n { font-size: 30px; font-weight: 800; color: #fff; }
.stat .l { color: var(--silver-2); font-size: 14px; }

/* ===== Footer ===== */
.site-footer { background: #000; margin-top: 70px; padding: 46px 0 30px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.site-footer img.flogo { height: 40px; margin-bottom: 12px; }
.site-footer h4 { margin: 0 0 12px; font-size: 15px; }
.site-footer p, .site-footer a { color: var(--silver-2); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; color: var(--muted); font-size: 13px; text-align: center; }

.muted { color: var(--silver-2); }
.center { text-align: center; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 30px; }

/* ===== Versione smartphone ===== */
/* Barra azioni fissa in basso (solo telefono) */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(8, 8, 10, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a { flex: 1; text-align: center; padding: 13px 10px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Header compatto */
  .site-header .bar { height: 62px; }
  .logo img { height: 36px; }
  .nav { top: 62px; }

  /* Hero: logo di sfondo SEMPRE intero, mai tagliato */
  .hero { padding: 52px 0 60px; }
  .hero::after { background-size: contain; background-position: center; }
  .hero h1 { font-size: 34px; white-space: normal; }
  .hero p { font-size: 17px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero .cta-row .btn { width: 100%; text-align: center; padding: 15px 20px; }

  /* Sezioni: ritmo da telefono, H1 resta il testo più grande */
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }

  /* Card auto */
  .grid { gap: 16px; }
  .card .body h3 { font-size: 17px; }
  .card .price { font-size: 21px; }

  /* Consegne e Chi siamo */
  .dinfo h3 { font-size: 21px; }
  .owner { flex-direction: column; text-align: center; }
  .owner .avatar.big { flex-basis: auto; width: 150px; height: 150px; }

  /* Mappa e footer */
  .map-box, .map-box iframe { min-height: 260px; }
  .site-footer { margin-top: 46px; padding-bottom: 20px; }
  .site-footer .cols { flex-direction: column; gap: 24px; }

  /* Spazio per la barra fissa in basso */
  body { padding-bottom: 66px; }
  .mobile-bar { display: flex; }
}

/* Pannello di gestione comodo da smartphone */
@media (max-width: 680px) {
  .adminbar .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .adminbar .links { flex-wrap: wrap; gap: 12px 18px; }
  .adminbar .brand img { height: 30px; }

  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head .btn { width: 100%; text-align: center; }

  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 12px 6px; }
  .table td { border: none; padding: 6px 12px; }
  .table .mini-thumb { width: 100%; height: 190px; margin-bottom: 4px; }
  .status-select { width: 100%; }
  .row-actions { flex-direction: column; }
  .row-actions .btn, .row-actions form, .row-actions form .btn { width: 100%; text-align: center; }
}

/* ===== Privacy, consenso e cookie ===== */
/* Pagina informativa */
.legal { max-width: 820px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--silver); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--red); }

/* Spunta consenso nei moduli */
.privacy-check { margin: 2px 0 16px; font-size: 14px; color: var(--silver-2); align-items: flex-start; }
.privacy-check input { margin-top: 3px; }
.privacy-check a { color: var(--red); }

/* Overlay consenso mappa */
.map-consent {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background: var(--black-2); color: var(--silver-2); border: 0; cursor: pointer;
  font-size: 14px; font-family: inherit;
}
.map-consent[hidden] { display: none; }
.map-consent .mc-ico { font-size: 30px; color: var(--red); }
.map-consent .mc-btn { display: inline-block; background: var(--red); color: #fff; padding: 10px 22px; border-radius: 10px; font-weight: 700; }
.map-consent:hover .mc-btn { background: var(--red-dark); }

/* Banner cookie */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: rgba(8,8,10,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line-2);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .cb-text { color: var(--silver-2); font-size: 13.5px; max-width: 760px; }
.cookie-banner .cb-text a { color: var(--red); }
.cookie-banner .cb-actions { display: flex; gap: 10px; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; bottom: 66px; }
  .cookie-banner .cb-actions { justify-content: center; }
}
