/* ==========================================================================
   Sito pubblico The Capitol Hill — stile Google (Material 3) in arancione
   Nessun passaggio di build. Per cambiare il colore del marchio modifica
   --brand / --primary qui sotto.
   ========================================================================== */

:root {
  --brand: #fd9526;            /* arancione Capitol Hill (logo, accenti) */
  --brand-2: #f6a04d;
  --primary: #b35000;          /* pulsanti e link: arancione scuro, leggibile su bianco */
  --primary-hover: #943f00;
  --on-primary: #fff;
  --primary-container: #ffe3cc;
  --on-primary-container: #2f1400;
  --primary-soft: #fff4ea;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-1: #f8f9fa;
  --surface-2: #f1f3f4;
  --surface-3: #e8eaed;
  --text: #202124;
  --text-2: #4d5156;
  --text-3: #70757a;
  --outline: #dadce0;
  --outline-strong: #9aa0a6;

  --green: #137333; --green-bg: #e6f4ea;
  --amber: #8a5300; --amber-bg: #fef0cd;
  --red: #c5221f; --red-bg: #fce8e6;
  --blue: #1a5fb4; --blue-bg: #e3edfb;
  --dark: #fff; --dark-bg: #3c4043;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-2: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
  --shadow-search: 0 1px 6px rgba(32,33,36,.28);
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #ff9636; --brand-2: #ffb36b;
    --primary: #ffb784; --primary-hover: #ffd0ad; --on-primary: #3a1a00;
    --primary-container: #5a2b00; --on-primary-container: #ffdcc4; --primary-soft: #2a1d14;
    --bg: #1f1f1f; --surface: #28292a; --surface-1: #232425; --surface-2: #303134; --surface-3: #3c4043;
    --text: #e8eaed; --text-2: #bdc1c6; --text-3: #9aa0a6; --outline: #3c4043; --outline-strong: #5f6368;
    --green: #81c995; --green-bg: #0f3d1f; --amber: #fdd663; --amber-bg: #4a3a00;
    --red: #f28b82; --red-bg: #5c1b17; --blue: #8ab4f8; --blue-bg: #1c3557; --dark-bg: #e8eaed; --dark: #202124;
    --shadow-search: 0 1px 6px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/roboto-latin.woff") format("woff"); }
@font-face { font-family: "Material Symbols Outlined"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/material-symbols-outlined.woff") format("woff"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.25; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: 14px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; vertical-align: middle; letter-spacing: normal; text-transform: none; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased; user-select: none; flex-shrink: 0;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ---------------------------------------------------------------- Logo */

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { height: 34px; width: auto; flex-shrink: 0; margin-top: -4px; }
.logo-word { font-size: 22px; line-height: 1; }
.logo-word b { font-weight: 500; color: var(--brand); }
.logo-word span { color: var(--text); }
.logo.xl { flex-direction: column; gap: 10px; }
.logo.xl .logo-mark { height: 104px; width: auto; margin: 0 0 4px; }
.logo.xl .logo-word { font-size: clamp(44px, 9vw, 76px); letter-spacing: -.035em; }
.tagline { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }

/* ---------------------------------------------------------------- Pulsanti */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 24px;
  border-radius: var(--pill); border: 1px solid transparent; background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 500; letter-spacing: .01em; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: var(--primary-hover); box-shadow: var(--shadow-1); }
.btn .ms { font-size: 18px; margin-left: -6px; }
.btn.lg { min-height: 48px; padding: 0 28px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn.tonal:hover { box-shadow: var(--shadow-1); filter: brightness(.98); }
.btn.outlined { background: transparent; color: var(--primary); border-color: var(--outline); }
.btn.outlined:hover { background: var(--primary-soft); box-shadow: none; }
.btn.text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn.text:hover { background: var(--primary-soft); box-shadow: none; }
.btn.google { background: var(--surface-1); color: var(--text); border-color: var(--surface-1); border-radius: 8px; padding: 0 16px; height: 36px; min-height: 36px; font-size: 14px; }
.btn.google:hover { border-color: var(--outline); box-shadow: 0 1px 1px rgba(0,0,0,.1); background: var(--surface-1); }
.btn.whatsapp { background: #1f8f4e; color: #fff; }
.btn.whatsapp:hover { background: #17723e; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: rgba(60,64,67,.08); text-decoration: none; }

/* ---------------------------------------------------------------- Header */

.topbar { display: flex; align-items: center; gap: 4px; padding: 6px 12px; min-height: 60px; position: relative; z-index: 3; }
.topbar .spacer { flex: 1; }
.topbar a.link { color: var(--text); font-size: 14px; padding: 6px 10px; border-radius: var(--pill); }
.topbar a.link:hover { text-decoration: underline; }
.topbar .btn { margin-left: 6px; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--outline); }
.site-header .bar { display: flex; align-items: center; gap: 12px 20px; padding: 14px 16px 10px; max-width: none; }
.site-header .bar > .apps { margin: 0 -10px 0 -6px; }
.site-header .logo-word { font-size: 22px; }
.site-header .search-box { flex: 1; max-width: 690px; }
.site-header .right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 1100px) { .site-header .bar { padding-left: 28px; } }
@media (max-width: 760px) {
  .site-header .bar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px 8px; }
  .site-header .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .site-header .hide-sm { display: none !important; }
}

/* Menu "app" stile Google */
.apps { position: relative; }
.apps-panel {
  position: absolute; left: 0; top: 46px; width: 320px; max-width: calc(100vw - 24px); padding: 12px; z-index: 60;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); display: none;
  grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.apps.open .apps-panel { display: grid; }
.apps-panel a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 10px; border-radius: var(--radius-l); color: var(--text); font-size: 13px; text-align: center; line-height: 1.2; }
.apps-panel a:hover { background: var(--primary-soft); text-decoration: none; }
.apps-panel .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); }
.apps-panel a:nth-child(3n+2) .ic { background: var(--surface-2); color: var(--primary); }
.apps-panel .ic .ms { font-size: 24px; }

/* ---------------------------------------------------------------- Casella di ricerca */

.search-box { position: relative; }
.search-pill {
  display: flex; align-items: center; height: 48px; padding: 0 6px 0 16px; gap: 10px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-xl);
  transition: box-shadow .15s, border-color .15s;
}
.search-pill:hover, .search-pill:focus-within { box-shadow: var(--shadow-search); border-color: rgba(223,225,229,0); }
.search-pill > .ms { color: var(--text-3); font-size: 22px; }
.search-pill input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--text); }
.search-pill input::-webkit-search-cancel-button { display: none; }
.search-pill .sep { width: 1px; height: 26px; background: var(--outline); }
.search-pill .icon-btn { width: 38px; height: 38px; color: var(--primary); }
.search-box.lg .search-pill { height: 54px; border-radius: 28px; padding-left: 20px; }
.search-box.suggesting .search-pill { border-radius: 24px 24px 0 0; box-shadow: var(--shadow-search); border-color: transparent; }
.search-box.lg.suggesting .search-pill { border-radius: 28px 28px 0 0; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50; display: none; background: var(--surface);
  border-radius: 0 0 24px 24px; box-shadow: 0 4px 6px rgba(32,33,36,.28); padding: 0 0 10px; overflow: hidden;
}
.suggest::before { content: ""; display: block; height: 1px; margin: 0 16px 6px; background: var(--outline); }
.search-box.suggesting .suggest { display: block; }
.suggest a { display: flex; align-items: center; gap: 14px; padding: 7px 20px; color: var(--text); font-size: 16px; }
.suggest a:hover, .suggest a.active { background: var(--surface-2); text-decoration: none; }
.suggest a .ms { color: var(--text-3); font-size: 20px; }
.suggest a small { color: var(--text-3); font-size: 13px; margin-left: auto; white-space: nowrap; }
.suggest a b { font-weight: 700; }

/* ---------------------------------------------------------------- Home */

.home-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: min(88svh, 620px); margin-top: -60px; padding: 84px 16px 56px; background: var(--bg); isolation: isolate;
}
/* disegno (sfondo trasparente) dietro logo e ricerca */
.hero-bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1420px, 104%); max-width: none; height: auto; z-index: -2; opacity: .5; pointer-events: none; user-select: none; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 34% 46% at 50% 50%, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 45%, transparent 100%); }
.hero-content { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.home-hero .search-pill { box-shadow: 0 2px 14px rgba(32,33,36,.16); }
.home-hero .contract-tabs button { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.topbar { background: transparent; }
@media (max-width: 760px) {
  .home-hero { min-height: 560px; padding-top: 80px; }
  /* telefono: altezza piena, proporzioni originali, inquadrato sul ragazzo con il visore */
  .hero-bg { width: auto; max-width: none; height: 100%; top: 0; left: 50%; transform: translateX(-27%); opacity: .38; }
  .home-hero::before { background: radial-gradient(ellipse 70% 40% at 50% 52%, var(--bg), transparent); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg { opacity: .4; } }
.home-hero .logo.xl { margin-bottom: 4px; }
.home-hero form { width: 100%; max-width: 584px; margin-top: 30px; }
.contract-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.contract-tabs button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--outline); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s, color .15s;
}
.contract-tabs button:hover { background: var(--primary-container); color: var(--on-primary-container); border-color: transparent; }
.contract-tabs button:hover .ms { font-variation-settings: "FILL" 1; }
.contract-tabs .ms { font-size: 18px; color: var(--brand); }
.home-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.offered { margin-top: 30px; font-size: 14px; color: var(--text-2); line-height: 2; }
.offered a { margin: 0 4px; }
.scroll-hint { margin-top: 36px; color: var(--text-3); font-size: 13px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.scroll-hint:hover { text-decoration: none; color: var(--primary); }

.section { padding: 56px 0; }
.section.alt { background: var(--surface-1); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.section-head p { margin: 6px 0 0; color: var(--text-2); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--outline); color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow-1); }
.stat .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); }
.stat b { display: block; font-size: 24px; font-weight: 500; line-height: 1.1; }
.stat small { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.promo { border-radius: var(--radius-xl); padding: 28px; background: var(--surface); border: 1px solid var(--outline); display: flex; flex-direction: column; gap: 10px; }
.promo.accent { background: linear-gradient(140deg, #ffe3cc, #fff4ea 70%); border-color: transparent; }
.promo h3 { font-size: 22px; }
.promo p { color: var(--text-2); margin: 0; flex: 1; }
.promo .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.promo .ic .ms { font-size: 28px; }
.promo .btn { align-self: flex-start; margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .promo.accent { background: linear-gradient(140deg, #4a2600, #2a1d14 70%); } }
@media (max-width: 900px) { .promo-grid { grid-template-columns: minmax(0,1fr); } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.member { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--outline); }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 18px; flex-shrink: 0; background: var(--brand); }
.member b { display: block; font-weight: 500; }
.member small { color: var(--text-2); font-size: 13px; }
.member a { font-size: 14px; }

/* ---------------------------------------------------------------- Schede immobile (card) */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 24px 20px; }
.card { position: relative; display: flex; flex-direction: column; color: var(--text); border-radius: var(--radius-l); }
.card:hover { text-decoration: none; }
.card .ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--surface-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card .count { position: absolute; right: 10px; bottom: 10px; background: rgba(32,33,36,.72); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: var(--pill); display: inline-flex; gap: 4px; align-items: center; }
.card .count .ms { font-size: 15px; }
.card .body { padding: 12px 2px 0; }
.card .price { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.card .price small { font-size: 14px; color: var(--text-2); font-weight: 400; }
.card h3 { font-size: 15px; font-weight: 400; color: var(--text); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
.card .where { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.card .where .ms { font-size: 17px; color: var(--text-3); }
.specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-top: 8px; }
.specs span { display: inline-flex; align-items: center; gap: 4px; }
.specs .ms { font-size: 18px; color: var(--text-3); }

.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--primary-soft), var(--surface-2)); color: var(--brand); }
.noimg .ms { font-size: 56px; opacity: .55; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.badge.orange { background: var(--brand); color: #fff; }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.dark { background: var(--dark-bg); color: var(--dark); }

/* ---------------------------------------------------------------- Risultati (stile SERP) */

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; margin-top: 2px; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .tabs { padding-left: calc(28px + 158px); } }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px 11px; color: var(--text-2); font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tabs a .ms { font-size: 18px; }

.serp { padding: 18px 16px 48px; }
@media (min-width: 1100px) { .serp { padding-left: calc(28px + 158px); padding-right: 28px; } }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; align-items: center; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex-shrink: 0;
  border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--surface-1); text-decoration: none; }
.chip.on { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.chip .ms { font-size: 18px; }
.chip select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-weight: 500; font-size: 14px; color: inherit; padding-right: 18px; cursor: pointer; outline: none; max-width: 190px; }
.chip.select::after { content: "arrow_drop_down"; font-family: "Material Symbols Outlined"; font-size: 20px; position: absolute; right: 6px; pointer-events: none; }
.chip.select { padding-right: 8px; }
.chip input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.chip:has(input:focus-visible), .chip:has(select:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.filters .divider { width: 1px; height: 24px; background: var(--outline); flex-shrink: 0; margin: 0 2px; }

.result-stats { font-size: 14px; color: var(--text-3); margin: 0 0 6px; }
.understood { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.understood b { color: var(--text); font-weight: 500; }
.serp .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-width: 1040px; }
.serp-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius-l); background: var(--primary-soft); border: 1px solid var(--primary-container); flex-wrap: wrap; }
.serp-cta .ms.big { font-size: 34px; color: var(--brand); }
.serp-cta div { flex: 1; min-width: 220px; }
.serp-cta b { font-weight: 500; font-size: 17px; display: block; }
.serp-cta p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }

.empty { max-width: 640px; padding: 8px 0 24px; }
.empty p { margin: 0 0 10px; }
.empty ul { margin: 6px 0 22px; padding-left: 22px; color: var(--text-2); }
.empty ul li { margin: 4px 0; }

/* Paginazione "Capitooool Hill" */
.pager { display: flex; justify-content: center; margin: 44px auto 8px; max-width: 1040px; }
.pager .inner { display: inline-flex; align-items: flex-end; gap: 2px; }
.pager .l { font-size: 30px; font-weight: 500; color: var(--brand); letter-spacing: -.03em; line-height: 1; padding-bottom: 20px; }
.pager .l.dark { color: var(--text); }
.pager a, .pager span.o { display: inline-flex; flex-direction: column; align-items: center; min-width: 22px; color: var(--primary); font-size: 14px; }
.pager .o b { font-size: 30px; font-weight: 500; color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.pager span.o b { color: var(--text); }
.pager span.o { color: var(--text); font-weight: 500; }
.pager a:hover { text-decoration: underline; }
.pager .arrow { display: inline-flex; flex-direction: column; align-items: center; padding: 0 12px 0; font-size: 14px; }
.pager .arrow .ms { font-size: 22px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- Pagina immobile */

.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); padding: 18px 0 12px; }
.crumbs a { color: var(--text-2); }
.crumbs .ms { font-size: 18px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: min(56vw, 480px); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--surface-2); overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.gallery button:hover img { filter: brightness(.92); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 button:nth-child(2) { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.n4 button:nth-child(4) { grid-column: 2 / 4; }
.gallery .all { position: absolute; right: 14px; bottom: 14px; }
.gallery .all .btn { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); height: 36px; min-height: 36px; padding: 0 16px; }
.gallery.empty-gallery { display: block; height: 260px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr !important; grid-template-rows: 1fr; height: 70vw; border-radius: var(--radius-l); }
  .gallery button:not(:first-child) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding: 28px 0 56px; align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: minmax(0,1fr); gap: 28px; } }
.detail h1 { font-size: clamp(24px, 3.2vw, 32px); }
.detail .loc { color: var(--text-2); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.detail .loc .ms { font-size: 20px; color: var(--brand); }
.detail .head-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.detail .head-badges .badge { box-shadow: none; border: 1px solid var(--outline); }
.detail .head-badges .badge.orange, .detail .head-badges .badge.amber, .detail .head-badges .badge.green, .detail .head-badges .badge.red, .detail .head-badges .badge.blue, .detail .head-badges .badge.dark { border-color: transparent; }
.price-big { font-size: 32px; font-weight: 500; letter-spacing: -.02em; margin-top: 14px; }
.price-big small { font-size: 16px; color: var(--text-2); font-weight: 400; margin-left: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 26px 0 8px; }
.fact { padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface-1); }
.fact .ms { color: var(--primary); font-size: 24px; }
.fact b { display: block; font-weight: 500; font-size: 17px; margin-top: 6px; }
.fact small { color: var(--text-2); font-size: 13px; }

.block { padding: 28px 0; border-top: 1px solid var(--outline); }
.block:first-of-type { border-top: 0; }
.block h2 { font-size: 22px; margin-bottom: 14px; }
.desc { white-space: pre-line; color: var(--text); line-height: 1.7; }
.desc.clamped { max-height: 12em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more-btn { margin-top: 6px; padding: 0; background: none; border: 0; color: var(--primary); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--outline); font-size: 15px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0,1fr); } }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; padding: 0; margin: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list .ms { color: var(--brand); }

.energy { display: flex; gap: 3px; align-items: flex-end; margin: 6px 0 10px; flex-wrap: wrap; }
.energy span { width: 34px; height: 28px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; opacity: .35; }
.energy span.on { opacity: 1; height: 38px; font-size: 15px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }

.map-box { position: relative; border-radius: var(--radius-l); overflow: hidden; height: 300px; background: var(--surface-2) repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,.025) 22px 44px); display: grid; place-items: center; text-align: center; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box p { color: var(--text-2); font-size: 14px; margin: 8px 0 14px; max-width: 360px; }

/* Riquadro contatto laterale */
.side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.contact-card { border: 1px solid var(--outline); border-radius: var(--radius-xl); padding: 22px; background: var(--surface); }
.contact-card .agent { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-card .agent b { display: block; font-weight: 500; }
.contact-card .agent small { color: var(--text-2); font-size: 13px; }
.contact-card .quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.contact-card .quick .btn { padding: 0 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--outline-strong); border-radius: var(--pill); overflow: hidden; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input + span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; font-size: 14px; font-weight: 500; color: var(--text); }
.seg label + label input + span { border-left: 1px solid var(--outline-strong); }
.seg input:checked + span { background: var(--primary-container); color: var(--on-primary-container); }
.seg input:checked + span::before { content: "check"; font-family: "Material Symbols Outlined"; font-size: 18px; font-weight: normal; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -3px; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

.mobile-cta { display: none; }
@media (max-width: 1000px) {
  .side { position: static; }
  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--outline); box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox .icon-btn { position: absolute; color: #fff; width: 48px; height: 48px; background: rgba(255,255,255,.08); }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.18); }
.lightbox .close { top: 14px; right: 14px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .counter { position: absolute; top: 24px; left: 24px; color: #e8eaed; font-size: 14px; }
.lightbox .caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #e8eaed; font-size: 14px; }

/* ---------------------------------------------------------------- Moduli (outlined Material) */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0,1fr); } }
.tf { position: relative; display: flex; flex-direction: column; }
.tf input, .tf select, .tf textarea {
  width: 100%; height: 52px; padding: 18px 14px 6px; border: 1px solid var(--outline-strong); border-radius: 8px;
  background: var(--surface); font-size: 16px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.tf textarea { height: auto; min-height: 110px; padding-top: 24px; resize: vertical; line-height: 1.5; }
.tf select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.tf.select::after { content: "arrow_drop_down"; font-family: "Material Symbols Outlined"; font-size: 24px; position: absolute; right: 10px; top: 14px; pointer-events: none; color: var(--text-2); }
.tf label { position: absolute; left: 15px; top: 6px; font-size: 12px; color: var(--text-2); pointer-events: none; transition: color .15s; }
.tf input:hover, .tf select:hover, .tf textarea:hover { border-color: var(--text); }
.tf input:focus, .tf select:focus, .tf textarea:focus { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.tf:focus-within label { color: var(--primary); }
.tf .err, .check .err { color: var(--red); font-size: 13px; margin: 4px 2px 0; }
.tf.has-error input, .tf.has-error select, .tf.has-error textarea { border-color: var(--red); }
.tf .help { color: var(--text-3); font-size: 12px; margin: 4px 2px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-m); font-size: 15px; margin-bottom: 18px; }
.alert.ok { background: var(--green-bg); color: var(--green); }
.alert.ok .ms { font-variation-settings: "FILL" 1; }
.alert.error { background: var(--red-bg); color: var(--red); }

.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.pick-grid label { cursor: pointer; }
.pick-grid input { position: absolute; opacity: 0; pointer-events: none; }
.pick-grid input + span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--radius-m); border: 1px solid var(--outline); font-size: 14px; font-weight: 500; text-align: center; height: 100%; }
.pick-grid span .ms { color: var(--primary); font-size: 26px; }
.pick-grid input:checked + span { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.pick-grid input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) { .pick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.chips-wrap { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Pagine interne */

.page-hero { padding: 48px 0 24px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.02em; }
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero p.lead { font-size: 18px; color: var(--text-2); max-width: 640px; margin-top: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; padding-bottom: 64px; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0,1fr); gap: 24px; } }
.panel { border: 1px solid var(--outline); border-radius: var(--radius-xl); padding: 28px; background: var(--surface); }
.panel h2 { font-size: 22px; margin-bottom: 6px; }
.panel > p { color: var(--text-2); margin-bottom: 20px; }
@media (max-width: 560px) { .panel { padding: 20px 16px; border-radius: var(--radius-l); } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; font-weight: 500; font-size: 18px; }
.steps b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--text-2); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.info-list li { display: flex; gap: 16px; align-items: center; padding: 12px 0; }
.info-list .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); flex-shrink: 0; }
.info-list small { display: block; color: var(--text-3); font-size: 13px; }
.prose { max-width: 760px; padding-bottom: 64px; line-height: 1.7; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose ul { padding-left: 22px; }

.dev { border: 1px solid var(--outline); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px; }
.dev-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dev-head h2 { font-size: 24px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 8px 0 4px; width: 240px; max-width: 100%; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------------------------------------------------------------- Footer */

.footer { background: var(--surface-1); color: var(--text-2); font-size: 14px; margin-top: auto; }
.footer .country { padding: 14px 24px; border-bottom: 1px solid var(--outline); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer .cols { display: flex; justify-content: space-between; gap: 8px 24px; padding: 14px 18px; flex-wrap: wrap; }
.footer .cols nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.footer a { color: var(--text-2); padding: 4px 0; }
.footer .legal { padding: 0 24px 18px; font-size: 12px; color: var(--text-3); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* Snackbar */
.snackbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: #323232; color: #f1f1f1; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow-2); font-size: 14px; display: none; }
.snackbar.show { display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .footer, .side, .mobile-cta, .gallery .all { display: none !important; } .detail { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Mappa, planimetrie, vista 360° */
.map-box { height: 340px; display: block; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box.approx iframe { pointer-events: none; }
.map-area { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(238, 125, 17, .22); border: 3px solid var(--brand); box-shadow: 0 0 0 9999px rgba(255,255,255,.08); pointer-events: none; }
.map-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin: 10px 0 0; }
.map-note .ms { color: var(--brand); font-size: 20px; }
.map-note a { margin-left: auto; font-weight: 500; }
.gallery .all { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gallery .all .btn:hover { text-decoration: none; }
@media (max-width: 760px) { .gallery .all { left: 14px; } .gallery .all .btn { padding: 0 12px; font-size: 13px; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.plan-img { position: relative; display: block; border: 1px solid var(--outline); border-radius: var(--radius-l); background: #fff; padding: 12px; cursor: zoom-in; }
.plan-img img { width: 100%; max-height: 520px; object-fit: contain; }
.plan-img span { position: absolute; left: 12px; top: 12px; background: rgba(32,33,36,.72); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: var(--pill); }
.plan-pdf { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--outline); border-radius: var(--radius-l); color: var(--text); }
.plan-pdf:hover { background: var(--surface-1); text-decoration: none; }
.plan-pdf > .ms:first-child { font-size: 38px; color: #d93025; }
.plan-pdf span { flex: 1; display: flex; flex-direction: column; }
.plan-pdf b { font-weight: 500; }
.plan-pdf small { color: var(--text-2); }

.pano-view { position: relative; height: min(62vw, 460px); min-height: 280px; border-radius: var(--radius-l); overflow: hidden; background: var(--surface-2); }
.pano-start { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; }
.pano-start::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.pano-start .btn { position: relative; box-shadow: var(--shadow-2); }
.pano-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.pano-thumbs button { flex: 0 0 150px; height: 76px; border-radius: var(--radius-m); border: 2px solid transparent; background: var(--surface-2) center/cover no-repeat; cursor: pointer; position: relative; padding: 0; overflow: hidden; }
.pano-thumbs button.on { border-color: var(--brand); }
.pano-thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 12px; padding: 14px 8px 4px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- Preferiti (cuoricino) */
.card-wrap { position: relative; min-width: 0; }
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--text-2); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .15s, color .15s;
}
.fav:hover { transform: scale(1.08); color: #d93025; }
.fav .ms { font-size: 24px; }
.fav[aria-pressed="true"] { color: #e8453c; }
.fav[aria-pressed="true"] .ms { font-variation-settings: "FILL" 1; }
.fav.pop { animation: fav-pop .35s ease-out; }
@keyframes fav-pop { 40% { transform: scale(1.3); } }
.gallery .fav { top: 16px; right: 16px; width: 46px; height: 46px; }
.gallery .fav .ms { font-size: 26px; }
.card-wrap.removing { opacity: 0; transform: scale(.96); transition: opacity .25s, transform .25s; }
.eyebrow .ms { font-size: 16px; vertical-align: -3px; color: #e8453c; }
.section-head p .ms { font-size: 18px; vertical-align: -4px; color: #e8453c; }

/* ---------------------------------------------------------------- Area riservata */
.reserved-banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-l); background: var(--primary-soft); border: 1px solid var(--primary-container); margin-bottom: 16px; }
.reserved-banner .ms { color: var(--brand); font-size: 28px; }
.reserved-banner b { display: block; font-weight: 500; }
.reserved-banner small { color: var(--text-2); }
.ref-box { max-width: 520px; margin: 8px auto 0; }
.ref-box .search-pill { height: 56px; }
.ref-box .search-pill input { font-size: 18px; letter-spacing: .02em; }

@media (max-width: 760px) {
  .home-hero .contract-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .home-hero .contract-tabs button { justify-content: center; }
}

/* Pulsante AVR nella home (porta a "Chi siamo") */
.avr-cta { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border-radius: var(--pill); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap;
  background: linear-gradient(100deg, #b35000, #fd7a1a 55%, #fd9526); background-size: 200% 100%; box-shadow: 0 6px 18px -6px rgba(179, 80, 0, .6); transition: background-position .4s, box-shadow .2s, transform .2s; }
.avr-cta:hover { text-decoration: none; background-position: 100% 0; box-shadow: 0 10px 24px -8px rgba(179, 80, 0, .7); transform: translateY(-1px); }
.avr-cta .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: avr-pulse 1.8s infinite; flex-shrink: 0; }
.avr-cta .avr-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: var(--pill); background: #fff; color: #b35000; }
@keyframes avr-pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (max-width: 420px) { .avr-cta { font-size: 14px; gap: 8px; padding-left: 14px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .avr-cta .dot, .ab-chip.live i { animation: none; } }

/* Scheda immobile: "Chiedi visita remota online" (AVR) */
.avr-ask { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-radius: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(100deg, #b35000, #fd7a1a 60%, #fd9526); box-shadow: 0 8px 20px -10px rgba(179, 80, 0, .7); transition: transform .2s, box-shadow .2s; }
.avr-ask:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(179, 80, 0, .8); }
.avr-ask .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex-shrink: 0; animation: avr-pulse 1.8s infinite; }
.avr-ask .txt { flex: 1; min-width: 0; }
.avr-ask b { display: block; font-weight: 500; font-size: 16px; line-height: 1.25; }
.avr-ask small { display: block; font-size: 13px; opacity: .9; }
.avr-ask .avr-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: var(--pill); background: #fff; color: #b35000; }
.avr-what { margin: 8px 0 16px; font-size: 13px; text-align: center; }
.avr-what a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.avr-what .ms { font-size: 16px; }
.contact-card .seg:has(label:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.contact-card .seg:has(label:nth-child(3)) input + span { font-size: 13px; padding: 0 4px; text-align: center; }
.mobile-cta .avr-mini { background: linear-gradient(100deg, #b35000, #fd7a1a); color: #fff; }
@media (prefers-reduced-motion: reduce) { .avr-ask .dot { animation: none; } }
@media (max-width: 860px) { .mobile-cta:has(.avr-mini) { gap: 6px; } .mobile-cta:has(.avr-mini) .btn { min-width: 0; padding: 0 8px; font-size: 14px; gap: 6px; } .mobile-cta:has(.avr-mini) .btn .ms { font-size: 18px; } }

/* Vista 360° con krpano */
.pano-krpano { position: absolute; inset: 0; }
.pano-start[hidden] { display: none; }
.pano-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.pano-tools[hidden] { display: none; }
.pano-caption { margin-right: auto; padding: 6px 12px; border-radius: var(--pill); background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }
.pano-caption:empty { visibility: hidden; }
.pano-tools button { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #202124; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.pano-tools button:hover { background: #fff; }
.pano-tools button[aria-pressed="false"] { opacity: .65; }
.pano-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; margin: 0; color: var(--text-2); }
.pano-view:fullscreen { height: 100vh; border-radius: 0; }

/* ------------------------------------------------------------ recensioni Google (home) */
.rv-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.rv-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.rv-score { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--outline); }
.rv-score b { font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.rv-score small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }
.rv-stars { display: inline-flex; gap: 1px; font-size: 20px; line-height: 1; }
.rv-stars.sm { font-size: 16px; }
.rv-stars .st { color: var(--surface-3); }
.rv-stars .st.on { color: #f9ab00; }
.rv-stars .st.half { background: linear-gradient(90deg, #f9ab00 50%, var(--surface-3) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-carousel { position: relative; }
.rv-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--outline); min-width: 0; }
.rv-card header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-card header img, .rv-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rv-avatar { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 500; font-size: 15px; }
.rv-card header b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-card header small { color: var(--text-2); font-size: 13px; }
.rv-text { margin: 0; color: var(--text); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-text.open { display: block; -webkit-line-clamp: unset; }
.rv-more { align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.rv-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--outline); background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow-1); cursor: pointer; }
.rv-nav[hidden] { display: none; }
.rv-nav.prev { left: -18px; }
.rv-nav.next { right: -18px; }
.rv-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.rv-source { color: var(--text-3, var(--text-2)); font-size: 12px; margin-left: auto; }
@media (max-width: 960px) { .rv-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) {
  .rv-track { grid-auto-columns: 86%; }
  .rv-nav { display: none !important; }
  .rv-score { width: 100%; }
  .rv-source { margin-left: 0; width: 100%; }
  .rv-actions .btn { flex: 1 1 100%; justify-content: center; }
}
