/* =========================================================
   LOVELY APARTMENT TERMINI — theme.css
   Palette dal logo (richiesta cliente: niente blu).
   Ardesia/antracite calda + terracotta + ocra/oro + crema.
   Caricato DOPO lo stile della pagina: vince a parità di specificità.
========================================================= */
:root {
  --night: #2E2A28;
  --night-2: #24201E;
  --night-3: #3A3532;
  --brass: #C9A45C;
  --brass-2: #A8843F;
  --brass-soft: #DDBE7E;
  --terra: #B5603F;
  --terra-btn: #A9542F;
  --terra-soft: #C9785A;
  --cream: #EAE3D2;
  --cream-2: #D8CFB9;
  --gray: #857B72;
  --gray-2: #B3A99E;
}

/* Nessun cursore custom: puntatore di sistema ovunque */
.cursor-dot, .cursor-ring { display: none !important; }

/* Bottoni principali in terracotta (testo crema chiaro, contrasto >= 4.5) */
.btn-fill, .nav-cta, .nav-drawer .drawer-cta, .btn-book, .pd-cta, .pd-mobile-bar-btn, .cookie-btn.primary { background: var(--terra-btn) !important; color: #FFF6EC !important; border-color: var(--terra-btn) !important; }
.btn-fill:hover, .nav-cta:hover, .nav-drawer .drawer-cta:hover, .btn-book:hover, .pd-cta:hover, .pd-mobile-bar-btn:hover { background: var(--brass) !important; color: var(--night-2) !important; }
.pp-cta-msg { background: var(--terra-btn) !important; color: #FFF6EC !important; border-color: var(--terra-btn) !important; }
::selection { background: var(--terra); color: #FFF6EC; }
.huge-num { color: var(--terra-soft); }

/* Brand nell'header: emblema del logo + nome */
.nav-brand { display: inline-flex; align-items: center; gap: 12px; font-style: normal; }
.nav-brand .brand-mark { width: auto; height: 46px; background: transparent; transition: height .4s var(--ease); }
.nav.scrolled .nav-brand .brand-mark { height: 38px; }
.nav-brand .brand-name { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--cream); line-height: 1.1; }
@media (max-width: 1200px) and (min-width: 1001px) { .nav-brand .brand-name { font-size: 17px; } .nav-menu { gap: 24px; } }
@media (max-width: 420px) { .nav-brand .brand-name { font-size: 16px; } .nav-brand .brand-mark { height: 38px; } }
.footer-brand .footer-logo { width: 220px; height: auto; background: transparent; margin-bottom: 18px; }
img.brand-mark, img.footer-logo { background: transparent !important; }

/* Credito foto hero */
.hero-img .hero-credit { position: absolute; left: 14px; bottom: 12px; z-index: 2; margin: 0; font-size: 11px; line-height: 1.3; color: rgba(234,227,210,.85); background: rgba(36,32,30,.55); padding: 4px 9px; max-width: calc(100% - 28px); }
.hero-img .hero-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Recensioni: card ad altezza naturale + testo troncato + Leggi tutto */
.t-track { align-items: flex-start !important; }
.t-card .rec-text { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px !important; }
.t-card.open .rec-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.t-card .rec-more { display: inline-block; margin: 0 0 22px; padding: 6px 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); border-bottom: 1px solid var(--brass); cursor: pointer; }
.t-card .rec-more[hidden] { display: none; }
.t-card .who { margin-top: 14px; }

/* Home: griglia dei luoghi */
.poi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.poi-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--night-3); }
.poi-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: brightness(.82); }
.poi-card:hover img { transform: scale(1.06); }
.poi-card .poi-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(180deg, transparent, rgba(36,32,30,.92)); font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.25; color: var(--cream); }
.poi-card .poi-name small { display: block; font-family: var(--font-sans); font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
@media (max-width: 700px) { .poi-grid { grid-template-columns: repeat(2, 1fr); } }
.around-list-mini li a { display: contents; }

/* Card dintorni con foto */
.mag-card .mag-img { margin: -1px -1px 22px; aspect-ratio: 16/10; overflow: hidden; background: var(--night-3); }
.mag-card .mag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mag-card:hover .mag-img img { transform: scale(1.05); }

/* Mappa Leaflet */
.map-section { background: var(--night-2); }
.map-container { height: 460px; }
#mapContainer { height: 460px; width: 100%; background: var(--night-3); }
.map-caption { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 28px; color: var(--cream-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.map-caption b { color: var(--brass); font-weight: 600; }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-popup-content { color: #2E2A28; font-size: 13px; line-height: 1.45; }
.leaflet-popup-content b { color: #A9542F; }
.home-pin { width: 22px; height: 22px; border-radius: 50%; background: #B5603F; border: 3px solid #EAE3D2; box-shadow: 0 0 0 4px rgba(181,96,63,.35), 0 4px 10px rgba(0,0,0,.4); }
.poi-pin { width: 26px; height: 26px; border-radius: 50%; background: #C9A45C; color: #24201E; border: 2px solid #24201E; font: 700 12px/22px var(--font-sans); text-align: center; }

/* Pagina annuncio: cortile e ingresso */
.pd-court-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.pd-court-grid button { padding: 0; border: 0; background: var(--night-3); aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.pd-court-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pd-court-grid button:hover img { transform: scale(1.04); }

/* Figure con credito */
figure.article-figure figcaption a, .dest-body figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Blog: miniatura nelle card */
.blog-card .blog-thumb { margin: -1px -1px 18px; aspect-ratio: 16/10; overflow: hidden; background: var(--night-3); }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured .blog-thumb { aspect-ratio: 21/9; overflow: hidden; margin-bottom: 22px; }
.blog-featured .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

html, body { overflow-x: clip !important; }

/* Hero mobile: niente testo tagliato */
@media (max-width: 600px) {
  .hero-side { padding: 48px 22px 40px !important; }
  .hero .sub { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-meta .l { letter-spacing: .08em; font-size: 10px; }
}
.s-intro .split-side .ima img { object-fit: cover !important; }
