/* Inter salvato sul sito (nessun carattere caricato da Google) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* =========================================================
   Casa ABC – stile comune a tutte le pagine
   Colori presi dal logo: blu e turchese delle ali, oro della corona
   ========================================================= */
:root {
  color-scheme: light;
  /* Solo i due colori del logo: blu scuro delle ali e azzurro della scritta */
  --blu: #204888;
  --blu-dark: #16335F;
  --azzurro: #4F9FCB;
  --azzurro-light: #A9D2EA;
  --blu-soft: #EDF5FB;
  --turchese: var(--blu);
  --turchese-soft: var(--blu-soft);
  --oro: var(--azzurro);
  --wa: #25D366;
  --wa-dark: #1DA851;
  --ink: #14171F;
  --text: #2B303B;
  --muted: #545B68;
  --line: #E1E7EE;
  --soft: #F4F8FB;
  --header-h: 100px;
  --sec: clamp(64px, 7vw, 104px);
  --pad: 48px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #fff; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1440px; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--blu); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 12px; }

.eyebrow { display: -webkit-inline-box; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--turchese); margin-bottom: 10px; }
.eyebrow svg { width: 15px; height: 15px; }
.h-xl { text-wrap: balance; font-weight: 300; font-size: clamp(34px, 2.8vw + 20px, 64px); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }
.h-l  { text-wrap: balance; font-weight: 300; font-size: clamp(28px, 1.6vw + 20px, 44px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.sub  { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 18px; letter-spacing: -.01em; }
.sub svg { width: 22px; height: 22px; color: var(--blu); }
.lead { font-size: clamp(17px, .4vw + 15px, 20px); font-weight: 400; line-height: 1.65; color: var(--muted); }
.prose p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.prose .lead { margin-bottom: 26px; color: var(--text); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .note { font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 12px 16px; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Bottoni (grandi e facili da toccare) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; font-size: 16px; font-weight: 500; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s, box-shadow .25s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-blue { background: var(--blu); color: #fff; }
.btn-blue:hover { background: var(--blu-dark); box-shadow: 0 10px 24px rgba(32,72,136,.25); }
.btn-white { background: #fff; color: var(--blu-dark); }
.btn-line { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-color: #C5D8E8; color: var(--blu-dark); background: #fff; }
.btn-outline:hover { border-color: var(--blu); }
.btn-wa { background: var(--wa-dark); color: #fff; font-weight: 600; }
.btn-wa:hover { background: #178F44; box-shadow: 0 10px 24px rgba(29,168,81,.3); }
.link-arrow { font-size: 16px; font-weight: 500; color: var(--blu); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.link-arrow:hover { color: var(--blu-dark); }

/* =========================================================
   TRANSIZIONE TRA LE PAGINE (blu con farfalla bianca)
   ========================================================= */
.pt { display: none; }
.js .pt {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1500;
  background: var(--blu);
  -webkit-animation: ptSafety 0s 4s forwards; animation: ptSafety 0s 4s forwards;
}
.pt-fly { position: relative; width: 120px; height: 127px; -webkit-perspective: 600px; perspective: 600px; -webkit-animation: flyUp 1.1s var(--ease) both; animation: flyUp 1.1s var(--ease) both; }
.pt-fly img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.pt-fly .w-l { -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; -webkit-animation: flapL .55s ease-in-out var(--ph, 0s) infinite alternate; animation: flapL .55s ease-in-out var(--ph, 0s) infinite alternate; }
.pt-fly .w-r { -webkit-clip-path: inset(0 0 0 50%); clip-path: inset(0 0 0 50%); -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; -webkit-animation: flapR .55s ease-in-out var(--ph, 0s) infinite alternate; animation: flapR .55s ease-in-out var(--ph, 0s) infinite alternate; }
/* arrivando da un'altra pagina la farfalla e' gia' li': nessuna nuova entrata */
.pt-arrive .pt-fly, .pt.in .pt-fly { -webkit-animation: none; animation: none; }

/* cambio lingua: IT che si gira e diventa EN */
.pt-lang { display: none; text-align: center; color: #fff; }
.pt.is-lang .pt-fly, .pt-arrive-lang .pt-fly { display: none; }
.pt.is-lang .pt-lang, .pt-arrive-lang .pt-lang { display: block; }
.pt-flip { position: relative; width: 240px; height: 132px; margin: 0 auto; -webkit-perspective: 700px; perspective: 700px; border: 3px solid rgba(255,255,255,.85); border-radius: 26px; }
.pt-flip span { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; place-items: center; font: 800 88px/1 Inter, sans-serif; letter-spacing: .06em; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pt-to { -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); opacity: 0; }
.pt.is-lang.go .pt-from { -webkit-animation: flipOut .42s cubic-bezier(.5,0,.75,0) .2s forwards; animation: flipOut .42s cubic-bezier(.5,0,.75,0) .2s forwards; }
.pt.is-lang.go .pt-to { -webkit-animation: flipIn .5s cubic-bezier(.2,.8,.3,1.2) .6s forwards; animation: flipIn .5s cubic-bezier(.2,.8,.3,1.2) .6s forwards; }
.pt-arrive-lang .pt-from { display: none; }
.pt-arrive-lang .pt-to { -webkit-transform: none; transform: none; opacity: 1; }
.pt-cap { display: block; margin-top: 16px; font: 500 18px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
@keyframes flipOut { to { transform: rotateX(90deg); opacity: 0; } }
@-webkit-keyframes flipOut { to { -webkit-transform: rotateX(90deg); opacity: 0; } }
@keyframes flipIn { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@-webkit-keyframes flipIn { from { -webkit-transform: rotateX(-90deg); opacity: 0; } to { -webkit-transform: none; opacity: 1; } }
.pt.out { -webkit-transform: translateY(-100%); transform: translateY(-100%); transition: transform .7s var(--ease) .1s; }
.pt.in { -webkit-transform: translateY(100%); transform: translateY(100%); }
.pt.in.go { -webkit-transform: translateY(0); transform: translateY(0); transition: transform .45s var(--ease); }
@keyframes flapL { from { transform: rotateY(0); } to { transform: rotateY(58deg); } }
@keyframes flapR { from { transform: rotateY(0); } to { transform: rotateY(-58deg); } }
@-webkit-keyframes flapL { from { -webkit-transform: rotateY(0); } to { -webkit-transform: rotateY(58deg); } }
@-webkit-keyframes flapR { from { -webkit-transform: rotateY(0); } to { -webkit-transform: rotateY(-58deg); } }
@keyframes flyUp { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
@-webkit-keyframes flyUp { from { opacity: 0; -webkit-transform: translateY(18px) scale(.85); } to { opacity: 1; -webkit-transform: none; } }
@keyframes ptSafety { to { visibility: hidden; } }
@-webkit-keyframes ptSafety { to { visibility: hidden; } }
.pt.in.go { -webkit-animation: none; animation: none; visibility: visible; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); padding: 0 var(--pad);
  display: flex; align-items: center; gap: 32px;
  color: #fff;
  transition: background .35s, color .35s, height .35s, box-shadow .35s;
  -webkit-animation: headIn .8s ease .2s both; animation: headIn .8s ease .2s both;
}
@keyframes headIn { from { opacity: 0; } to { opacity: 1; } }
@-webkit-keyframes headIn { from { opacity: 0; } to { opacity: 1; } }
.header.scrolled, .header.solid { --header-h: 84px; background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(20,23,31,.04); }

.brand { position: relative; height: 76px; flex-shrink: 0; transition: height .35s; z-index: 2; }
.brand img { height: 100%; width: auto; transition: opacity .35s; }
.brand .logo-color { position: absolute; top: 0; left: 0; opacity: 0; }
.header.scrolled .brand, .header.solid .brand { height: 62px; }
.header.scrolled .logo-white, .header.solid .logo-white, .header.open .logo-white { opacity: 0; }
.header.scrolled .logo-color, .header.solid .logo-color, .header.open .logo-color { opacity: 1; }

.menu { margin-left: auto; display: flex; align-items: center; }
.menu-links { display: flex; gap: 30px; }
.menu-links a { font-size: 16px; font-weight: 500; position: relative; padding: 8px 0; white-space: nowrap; }
.menu-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu-links a:hover::after, .menu-links a.active::after { transform: scaleX(1); }
.menu-extra { display: none; }

.actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang a { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; line-height: 1; }
.lang a.on { background: currentColor; }
.lang a.on { color: var(--blu); background: #fff; }
.header.scrolled .lang a.on, .header.solid .lang a.on, .menu-extra .lang a.on { color: #fff; background: var(--blu); }
.header.scrolled .lang, .header.solid .lang { border-color: #C5D8E8; }
.btn-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--blu-dark); transition: background .35s, color .35s, transform .25s; }
.btn-phone:hover { transform: translateY(-2px); }
.btn-phone svg { width: 16px; height: 16px; }
.header.scrolled .btn-phone, .header.solid .btn-phone { background: var(--blu); color: #fff; }
.btn-wa-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; flex-shrink: 0; transition: transform .25s; }
.btn-wa-ico:hover { transform: translateY(-2px) rotate(-8deg); }
.btn-wa-ico svg { width: 22px; height: 22px; }

.burger { display: none; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 4px; position: relative; z-index: 2; min-height: 46px; }
.burger span { display: block; position: absolute; left: 4px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 27px; }
.burger b { font-size: 15px; font-weight: 600; padding-left: 34px; }
.header.open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.header.open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden; background: var(--blu); color: #fff; }
.hero .photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,24,60,.62) 0%, rgba(8,24,60,.38) 42%, rgba(8,24,60,0) 72%); }
.hero-text { position: absolute; z-index: 1; left: 50%; top: calc(var(--header-h) + clamp(28px, 9vh, 120px)); transform: translateX(-50%); width: min(1100px, calc(100% - 36px)); text-align: center; text-shadow: 0 2px 22px rgba(0,0,0,.28); }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; margin-bottom: 26px; background: rgba(255,255,255,.1); text-shadow: none; }
.hero-text h1 { font-weight: 300; font-size: clamp(36px, 3.6vw + 16px, 88px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.hero-text p { text-wrap: balance; font-size: clamp(17px, .55vw + 13px, 23px); line-height: 1.6; margin: clamp(16px, 1.8vw, 32px) auto clamp(24px, 2.4vw, 44px); }
.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; text-shadow: none; }
@media (min-width: 1200px) { .hero-btns .btn { min-height: 58px; font-size: 18px; padding: 16px 32px; } }

/* =========================================================
   TESTATA PAGINE INTERNE
   ========================================================= */
.page-head { background: var(--blu-soft); padding-top: calc(80px + 70px); padding-bottom: 64px; position: relative; overflow: hidden; }
.page-head .lead { max-width: 660px; margin-top: 20px; }
.listing-head { padding-bottom: 36px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--blu); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 4px; }

section.sec { padding-top: var(--sec); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(26px, 3vw, 42px); }

/* =========================================================
   RICERCA
   ========================================================= */
.search-wrap { position: relative; z-index: 10; margin-top: -78px; }
.search { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(14,42,94,.14); padding: 22px 24px 24px 30px; }
.search.flat { box-shadow: none; border: 1.5px solid var(--line); }
.search-title { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blu); margin-bottom: 12px; }
.search form { display: grid; grid-template-columns: repeat(3, minmax(0, 1.1fr)) minmax(0, .9fr) auto; align-items: end; }
.field { padding: 0 18px; border-left: 1px solid var(--line); }
.field:first-child { padding-left: 0; border-left: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.field select, .field input { width: 100%; border: 0; background: transparent; outline: none; font-size: 17px; font-weight: 500; color: var(--ink); padding: 8px 0; -webkit-appearance: none; appearance: none; cursor: pointer; border-radius: 0; }
.field input { cursor: text; }
.field input::placeholder { color: #8A909C; font-weight: 400; }
.field.select { position: relative; }
.field.select::after { content: ""; position: absolute; right: 20px; bottom: 17px; width: 7px; height: 7px; border-right: 2px solid var(--blu); border-bottom: 2px solid var(--blu); transform: rotate(45deg); pointer-events: none; }
.search button { margin-left: 10px; }

/* =========================================================
   CARD IMMOBILI
   ========================================================= */
.listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 28px; }
.card { display: block; }
.card .img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); padding-top: 75%; }
.card .img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .img img { transform: scale(1.05); }
.card .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(10,20,40,.62), rgba(10,20,40,0)); pointer-events: none; }
.card .place { position: absolute; left: 16px; bottom: 13px; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: .01em; }
.card .go { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; background: var(--blu); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s, transform .35s var(--ease); }
.card .go svg { width: 18px; height: 18px; }
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.card-body { padding-top: 16px; }
.card .price { font-size: 22px; font-weight: 600; color: var(--blu); letter-spacing: -.01em; }
.card h3 { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); margin-top: 4px; transition: color .2s; }
.card:hover h3 { color: var(--blu); }
.card .meta { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card.all { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; min-height: 260px; border-radius: var(--radius); background: var(--blu-soft); font-size: 18px; font-weight: 500; color: var(--blu-dark); transition: background .3s; }
.card.all:hover { background: #DCEBF6; }
.card.all span { width: 58px; height: 58px; border-radius: 50%; background: var(--blu); color: #fff; display: grid; place-items: center; font-size: 22px; transition: transform .35s var(--ease); }
.card.all:hover span { transform: translateX(6px); }
.empty { display: none; padding: 50px 0; text-align: center; }
.empty p { margin-bottom: 14px; }
.empty .btns { justify-content: center; }
.count { color: var(--muted); font-size: 16px; font-weight: 500; }

/* =========================================================
   BLOCCHI HOME
   ========================================================= */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.split .pic { position: relative; border-radius: 18px; overflow: hidden; padding-top: 125%; background: var(--soft); }
.split .pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; background: var(--blu-soft); }
.stat { padding: 38px 30px; }
.stat + .stat { border-left: 1px solid #D3E4F1; }
.stat strong { display: block; font-size: clamp(42px, 4.4vw, 64px); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--blu); }
.stat strong b { font-weight: inherit; }
.stat span { display: block; margin-top: 14px; font-size: 16px; color: var(--text); max-width: 230px; }

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.process::before { content: ""; position: absolute; left: 66px; right: 66px; top: 66px; border-top: 2px dashed #C5D8E8; }
.p-step { position: relative; background: var(--soft); border-radius: 18px; padding: 30px 30px 34px; transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.p-step:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 22px 44px rgba(14,42,94,.09); }
.p-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--blu); color: #fff; display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 0 0 8px var(--soft); transition: transform .4s var(--ease); }
.p-step:hover .p-ico { transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 0 8px #fff; }
.p-ico svg { width: 30px; height: 30px; }
.p-step .n { font-size: 14px; font-weight: 600; color: var(--turchese); }
.p-step h3 { font-size: 22px; font-weight: 500; color: var(--ink); margin: 6px 0 10px; letter-spacing: -.01em; }
.p-step p { font-size: 16px; line-height: 1.6; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service { border: 1.5px solid var(--line); border-radius: 18px; padding: 28px 26px 30px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; background: #fff; }
.service:hover { border-color: var(--blu); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,42,94,.08); }
.s-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--turchese-soft); color: var(--turchese); margin-bottom: 22px; transition: transform .4s var(--ease), background .3s, color .3s; }
.s-ico svg { width: 30px; height: 30px; }
.service:hover .s-ico { transform: rotate(-6deg); background: var(--blu); color: #fff; }
.service h3 { font-size: 19px; font-weight: 500; color: var(--ink); }
.service p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

.zone-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: end; margin-bottom: 40px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: -webkit-max-content; width: max-content; -webkit-animation: marquee 70s linear infinite; animation: marquee 70s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; letter-spacing: -.02em; white-space: nowrap; color: var(--blu-dark); }
.marquee-track span::after { content: ""; width: 9px; height: 9px; margin: 0 36px; border-radius: 50%; background: var(--oro); }
.marquee:hover .marquee-track { -webkit-animation-play-state: paused; animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@-webkit-keyframes marquee { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }

.band { position: relative; overflow: hidden; background: var(--blu); color: #fff; border-radius: 22px; padding: 70px 60px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.band > * { position: relative; }
.band .h-l { color: #fff; max-width: 620px; }
.band p { opacity: .9; margin-top: 14px; font-size: 18px; }
.band .btns { flex-shrink: 0; }

/* vendere: foto vera + passi semplici */
.sell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.sell-pic { position: relative; border-radius: 18px; overflow: hidden; padding-top: 78%; background: var(--soft); }
.sell-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.sell-tag { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink); font-size: 15px; padding: 8px 14px; border-radius: 10px; }
.simple-steps { list-style: none; counter-reset: st; margin: 26px 0 32px; }
.simple-steps li { counter-increment: st; position: relative; padding: 0 0 22px 56px; font-size: 17px; color: var(--muted); }
.simple-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--blu); color: var(--blu); font-weight: 600; display: grid; place-items: center; font-size: 16px; }
.simple-steps strong { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 2px; }

/* servizi: elenco semplice */
.svc-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 60px; border-top: 1px solid var(--line); }
.svc-list li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc-n { font-size: 15px; font-weight: 600; color: var(--turchese); padding-top: 3px; min-width: 24px; }
.svc-list h3 { font-size: 20px; font-weight: 500; color: var(--ink); }
.svc-list p { font-size: 16px; color: var(--muted); margin-top: 4px; }

/* Nello */
.nello { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nello img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.nello strong { display: block; font-size: 17px; font-weight: 600; }
.nello span { display: block; font-size: 14px; opacity: .8; }
.band .nello { margin-bottom: 22px; }
.hello { display: flex; align-items: center; gap: 30px; background: var(--blu-soft); border-radius: 18px; padding: 24px 28px; margin-bottom: 26px; }
.hello .nello { margin: 0; flex-shrink: 0; }
.hello p { font-size: 18px; color: var(--ink); }

/* dove operiamo */
.area { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 60px; align-items: stretch; }
.area .lead { margin: 18px 0 30px; max-width: 560px; }
.zone-group { padding: 20px 0; border-top: 1px solid var(--line); }
.zone-group h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); line-height: 1.2; }
.chip.has { background: var(--blu); color: #fff; transition: background .25s, transform .25s; }
.chip.has:hover { background: var(--blu-dark); transform: translateY(-2px); }
.chip b { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 999px; }
.area-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.area-map { position: relative; border-radius: 20px; overflow: hidden; min-height: 460px; background: var(--soft); }
.area-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.area-pin { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(14,42,94,.15); max-width: 360px; }
.area-pin svg { width: 26px; height: 26px; color: var(--blu); flex-shrink: 0; }
.area-pin strong { display: block; color: var(--ink); font-size: 16px; }
.area-pin span { font-size: 14px; color: var(--muted); }

/* case anche sui portali: semplice */
.portals-simple { padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.portals-simple p { font-size: 17px; color: var(--muted); max-width: 460px; }
.portal-links { display: flex; gap: 12px; flex-wrap: wrap; }
.portal-link { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; color: var(--text); transition: border-color .25s, transform .25s var(--ease); }
.portal-link:hover { border-color: var(--blu); transform: translateY(-2px); }
.portal-link img { width: 40px; height: 40px; border-radius: 10px; }
.portal-link strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   SCHEDA IMMOBILE
   ========================================================= */
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.gallery .main { position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); padding-top: 66%; }
.gallery .main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.gallery .main img.fade { opacity: 0; }
.g-count { position: absolute; left: 14px; bottom: 14px; background: rgba(20,23,31,.72); color: #fff; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.g-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.g-nav:hover { background: #fff; transform: scale(1.06); }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.gallery .thumbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.gallery .thumbs button { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 12px; overflow: hidden; background: var(--soft); opacity: .7; transition: opacity .2s, box-shadow .2s; }
.gallery .thumbs button:hover, .gallery .thumbs button.on { opacity: 1; }
.gallery .thumbs button.on { box-shadow: 0 0 0 3px var(--blu); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 70px; margin-top: 50px; align-items: start; }
.facts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.facts div { background: var(--blu-soft); border-radius: 14px; padding: 14px 20px; min-width: 120px; }
.facts div span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.facts div strong { font-size: 19px; font-weight: 600; color: var(--ink); }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.specs div span { color: var(--muted); }
.specs div strong { font-weight: 600; color: var(--ink); text-align: right; }
.aside { position: -webkit-sticky; position: sticky; top: 104px; border: 1.5px solid var(--line); border-radius: 18px; padding: 30px; background: #fff; box-shadow: 0 18px 40px rgba(14,42,94,.06); }
.aside .price { font-size: 34px; font-weight: 600; color: var(--blu); letter-spacing: -.02em; }
.aside .place { color: var(--muted); margin-top: 2px; }
.aside-txt { margin-top: 18px; font-size: 16px; }
.aside .btns { display: grid; gap: 10px; margin-top: 20px; }

/* =========================================================
   VENDERE CASA
   ========================================================= */
.steps { list-style: none; border-top: 1px solid var(--line); counter-reset: none; }
.step { display: grid; grid-template-columns: 90px 280px minmax(0, 1fr); gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blu-soft); color: var(--blu); font-weight: 600; font-size: 16px; transition: background .3s, color .3s; }
.step:hover .n { background: var(--blu); color: #fff; }
.step h3 { font-size: 22px; font-weight: 500; color: var(--ink); padding-top: 12px; }
.step p { font-size: 17px; line-height: 1.7; padding-top: 12px; }
.checklist { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.checklist li { padding: 15px 0 15px 38px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--turchese-soft); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 21px; width: 10px; height: 5px; border-left: 2px solid var(--turchese); border-bottom: 2px solid var(--turchese); transform: rotate(-45deg); }

/* =========================================================
   CHI SIAMO / IL LOGO
   ========================================================= */
.milestone { display: flex; gap: 20px; align-items: center; background: var(--blu-soft); border-left: 4px solid var(--oro); border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 30px 0; }
.milestone span { font-size: 26px; font-weight: 300; color: var(--blu); letter-spacing: -.02em; white-space: nowrap; }
.milestone p { margin: 0; }

.logo-show { background: var(--blu-dark); border-radius: 22px; padding: clamp(28px, 5vw, 64px); }
.logo-show img { width: 100%; max-width: 700px; margin: 0 auto; }

.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.ex-stage { position: relative; background: var(--blu-soft); border-radius: 26px; padding: clamp(36px, 5vw, 64px); overflow: hidden; }
.ex-zoom { position: relative; width: min(100%, 406px); margin: 0 auto; transition: transform .9s var(--ease); transform-origin: 50% 50%; }
.ex-zoom img { width: 100%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px #fff, 0 0 0 9px #D3E4F1, 0 24px 50px rgba(14,42,94,.14); }
.ex-spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; cursor: pointer; background: transparent; padding: 0; transition: transform .4s var(--ease); }
.ex-spot span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 6px; border-radius: 50%; background: var(--azzurro); color: #fff; font-weight: 600; font-size: 15px; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ex-spot::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(79,159,203,.45); -webkit-animation: pulse 2s ease-out infinite; animation: pulse 2s ease-out infinite; }
.ex-spot.on span { background: var(--blu); }
.ex-spot.on::before { background: rgba(32,72,136,.4); }
.zoomed .ex-spot { transform: scale(.6); }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@-webkit-keyframes pulse { from { -webkit-transform: scale(.7); opacity: 1; } to { -webkit-transform: scale(1.7); opacity: 0; } }
.ex-reset { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border: 0; background: #fff; color: var(--blu-dark); font-weight: 500; font-size: 15px; padding: 10px 18px; border-radius: 999px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 6px 18px rgba(14,42,94,.12); }
.zoomed .ex-reset { opacity: 1; pointer-events: auto; }
.ex-tabs { display: grid; gap: 10px; margin-bottom: 28px; }
.ex-tab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 18px; font-size: 18px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.ex-tab:hover { border-color: var(--blu); transform: translateX(4px); }
.ex-tab .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blu-soft); color: var(--blu); font-weight: 600; font-size: 15px; flex-shrink: 0; transition: background .25s, color .25s; }
.ex-tab.on { border-color: var(--blu); background: var(--blu-soft); }
.ex-tab.on .n { background: var(--blu); color: #fff; }
.ex-texts { position: relative; min-height: 190px; }
.ex-text { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s var(--ease); pointer-events: none; }
.ex-text.on { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.ex-text h3 { font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.ex-text p { font-size: 18px; line-height: 1.7; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.story-pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.story-pics figure { text-align: center; }
.stemma, .statue { background: var(--soft); border-radius: 20px; padding: 28px; height: 300px; display: grid; place-items: center; transition: transform .5s var(--ease); }
.stemma:hover, .statue:hover { transform: translateY(-6px) rotate(-1deg); }
.stemma svg { height: 100%; width: auto; max-width: 100%; }
.statue img { height: 100%; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stemma, .statue { overflow: hidden; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }


/* =========================================================
   CONTATTI
   ========================================================= */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 80px; }
.q { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.q:hover { border-color: var(--blu); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,42,94,.08); }
.q-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blu); color: #fff; margin-bottom: 14px; }
.q-ico svg { width: 24px; height: 24px; }
.q-wa .q-ico { background: var(--wa); }
.q strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.q span:last-child { color: var(--muted); font-size: 16px; word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
.addr { font-size: 20px; line-height: 1.6; color: var(--ink); margin-bottom: 12px; }
.hours { list-style: none; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.hours.big { font-size: 17px; border-top: 1px solid var(--line); }
.hours.big li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours.big strong { color: var(--ink); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; background: var(--soft); border-radius: 22px; padding: 34px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font-size: 17px; color: var(--ink); padding: 14px 16px; min-height: 52px; border: 1.5px solid #C9D9E6; border-radius: 12px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(32,72,136,.12); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--muted); }
.form .check input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex-shrink: 0; accent-color: var(--blu); }
.map { margin-top: 90px; border-radius: 22px; overflow: hidden; height: 440px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { margin-top: var(--sec); background: var(--blu-dark); color: rgba(255,255,255,.88); padding: 70px 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-bottom: 50px; }
.foot-brand img { height: 66px; width: auto; }
.foot-brand p { font-size: 15px; margin-top: 18px; max-width: 320px; opacity: .85; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s; }
.foot-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }
.foot-h { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azzurro-light); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.footer ul a:hover, .footer address a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; font-size: 16px; line-height: 1.8; }
.footer .hours li { padding: 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; opacity: .75; }


/* =========================================================
   ANIMAZIONI DI ENTRATA
   ========================================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes fadeUp { from { opacity: 0; -webkit-transform: translateY(26px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@-webkit-keyframes heroZoom { from { -webkit-transform: scale(1.12); } to { -webkit-transform: scale(1); } }
.js .load { opacity: 0; -webkit-animation: fadeUp 1s var(--ease) forwards; animation: fadeUp 1s var(--ease) forwards; -webkit-animation-delay: calc(var(--d, 0ms) + 350ms); animation-delay: calc(var(--d, 0ms) + 350ms); }
.js .hero .photo { -webkit-animation: heroZoom 2.8s var(--ease) both; animation: heroZoom 2.8s var(--ease) both; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .brand { height: 64px; }
  .header { gap: 24px; }
  .menu-links { gap: 22px; }
  .menu-links a { font-size: 15px; }
  .btn-phone span { display: none; }
  .btn-phone { padding: 12px 14px; }
  .search form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; }
  .field:nth-child(3) { padding-left: 0; border-left: 0; }
  .search button { margin-left: 0; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
  .step { grid-template-columns: 80px 220px minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .actions { margin-left: auto; }
  .actions > .lang { display: none; }
  .burger { display: inline-flex; }
  /* menu a pannello animato */
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 1;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    margin: 0; padding: clamp(6px, 2vh, 20px) var(--pad) max(18px, env(safe-area-inset-bottom));
    background: #fff; color: var(--ink); border-top: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 14px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    visibility: hidden; opacity: 0;
    -webkit-clip-path: circle(0% at calc(100% - 44px) 0); clip-path: circle(0% at calc(100% - 44px) 0);
    transition: clip-path .6s var(--ease), -webkit-clip-path .6s var(--ease), opacity .3s, visibility 0s .6s;
  }
  .header.open .menu { visibility: visible; opacity: 1; -webkit-clip-path: circle(150% at calc(100% - 44px) 0); clip-path: circle(150% at calc(100% - 44px) 0); transition: clip-path .7s var(--ease), -webkit-clip-path .7s var(--ease), opacity .2s, visibility 0s; }
  .menu-links { flex-direction: column; gap: 0; }
  .menu-links a { font-size: clamp(20px, min(6.4vw, 4.4vh), 34px); font-weight: 300; letter-spacing: -.02em; padding: clamp(7px, 1.5vh, 14px) 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .55s var(--ease); }
  .menu-links a::after { display: none; }
  .menu-links a.active { color: var(--blu); }
  .header.open .menu-links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 50ms + 150ms); }
  .menu-extra { display: grid; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .55s var(--ease); }
  .menu-extra .btn { min-height: 48px; padding: 10px 20px; }
  .header.open .menu-extra { opacity: 1; transform: none; transition-delay: 450ms; }
  .menu-extra .lang { justify-self: start; border-color: #C5D8E8; color: var(--ink); }
  .menu-extra .lang a { font-size: 15px; padding: 8px 14px; }
  .header.open { background: #fff; color: var(--ink); box-shadow: none; }
  .header.open .btn-phone, .header.open .btn-wa-ico { visibility: hidden; }
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid, .detail, .explorer, .story, .zone-head, .sell, .area { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .area-map { min-height: 380px; }
  .hello { flex-direction: column; align-items: flex-start; gap: 14px; }
  .split .pic { padding-top: 75%; }
  .aside { position: static; }
  .band { flex-direction: column; align-items: flex-start; padding: 50px 36px; }
  .step { grid-template-columns: 70px minmax(0, 1fr); gap: 6px 20px; }
  .step p { grid-column: 2; padding-top: 4px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid #D3E4F1; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process::before { left: 66px; right: auto; top: 66px; bottom: 66px; border-top: 0; border-left: 2px dashed #C5D8E8; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --pad: 18px; --header-h: 72px; --sec: 56px; }
  .header.scrolled, .header.solid { --header-h: 72px; }
  .header { gap: 10px; }
  .brand, .header.scrolled .brand, .header.solid .brand { height: min(56px, calc((100vw - 214px) / 2.92)); }
  .portals-simple { padding-top: 40px; }
  .portal-links, .portal-link { width: 100%; }
  .btn-phone { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; }
  .btn-wa-ico { width: 44px; height: 44px; }
  .burger b { display: none; }
  .burger { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: #fff; color: var(--blu-dark); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
  .burger span { left: 12px; width: 20px; }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 25px; }
  .header.open .burger span:nth-child(1), .header.open .burger span:nth-child(2) { top: 21px; }
  .header.scrolled .burger, .header.solid .burger { background: var(--blu-soft); box-shadow: none; }
  .hero { min-height: 620px; }
  .hero .photo { object-position: 54% 100%; }
  .hero-text { top: calc(var(--header-h) + clamp(16px, 4vh, 40px)); }
  .hero-btns .btn { width: 100%; }
  .search-wrap { margin-top: -60px; }
  .search { padding: 20px; }
  .search form { grid-template-columns: minmax(0, 1fr); }
  .field, .field:nth-child(3) { padding: 0 0 8px; margin-bottom: 8px; border-left: 0; border-bottom: 1px solid var(--line); }
  .search button { width: 100%; }
  .page-head { padding-top: calc(72px + 32px); padding-bottom: 36px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .listings { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .card.all { min-height: 0; flex-direction: row-reverse; justify-content: space-between; padding: 16px 18px 16px 22px; font-size: 17px; }
  .card.all span { width: 46px; height: 46px; font-size: 18px; }
  .services, .svc-list { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 26px 18px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 15px; padding: 7px 12px; }
  .area-map { min-height: 320px; }
  .gallery .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; }
  .gallery .thumbs button { padding-top: 75%; }
  .gallery .thumbs img { position: absolute; top: 0; left: 0; }
  .g-nav { width: 44px; height: 44px; margin-top: -22px; }
  .specs, .checklist, .form, .story-pics { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step p { grid-column: auto; }
  .stemma, .statue { height: 240px; }
  .band { padding: 32px 22px; gap: 22px; }
  .band .btns, .band .btns .btn { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-bottom { flex-direction: column; }
}

/* Telefono in orizzontale (schermo basso): barra piu' bassa e menu su due colonne */
@media (max-width: 1080px) and (max-height: 520px) {
  :root { --header-h: 64px; }
  .header.scrolled, .header.solid { --header-h: 64px; }
  .brand, .header.scrolled .brand, .header.solid .brand { height: 48px; }
  .menu-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .menu-links a { font-size: 19px; padding: 7px 0; }
  .menu-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
  .menu-extra .btn { min-height: 44px; }
  .menu-extra .lang { margin: 0; }
  .hero { min-height: 520px; }
}

/* Chi preferisce meno movimento: niente animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { -webkit-animation: none !important; animation: none !important; transition: none !important; }
  .js .load, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .pt { display: none; }
  .marquee-track { -webkit-animation: none; animation: none; flex-wrap: wrap; width: auto; }
}

/* Moduli: sempre visibili e leggibili anche su iPhone (niente animazione, colori forzati) */
.search, .search-wrap, .form, .form > *, .search form > * { opacity: 1 !important; transform: none !important; }
.field select, .field input, .form input, .form textarea, .form select {
  -webkit-text-fill-color: var(--ink); color: var(--ink); opacity: 1;
  background-color: #fff; -webkit-appearance: none; appearance: none; border-radius: 12px;
}
.field select, .field input { background-color: transparent; border-radius: 0; }
.form select { -webkit-appearance: menulist; appearance: auto; }
.field input::placeholder, .form input::placeholder, .form textarea::placeholder { -webkit-text-fill-color: #8A909C; color: #8A909C; }
.hours strong { text-align: right; line-height: 1.5; }

/* Nessuna ombra e nessuna sfocatura, ne' ferme ne' al passaggio del mouse */
*, *::before, *::after { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.search { border: 1.5px solid var(--line); }
.aside { border-width: 1.5px; }

/* Header trasparente sopra la foto: la linea sotto le voci del menu e' bianca */
.header:not(.scrolled):not(.solid) .menu-links a::after { background: #fff; }

/* Immobili all'asta (dall'area riservata) */
.card .price .asta-lab { font-size: 13px; font-weight: 500; color: var(--muted); }
.aside .asta-lab { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azzurro); }
.asta-when { margin-top: 14px; background: var(--blu-soft); border-left: 4px solid var(--azzurro); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.asta-when span { display: block; font-size: 13px; color: var(--muted); }
.asta-when b { font-size: 17px; color: var(--ink); }

/* Firma del sito nel footer: discreta ma cliccabile */
.foot-links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.credit { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.75); transition: color .2s, border-color .2s, background .2s; }
.credit b { font-weight: 600; color: #fff; }
.credit:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); text-decoration: none !important; }
@media (max-width: 640px) { .foot-links { gap: 12px; } }
/* invito leggero accanto alla firma */
.credit { gap: 10px; }
.credit-cta { display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.22); color: var(--azzurro-light); font-weight: 500; }
.credit-cta i { font-style: normal; display: inline-block; transition: transform .25s; }
.credit:hover .credit-cta i { transform: translateX(4px); }
@media (max-width: 640px) { .credit { flex-wrap: wrap; row-gap: 2px; } }
@media (max-width: 640px) { .credit { border-radius: 14px; padding: 8px 14px; } .credit-cta { padding-left: 0; border-left: 0; } }

/* partner (ValutaHome.it) accanto ai portali */
.portal-link.partner span { display: flex; flex-direction: column; line-height: 1.2; }
.portal-link.partner small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Telefono: la foto della home e' sempre come nel riferimento
   (testo sul cielo, casa intera sotto i pulsanti), anche sui telefoni bassi */
@media (max-width: 640px) {
  .hero { height: max(100svh, 860px); min-height: 860px; }
  .hero .photo { object-position: 54% 100%; }
}

/* Telefono: la foto della home e' sempre come nel riferimento
   (testo sul cielo, casa intera sotto i pulsanti), anche sui telefoni bassi */
@media (max-width: 640px) {
  .hero { height: max(100svh, 860px); min-height: 860px; }
  .hero .photo { object-position: 54% 100%; }
}
/* ombra leggera sui pulsanti sopra la foto (barra in alto e hero) */
.header:not(.scrolled):not(.solid) .btn-phone,
.header:not(.scrolled):not(.solid) .btn-wa-ico,
.header:not(.scrolled):not(.solid) .burger { box-shadow: 0 4px 14px rgba(0,0,0,.22) !important; }
.hero-btns .btn-white { box-shadow: 0 8px 24px rgba(0,0,0,.25) !important; }
.hero-btns .btn-line { box-shadow: 0 8px 24px rgba(0,0,0,.18) !important; background: rgba(255,255,255,.08); }

/* Privacy e Termini */
.prose.legal { max-width: 720px; }
.prose.legal h3 { font-weight: 700; }
.prose.legal a, .form .check a { color: var(--blu); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* avviso quando non ci sono immobili */
.avviso-vuoto { background: var(--soft); border-radius: 22px; padding: 40px 34px; text-align: center; }
.avviso-vuoto .lead { color: var(--ink); margin-bottom: 8px; }
.avviso-vuoto p { max-width: 560px; margin-left: auto; margin-right: auto; }
.avviso-vuoto .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.listings[hidden], .avviso-vuoto[hidden] { display: none !important; }
