/* Cardea — pagine annunci generate dal gestionale (Lotto 4). Usa le variabili di styles.css. */
.annuncio-note{margin:var(--s-5,16px) 0 0;color:var(--ink-500,#667);font-size:var(--t-100,.85rem)}
.annuncio-noimg{display:flex;align-items:center;justify-content:center;aspect-ratio:3/2;color:var(--ink-500,#667);font-size:var(--t-200,.95rem)}
.annuncio-done{padding-top:0}
.annuncio{padding-block:var(--s-9,48px) var(--section,96px);background:var(--paper-0,#fff)}
.annuncio__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:clamp(32px,5vw,80px);align-items:start}
.annuncio-gallery__main{display:block;background:var(--paper-200,#eee)}
.annuncio-gallery__main img{width:100%;height:auto;max-height:72vh;object-fit:contain;display:block}
.annuncio-gallery__grid{list-style:none;margin:var(--s-4,12px) 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--s-3,8px)}
.annuncio-gallery__grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--paper-200,#eee)}
.annuncio__text{margin-top:var(--s-8,40px);max-width:var(--measure,68ch);color:var(--ink-700,#333)}
.annuncio__text h2{font-family:var(--font-display,serif);color:var(--navy-700,#003b5c);font-size:var(--t-500,1.4rem);margin:var(--s-8,40px) 0 var(--s-4,12px)}
.annuncio-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s-7,32px);margin:0 0 var(--s-6,24px)}.annuncio-specs div{display:flex;justify-content:space-between;gap:var(--s-4,12px);padding:var(--s-3,8px) 0;border-bottom:1px solid var(--line,#ddd)}.annuncio-specs dt{color:var(--ink-500,#667)}.annuncio-specs dd{margin:0;text-align:right;font-weight:600}@media (max-width:640px){.annuncio-specs{grid-template-columns:1fr}}
.annuncio-features{display:flex;flex-wrap:wrap;gap:var(--s-3,8px);list-style:none;padding:0;margin:0}
.annuncio-features li{padding:var(--s-2,6px) var(--s-4,12px);border:1px solid var(--line,#ddd);font-size:var(--t-200,.95rem)}
.annuncio-surf{overflow-x:auto;margin:0 0 var(--s-6,24px)}.annuncio-surf table{border-collapse:collapse;width:100%;font-size:var(--t-200,.95rem)}.annuncio-surf th,.annuncio-surf td{padding:var(--s-3,8px);border-bottom:1px solid var(--line,#ddd);text-align:left}.annuncio-surf th{color:var(--ink-500,#667);font-weight:600}.annuncio-surf td:nth-child(n+3){white-space:nowrap}.annuncio-surf td:nth-child(3),.annuncio-surf td:nth-child(4),.annuncio-surf td:nth-child(6),.annuncio-surf th:nth-child(3),.annuncio-surf th:nth-child(4),.annuncio-surf th:nth-child(6){text-align:right}.annuncio-surf tfoot td{font-weight:600;border-bottom:0}
.annuncio__facts{position:sticky;top:110px;display:flex;flex-direction:column;gap:var(--s-5,16px);padding:var(--s-7,32px);border:1px solid var(--line,#ddd);background:var(--paper-50,#fafaf7)}
.annuncio__facts dl{margin:0}
.annuncio__facts dl div{display:flex;justify-content:space-between;gap:var(--s-4,12px);padding:var(--s-3,8px) 0;border-bottom:1px solid var(--line,#ddd)}
.annuncio__facts dt{color:var(--ink-500,#667);font-size:var(--t-100,.85rem);font-weight:600;text-transform:uppercase;letter-spacing:var(--track-label,.08em)}
.annuncio__facts dd{margin:0;text-align:right;color:var(--navy-700,#003b5c)}
@media (max-width:900px){.annuncio__grid{grid-template-columns:1fr}.annuncio__facts{position:static}}
.annuncio-lb{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0,20,32,.94)}
.annuncio-lb[hidden]{display:none}
.annuncio-lb img{max-width:calc(100vw - 140px);max-height:calc(100vh - 110px);object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.annuncio-lb button{position:absolute;border:0;background:transparent;color:#fff;font-size:2.4rem;line-height:1;cursor:pointer;padding:16px;opacity:.85}
.annuncio-lb button:hover,.annuncio-lb button:focus-visible{opacity:1;outline:2px solid var(--gold-500,#d6af57)}
.annuncio-lb__close{top:8px;right:12px}
.annuncio-lb__prev{left:8px;top:50%;transform:translateY(-50%)}
.annuncio-lb__next{right:8px;top:50%;transform:translateY(-50%)}
.annuncio-lb__count{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#fff;font-size:.95rem;opacity:.8}
@media (max-width:640px){.annuncio-lb img{max-width:100vw;max-height:calc(100vh - 140px)}.annuncio-lb__prev,.annuncio-lb__next{top:auto;bottom:4px;transform:none}}
body.annuncio-lb-open{overflow:hidden}
.listing-card__media{position:relative}
.listing-card__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0 0 3px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:var(--navy-700,#003b5c);font-size:1.7rem;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18);opacity:.85;transition:opacity .2s}
.listing-card__nav:hover,.listing-card__nav:focus-visible{opacity:1;outline:2px solid var(--gold-500,#d6af57)}
.listing-card__nav--prev{left:10px}.listing-card__nav--next{right:10px}
.listing-card__count{position:absolute;right:10px;bottom:10px;z-index:2;padding:2px 9px;border-radius:10px;background:rgba(0,20,32,.6);color:#fff;font-size:.8rem;pointer-events:none}
@media (hover:hover){.listing-card__nav{opacity:0}.listing-card__media:hover .listing-card__nav,.listing-card__nav:focus-visible{opacity:.85}.listing-card__media:hover .listing-card__nav:hover{opacity:1}}
/* Lotto D2 - computer: una sola fila di miniature, con le frecce */
.annuncio-strip{position:relative;margin-top:var(--s-4,12px)}
.annuncio-strip .annuncio-gallery__grid{margin:0;display:flex;gap:var(--s-3,8px);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.annuncio-strip .annuncio-gallery__grid::-webkit-scrollbar{display:none}
.annuncio-strip .annuncio-gallery__grid li{flex:0 0 calc((100% - 4 * var(--s-3,8px)) / 5);scroll-snap-align:start}
.annuncio-strip__nav,.annuncio-cover__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0 0 3px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:var(--navy-700,#003b5c);font-size:1.7rem;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.annuncio-strip__nav[hidden]{display:none}
.annuncio-strip__nav:hover,.annuncio-strip__nav:focus-visible,.annuncio-cover__nav:focus-visible{outline:2px solid var(--gold-500,#d6af57)}
.annuncio-strip__nav--prev{left:6px}.annuncio-strip__nav--next{right:6px}
/* Lotto D2 - telefono: niente miniature, la copertina scorre con frecce e dito */
.annuncio-cover{position:relative}
.annuncio-cover .annuncio-cover__nav,.annuncio-cover__count{display:none}
@media (max-width:640px){
  .annuncio-strip{display:none}
  .annuncio-gallery__main img{aspect-ratio:3/2;height:auto;max-height:none;object-fit:contain}
  .annuncio-cover .annuncio-cover__nav{display:flex}
  .annuncio-cover__nav--prev{left:10px}.annuncio-cover__nav--next{right:10px}
  .annuncio-cover__count{display:block;position:absolute;right:10px;bottom:10px;z-index:2;padding:3px 10px;border-radius:12px;background:rgba(0,20,32,.65);color:#fff;font-size:.85rem;pointer-events:none}
}
/* Ritocco 26/11/2026 - scheda annuncio: titolo e descrizione a tutta larghezza */
.annuncio-page .listing-hero h1,.annuncio-page .listing-hero p:not(.eyebrow){max-width:none}
.annuncio-page .annuncio__text{max-width:none}
/* Ritocco 27/11/2026 - il prezzo (prima riga del riquadro) in evidenza */
.annuncio__facts dl div:first-child{align-items:baseline}
.annuncio__facts dl div:first-child dd{font-family:var(--font-display,serif);font-size:var(--t-500,1.4rem);line-height:1.2}
/* Ritocco 27/11/2026 - telefono e tablet: prezzo e contatti subito sotto le foto, poi la descrizione */
@media (max-width:900px){
  .annuncio__grid{grid-template-columns:minmax(0,1fr)}
  .annuncio__media{display:contents}
  .annuncio-gallery,.annuncio__facts,.annuncio__text{min-width:0}
  .annuncio-gallery{order:1}
  .annuncio__facts{order:2;padding:var(--s-6,24px)}
  .annuncio__text{order:3;margin-top:0}
}
/* Ritocco 27/11/2026 - telefono: tabella «Dettaglio superficie» tutta visibile */
@media (max-width:640px){
  .annuncio-surf table{font-size:var(--t-100,.85rem)}
  .annuncio-surf th,.annuncio-surf td{padding:var(--s-3,8px) 4px}
  .annuncio-surf th{white-space:normal;vertical-align:bottom}
  .annuncio-surf thead th:nth-child(5),.annuncio-surf tbody td:nth-child(5),.annuncio-surf__tipo{display:none}
}