/* ==========================================================================
   Agenzia Turistica Mario — stili del sito
   Palette ricavata dal logo: verde #63a26f, blu #474a7f, azzurro #00b7fc, rosso #b22442
   ========================================================================== */

:root {
  --atm-green: #63a26f;
  --atm-green-dark: #3d7749; /* contrasto AA: 5.3:1 su bianco, 4.7:1 su --atm-green-soft */
  --atm-green-darker: #2f5f3a;
  --atm-green-soft: #eaf3ec;
  --atm-navy: #474a7f;
  --atm-navy-dark: #2e3060;
  --atm-navy-deep: #1f2146;
  --atm-sky: #00b7fc;
  --atm-sky-soft: #e5f7ff;
  --atm-red: #b22442;
  --atm-sand: #f7f6f2;
  --atm-text: #2b2d3c;
  --atm-muted: #6c7084;
  --atm-border: #e4e6ec;
  --atm-white: #ffffff;
  --atm-radius: 14px;
  --atm-radius-sm: 8px;
  --atm-shadow: 0 10px 30px rgba(31, 33, 70, .08);
  --atm-shadow-hover: 0 18px 40px rgba(31, 33, 70, .16);
  --atm-font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --atm-font-heading: 'Figtree', Helvetica, Arial, sans-serif;
  --atm-header-h: 84px;

  --bs-body-font-family: var(--atm-font-body);
  --bs-body-color: var(--atm-text);
  --bs-link-color: var(--atm-green-dark);
  --bs-link-color-rgb: 61, 119, 73;
  --bs-link-hover-color: var(--atm-navy);
  --bs-link-hover-color-rgb: 71, 74, 127;
  --bs-primary: var(--atm-green);
  --bs-primary-rgb: 99, 162, 111;
  --bs-border-color: var(--atm-border);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  font-family: var(--atm-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--atm-text);
  background: var(--atm-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--atm-font-heading);
  font-weight: 600;
  color: var(--atm-navy-deep);
  line-height: 1.15;
}
h1, .h1 { font-weight: 800; letter-spacing: -0.02em; }
h2, .h2 { font-weight: 800; letter-spacing: -0.015em; }
.font-body { font-family: var(--atm-font-body) !important; }
a { color: var(--atm-green-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--atm-navy); }
img { max-width: 100%; height: auto; }
.object-cover { object-fit: cover; }
.text-muted { color: var(--atm-muted) !important; }
.text-green { color: var(--atm-green) !important; }
.text-navy { color: var(--atm-navy) !important; }
.bg-sand { background: var(--atm-sand); }
.bg-green-soft { background: var(--atm-green-soft); }
.bg-navy { background: var(--atm-navy-dark); color: #fff; }
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; }

.container { --bs-gutter-x: 2rem; }
@media (min-width: 992px) { .container, .container-xxl { max-width: 1600px; } .container { --bs-gutter-x: 5rem; } }
@media (min-width: 1200px) { .container { --bs-gutter-x: 7rem; } }
/* Le righe g-5 (gutter 3rem) sporgono oltre il padding del container (1rem) sotto i 992px: le riallineo */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 2rem; } }
.atm-carousel-nav button.swiper-button-lock { display: none; }
/* Container più stretto per i blocchi "a box" (proprietari, esperienze) */
@media (min-width: 992px) { .container.container-narrow { max-width: 1320px; } }

.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 56px 0; }
@media (max-width: 991.98px) {
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 44px 0; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--atm-font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--atm-green-dark);
  margin-bottom: .6rem;
}
.eyebrow-light { color: #b9e0c1; }
.section-title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: .5rem; }
.section-lead { color: var(--atm-muted); font-size: 1.05rem; margin-bottom: 0; max-width: 720px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; color: var(--atm-navy-deep);
  border-bottom: 2px solid var(--atm-green);
  padding-bottom: 2px;
  white-space: nowrap;
}
.link-arrow .material-symbols-rounded { font-size: 1.15rem; transition: transform .2s ease; }
.link-arrow:hover { color: var(--atm-green-dark); }
.link-arrow:hover .material-symbols-rounded { transform: translateX(4px); }

.rich-text { font-size: 1.05rem; }
.rich-text h2, .rich-text h3 { margin: 2rem 0 1rem; }
.rich-text h2 { font-size: 1.75rem; }
.rich-text h3 { font-size: 1.4rem; }
.rich-text ul { padding-left: 0; list-style: none; }
.rich-text ul li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.rich-text ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--atm-green); box-shadow: 0 0 0 4px var(--atm-green-soft);
}
.rich-text a { text-decoration: underline; }
.rich-text img { border-radius: var(--atm-radius-sm); }
.rich-text > *:last-child { margin-bottom: 0; }
/* Testo introduttivo delle sezioni (section.php): su due colonne da desktop */
@media (min-width: 992px) {
  .text-center-lg { column-count: 2; column-gap: 3.5rem; }
  .text-center-lg > :first-child { margin-top: 0; }
  .text-center-lg h2, .text-center-lg h3 { break-after: avoid; }
}

/* ---------- Buttons ---------- */
.btn-atm {
  --atm-btn-bg: var(--atm-navy-dark);
  --atm-btn-color: #fff;
  --atm-btn-border: var(--atm-navy-dark);
  --atm-btn-hover-bg: var(--atm-green-dark);
  --atm-btn-hover-border: var(--atm-green-dark);
  --atm-btn-hover-color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: var(--atm-font-body);
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  color: var(--atm-btn-color);
  background: var(--atm-btn-bg);
  border: 2px solid var(--atm-btn-border);
  border-radius: var(--atm-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-atm .material-symbols-rounded { font-size: 1.15rem; transition: transform .25s ease; }
.btn-atm:hover, .btn-atm:focus-visible {
  background: var(--atm-btn-hover-bg);
  border-color: var(--atm-btn-hover-border);
  color: var(--atm-btn-hover-color);
  box-shadow: 0 8px 20px rgba(31, 33, 70, .15);
}
.btn-atm:hover .material-symbols-rounded { transform: translateX(3px); }
.btn-atm:disabled { opacity: .6; cursor: not-allowed; }
.btn-atm-green { --atm-btn-bg: var(--atm-green-dark); --atm-btn-border: var(--atm-green-dark); --atm-btn-hover-bg: var(--atm-green-darker); --atm-btn-hover-border: var(--atm-green-darker); }
.btn-atm-outline { --atm-btn-bg: transparent; --atm-btn-color: var(--atm-navy-deep); --atm-btn-border: var(--atm-navy-deep); --atm-btn-hover-bg: var(--atm-navy-deep); --atm-btn-hover-border: var(--atm-navy-deep); }
.btn-atm-light { --atm-btn-bg: #fff; --atm-btn-color: var(--atm-navy-deep); --atm-btn-border: #fff; --atm-btn-hover-bg: var(--atm-green-dark); --atm-btn-hover-border: var(--atm-green-dark); }
.btn-atm-ghost-light { --atm-btn-bg: rgba(255,255,255,.08); --atm-btn-color: #fff; --atm-btn-border: rgba(255,255,255,.85); --atm-btn-hover-bg: #fff; --atm-btn-hover-border: #fff; --atm-btn-hover-color: var(--atm-navy-deep); backdrop-filter: blur(4px); }
.btn-atm-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-atm-block { width: 100%; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm);
  background: #fff; color: var(--atm-navy-deep);
  transition: all .2s ease;
}
.btn-icon:hover { border-color: var(--atm-green); color: var(--atm-green-dark); }

/* ---------- Social ---------- */
.atm-social { display: flex; align-items: center; gap: .5rem; }
.atm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.atm-social a:hover { background: var(--atm-green-dark); color: #fff; }

/* ---------- Header / Nav (stile homepage-6 del template: box scuro flottante, logo a sinistra, menu al centro, bottone a destra) ---------- */
:root { --atm-header-offset: calc(var(--atm-header-h) + 40px); }
@media (max-width: 767.98px) { :root { --atm-header-offset: calc(var(--atm-header-h) + 16px); } }
.atm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.atm-header.is-scrolled { background: rgba(31, 33, 70, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(31, 33, 70, .12); }
.atm-header-inner {
  display: flex; align-items: center; gap: 1.5rem; height: var(--atm-header-h);
  margin-top: 40px; padding: 0 30px; background: var(--atm-navy-deep); border-radius: 10px;
  transition: margin .25s ease, padding .25s ease, background-color .25s ease, border-radius .25s ease;
}
.atm-header.is-scrolled .atm-header-inner { margin-top: 0; padding: 0; background: none; border-radius: 0; }
@media (max-width: 767.98px) { .atm-header-inner { margin-top: 16px; padding: 0 16px; } }
.atm-header-nav { margin: 0 auto; }
.atm-header-cta { flex-shrink: 0; }
.atm-menu-toggle { margin-left: auto; }
.atm-logo { display: inline-flex; flex-shrink: 0; }
.atm-logo img { height: 54px; width: auto; }
.atm-logo .atm-logo-negative { display: none; }
.atm-header .atm-logo-main { display: none; }
.atm-header .atm-logo-negative { display: block; }
@media (max-width: 575.98px) { .atm-logo img { height: 44px; } }

/* Il contenuto parte sotto l'header flottante, tranne quando la pagina inizia con uno slider, un'intestazione scura o la mappa */
main { padding-top: calc(var(--atm-header-offset) + 24px); }
.view-index main,
main:has(> .page-hero:first-child),
main:has(> .contact-top:first-child) { padding-top: 0; }

.atm-nav { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.atm-nav > li { position: relative; }
.atm-nav > li > a, .atm-nav > li > button {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: .55rem .8rem;
  font-size: 1rem; font-weight: 700;
  color: #fff;
  background: none; border: 0;
  border-radius: var(--atm-radius-sm);
  white-space: nowrap;
}
.atm-nav > li > a .material-symbols-rounded, .atm-nav > li > button .material-symbols-rounded { font-size: 1.15rem; transition: transform .2s ease; }
.atm-nav > li > a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; background: var(--atm-green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.atm-nav > li:hover > a::after, .atm-nav > li.active > a::after { transform: scaleX(1); }
.atm-nav > li.active > a, .atm-nav > li:hover > a { color: #8fd19c; } /* verde chiaro: header scuro, contrasto AA */
.atm-nav .atm-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 10;
  min-width: 240px; margin: 0; padding: .6rem; list-style: none;
  background: #fff; border-radius: var(--atm-radius);
  box-shadow: var(--atm-shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.atm-nav > li:hover .atm-dropdown, .atm-nav > li:focus-within .atm-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.atm-nav > li:hover > a .material-symbols-rounded { transform: rotate(180deg); }
.atm-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .8rem; border-radius: var(--atm-radius-sm);
  font-size: .92rem; color: var(--atm-text);
}
.atm-dropdown a:hover, .atm-dropdown a.active { background: var(--atm-green-soft); color: var(--atm-green-dark); }
.atm-dropdown .atm-dropdown-count { font-size: .75rem; color: var(--atm-muted); }
.atm-dropdown .atm-dropdown-all { border-top: 1px solid var(--atm-border); margin-top: .35rem; padding-top: .35rem; }
.atm-dropdown .atm-dropdown-all a { font-weight: 700; color: var(--atm-navy-deep); }

.atm-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--atm-radius-sm);
  background: rgba(255,255,255,.08); color: #fff;
}
.atm-menu-toggle .material-symbols-rounded { font-size: 1.75rem; }

/* Offcanvas mobile */
.atm-offcanvas { --bs-offcanvas-width: min(400px, 92vw); }
.atm-offcanvas .offcanvas-header { justify-content: flex-end; border-bottom: 1px solid var(--atm-border); }
.atm-mobile-nav { list-style: none; margin: 0; padding: 0; }
.atm-mobile-nav > li { border-bottom: 1px solid var(--atm-border); }
.atm-mobile-nav a, .atm-mobile-nav button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .9rem 0; font-weight: 600; font-size: 1.02rem;
  color: var(--atm-navy-deep); background: none; border: 0; text-align: left;
}
.atm-mobile-nav li.active > a, .atm-mobile-nav li.active > button { color: var(--atm-green-dark); }
.atm-mobile-nav button .material-symbols-rounded { transition: transform .2s ease; }
.atm-mobile-nav button[aria-expanded="true"] .material-symbols-rounded { transform: rotate(180deg); }
.atm-mobile-nav ul { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .9rem; border-left: 2px solid var(--atm-green-soft); }
.atm-mobile-nav ul a { padding: .45rem 0; font-weight: 500; font-size: .95rem; color: var(--atm-text); }

/* ---------- Hero slider ---------- */
.atm-hero { position: relative; background: var(--atm-navy-deep); overflow: hidden; }
.atm-hero .swiper, .atm-hero-slide {
  /* 88% e non 100%: Chrome ignora come candidato LCP un'immagine che copre tutto lo schermo,
     e da mobile l'LCP diventerebbe il testo del banner cookie (caricato tardi da script esterni) */
  height: 88vh;
  height: 88svh;
  min-height: 560px; max-height: 900px;
}
.atm-hero-slide { position: relative; display: flex; align-items: center; color: #fff; }
.atm-hero-media { position: absolute; inset: 0; }
.atm-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.atm-hero-slide .swiper-slide-active .atm-hero-media img,
.swiper-slide-active .atm-hero-media img { animation: atmKenBurns 9s ease-out both; }
.atm-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 33, 70, .78) 0%, rgba(31, 33, 70, .45) 45%, rgba(31, 33, 70, .1) 100%),
    linear-gradient(0deg, rgba(31, 33, 70, .45) 0%, rgba(31, 33, 70, 0) 35%);
}
.atm-hero-content { position: relative; z-index: 2; max-width: 720px; }
.atm-hero-title { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1.05; margin-bottom: 1.25rem; }
.atm-hero-text { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: rgba(255,255,255,.9); margin-bottom: 2rem; max-width: 560px; }
.atm-hero .anim-up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.atm-hero .swiper-slide-active .anim-up { opacity: 1; transform: none; }
/* Prima slide visibile subito, senza aspettare l'inizializzazione di Swiper (LCP) */
.atm-hero .swiper:not(.swiper-initialized) .swiper-slide:first-child .anim-up { opacity: 1; transform: none; transition: none; }
.atm-hero .swiper-slide-active .anim-up.delay-1 { transition-delay: .25s; }
.atm-hero .swiper-slide-active .anim-up.delay-2 { transition-delay: .5s; }
.atm-hero-nav {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08);
  color: #fff; backdrop-filter: blur(4px);
  transition: background-color .2s ease, color .2s ease;
}
.atm-hero-nav:hover { background: #fff; color: var(--atm-navy-deep); }
.atm-hero-prev { left: 24px; }
.atm-hero-next { right: 24px; }
@media (min-width: 768px) {
  .atm-hero-slide { padding-top: calc(var(--atm-header-h) + 40px); }
  .atm-hero-slide .container { max-width: min(1280px, calc(100% - 200px)); }
}
.atm-hero-pagination { position: absolute; left: 0; right: 0; bottom: 120px !important; z-index: 5; text-align: center; }
.atm-hero-pagination .swiper-pagination-bullet { position: relative; width: 24px; height: 24px; background: transparent; opacity: 1; margin: 0 !important; border-radius: 0; transition: width .3s ease; }
.atm-hero-pagination .swiper-pagination-bullet::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 6px;
  background: #fff; opacity: .5; transform: translate(-50%, -50%); transition: all .3s ease;
}
.atm-hero-pagination .swiper-pagination-bullet-active { width: 40px; }
.atm-hero-pagination .swiper-pagination-bullet-active::before { width: 30px; opacity: 1; background: var(--atm-green); }
.atm-hero-scroll {
  position: absolute; right: 32px; bottom: 116px; z-index: 5;
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 767.98px) {
  .atm-hero-nav { display: none; }
  .atm-hero-scroll { display: none; }
  .atm-hero-overlay { background: linear-gradient(0deg, rgba(31, 33, 70, .85) 0%, rgba(31, 33, 70, .35) 60%, rgba(31, 33, 70, .2) 100%); }
  .atm-hero-slide { align-items: flex-end; padding-bottom: 140px; }
  .atm-hero-pagination { bottom: 96px !important; }
}
@keyframes atmKenBurns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Search strip (home, affitti/vendite) ---------- */
.atm-search-strip { position: relative; z-index: 6; margin-top: -48px; }
.atm-search-card {
  position: relative;
  background: #fff; border-radius: var(--atm-radius);
  box-shadow: 0 24px 60px rgba(31, 33, 70, .18);
  padding: 1rem;
}
@media (max-width: 991.98px) { .atm-search-strip { margin-top: -32px; } }
@media (min-width: 992px) { .atm-search-card { max-width: 960px; margin-inline: auto; } }

/* Tab Affitto/Vendita "a linguetta" appoggiate sopra il box */
.atm-search-card .reweb-tabs {
  position: absolute; bottom: 100%; left: 1.5rem;
  gap: .35rem; margin: 0; padding: 0; background: none; border-radius: 0;
}
.atm-search-card .reweb-tabs button {
  padding: .7rem 1.6rem; border-radius: 10px 10px 0 0;
  font-size: .95rem; color: #fff;
  background: rgba(31, 33, 70, .55); backdrop-filter: blur(6px);
  transition: background-color .2s ease, color .2s ease;
}
.atm-search-card .reweb-tabs button:hover { background: rgba(31, 33, 70, .8); }
.atm-search-card .reweb-tabs button.active { background: #fff; color: var(--atm-navy-deep); }
.atm-search-card:has(.reweb-tabs) { border-top-left-radius: 0; }
.atm-search-card:has(.reweb-tabs) .reweb-tabs { left: 0; }

/* Campi con icona */
.atm-search-card .form-floating::before {
  position: absolute; left: 1rem; top: 50%; z-index: 4; transform: translateY(-50%);
  font-family: 'Material Symbols Rounded'; font-size: 1.4rem; line-height: 1;
  color: var(--atm-green); pointer-events: none;
}
.atm-search-card .form-floating:has(#daterange-display)::before { content: 'calendar_month'; }
.atm-search-card .form-floating:has([name="zone"])::before { content: 'location_on'; }
.atm-search-card .form-floating:has([name="beds_number"])::before { content: 'group'; }
.atm-search-card .form-floating:has([name="price"])::before { content: 'sell'; }
.atm-search-card .form-floating > .form-control,
.atm-search-card .form-floating > .form-select { padding-left: 4.25rem; font-weight: 600; color: var(--atm-navy-deep); }
.atm-search-card .form-floating > label { padding-left: 4.25rem; font-size: .875rem; }
.atm-search-card .form-floating::after {
  content: ''; position: absolute; left: 3.15rem; top: 14px; bottom: 14px; z-index: 4;
  width: 1px; background: var(--atm-border); pointer-events: none;
}
.atm-search-card .form-floating > .form-control { cursor: pointer; }
.atm-search-card .btn-atm { padding-left: 2rem; padding-right: 2rem; font-size: 1rem; }
.atm-search-card .btn-icon { background: var(--atm-sand); border-color: var(--atm-sand); }
.atm-search-card .btn-icon:hover { background: var(--atm-green-soft); border-color: var(--atm-green-soft); }

/* Desktop: campi uniti in un'unica barra con separatori verticali */
@media (min-width: 992px) {
  .atm-search-card { padding: .75rem; }
  .atm-search-card form.row { --bs-gutter-x: .5rem; --bs-gutter-y: 0; }
  .atm-search-card .form-floating > .form-control,
  .atm-search-card .form-floating > .form-select {
    border-color: var(--atm-border); background-color: transparent;
    transition: background-color .2s ease, border-color .2s ease;
  }
  .atm-search-card .form-floating > .form-control:hover,
  .atm-search-card .form-floating > .form-select:hover { background-color: var(--atm-sand); border-color: #d3d6df; }
  .atm-search-card .form-floating > .form-control:focus,
  .atm-search-card .form-floating > .form-select:focus { background-color: var(--atm-sand); border-color: var(--atm-green); box-shadow: none; }
  .atm-search-card .reweb-search .form-floating > .form-control,
  .atm-search-card .reweb-search .form-floating > .form-select,
  .atm-search-card .reweb-search .btn-atm,
  .atm-search-card .reweb-search .btn-icon { height: 64px; min-height: 64px; }
  .atm-search-card .reweb-search .btn-icon { width: 64px; }
  .atm-search-card .form-floating > label::after { background-color: transparent !important; }
}

/* ---------- Unit card ---------- */
.unit-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: .6rem;
  background: #fff; border: 1px solid rgba(31, 33, 70, .06); border-radius: 18px;
  box-shadow: 0 4px 18px rgba(31, 33, 70, .06);
  overflow: hidden; color: var(--atm-text);
  transition: box-shadow .3s ease, transform .3s ease;
}
.unit-card:hover { box-shadow: 0 22px 44px rgba(31, 33, 70, .16); transform: translateY(-6px); color: var(--atm-text); }
.unit-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--atm-green-soft); }
.unit-card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 33, 70, .28) 0%, rgba(31, 33, 70, 0) 35%, rgba(31, 33, 70, 0) 70%, rgba(31, 33, 70, .25) 100%);
}
.unit-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.unit-card:hover .unit-card-media img { transform: scale(1.07); }
.unit-card-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; z-index: 2; }
.unit-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .32rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--atm-navy-deep);
  backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.unit-tag .material-symbols-rounded { font-size: 1rem; }
.unit-tag-green { background: var(--atm-green-dark); color: #fff; }
.unit-tag-navy { background: var(--atm-navy); color: #fff; }
.unit-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1rem .65rem .4rem; }
.unit-card-location {
  display: flex; align-items: center; gap: .2rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--atm-green-dark); margin-bottom: .4rem;
}
.unit-card-location .material-symbols-rounded { font-size: 1.05rem; color: var(--atm-green); }
.unit-card-title {
  font-family: var(--atm-font-body); font-weight: 700; font-size: .95rem; line-height: 1.35; letter-spacing: -0.1px; text-transform: uppercase;
  color: var(--atm-navy-deep); margin-bottom: .9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s ease;
}
.unit-card:hover .unit-card-title { color: var(--atm-green-dark); }
.unit-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 1.1rem; padding: 0; list-style: none; font-size: .8rem; font-weight: 600; color: var(--atm-text); }
.unit-card-meta li { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .3rem .6rem; border-radius: 8px; background: var(--atm-sand); }
.unit-card-meta .material-symbols-rounded { font-size: 1.05rem; color: var(--atm-green); }
.unit-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .9rem; border-top: 1px dashed var(--atm-border); }
.unit-card-price { font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: var(--atm-navy-deep); }
.unit-card-price small { display: block; font-weight: 600; font-size: .7rem; color: var(--atm-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }
.unit-card-cta {
  display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0;
  padding: .5rem .6rem .5rem .95rem; border-radius: 999px;
  background: var(--atm-green-soft); color: var(--atm-green-dark);
  font-weight: 700; font-size: .85rem;
  transition: background-color .25s ease, color .25s ease;
}
.unit-card-cta .material-symbols-rounded { font-size: 1.1rem; transition: transform .2s ease; }
.unit-card:hover .unit-card-cta { background: var(--atm-green-dark); color: #fff; }
.unit-card:hover .unit-card-cta .material-symbols-rounded { transform: translateX(3px); }
.unit-card-ref { display: inline-flex; flex-wrap: wrap; align-items: center; font-weight: 800; font-size: .8rem; line-height: 1.15; color: var(--atm-navy-deep); }
.unit-card-ref small { flex-basis: 100%; margin-bottom: .2rem; font-weight: 600; font-size: .7rem; color: var(--atm-muted); text-transform: uppercase; letter-spacing: .08em; }
.unit-card-ref .material-symbols-rounded { font-size: 1.05rem; margin-right: .1rem; color: var(--atm-green); }

/* Carousel units (home / correlati) */
.atm-carousel { position: relative; }
.atm-carousel .swiper { padding: 24px 40px 60px; margin: -12px -40px -36px; }
@media (max-width: 991.98px) { .atm-carousel .swiper { padding-inline: 16px; margin-inline: -16px; } }
.atm-carousel .swiper-slide { height: auto; }
/* Variante bleed: parte allineata al container e sborda fino al bordo dx della finestra (si intravede la slide successiva).
   Le slide mantengono la larghezza calcolata sul container (cqi = larghezza .atm-carousel) */
.atm-carousel-bleed { container-type: inline-size; }
.atm-carousel-bleed .swiper { margin-right: calc(50% - 50vw); padding-right: 0; }
.atm-carousel-bleed .swiper-slide { width: calc((100cqi - 16px * .15) / 1.15); }
@media (min-width: 576px) { .atm-carousel-bleed .swiper-slide { width: calc((100cqi - 20px * 1.1) / 2.1); } }
@media (min-width: 992px) { .atm-carousel-bleed .swiper-slide { width: calc((100cqi - 48px) / 3); } }
@media (min-width: 1400px) { .atm-carousel-bleed[data-per-view-xl="4"] .swiper-slide { width: calc((100cqi - 72px) / 4); } }
.atm-carousel-nav { display: flex; gap: .5rem; }
.atm-carousel-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--atm-border); background: #fff; color: var(--atm-navy-deep);
  transition: all .2s ease;
}
.atm-carousel-nav button:hover { background: var(--atm-navy-deep); color: #fff; border-color: var(--atm-navy-deep); }
.atm-carousel-nav button.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* ---------- About (home) ---------- */
.atm-about-media { position: relative; }
.atm-about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--atm-radius); }
.atm-about-media::before {
  content: ''; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 55%;
  border-radius: var(--atm-radius); background: var(--atm-green-soft); z-index: -1;
}
.atm-about-badge {
  position: absolute; right: -16px; bottom: 32px;
  display: flex; align-items: center; gap: .9rem;
  max-width: 300px; padding: 1rem 1.4rem 1rem 1rem;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: 16px; border-left: 4px solid var(--atm-green);
  box-shadow: 0 20px 45px rgba(31, 33, 70, .18);
}
.atm-about-badge-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--atm-green) 0%, var(--atm-green-dark) 100%);
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 0 0 5px var(--atm-green-soft);
}
.atm-about-badge-body { display: flex; flex-direction: column; gap: .15rem; }
.atm-about-badge-body strong { font-size: 1.05rem; font-weight: 800; color: var(--atm-navy-deep); line-height: 1.2; }
.atm-about-badge-body span { font-size: .82rem; line-height: 1.35; color: var(--atm-muted); }
@media (max-width: 575.98px) {
  .atm-about-badge { right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: .75rem 1rem .75rem .75rem; }
  .atm-about-badge-icon { width: 42px; height: 42px; font-size: 1.4rem; }
}
@media (min-width: 1200px) {
  .atm-about-row > .col-lg-6:last-child { padding-left: 4rem; }
  .atm-about-text { column-count: 2; column-gap: 2.5rem; }
}
/* Box "Perché sceglierci" (home) */
.atm-why {
  position: relative; overflow: hidden;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--atm-navy-deep) 0%, var(--atm-navy-dark) 100%);
  border-radius: 18px; color: rgba(255,255,255,.8);
  box-shadow: 0 24px 50px rgba(31, 33, 70, .18);
}
.atm-why::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 162, 111, .28) 0%, rgba(99, 162, 111, 0) 70%);
  pointer-events: none;
}
.atm-why > .row { position: relative; }
.atm-why h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.atm-why-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.25rem; padding: .35rem 1rem .35rem .35rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9e0c1;
}
.atm-why-badge .material-symbols-rounded {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--atm-green-dark); color: #fff; font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(99, 162, 111, .25);
}
.atm-why-text { font-size: 1rem; }
.atm-why-text p { color: #fff; font-weight: 700; margin-bottom: .9rem; }
.atm-why-text ul { margin-bottom: 1.75rem; }
.atm-why-text ul:last-child { margin-bottom: 0; }
.atm-why-text ul li { padding: .1rem 0 0 2.1rem; margin-bottom: .7rem; line-height: 1.5; }
.atm-why-text ul li::before {
  content: 'check'; top: .1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: rgba(99, 162, 111, .22); box-shadow: none;
  font-family: 'Material Symbols Rounded'; font-size: 1rem; font-weight: 700; color: #8fd19c;
}
@media (max-width: 991.98px) {
  .atm-why { padding: 1.75rem 1.25rem; }
  .atm-why h2 { font-size: 1.5rem; }
  .atm-why-badge { margin-bottom: .9rem; }
  .atm-readmore:not(.is-open) .atm-why-text {
    max-height: 210px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}
.atm-readmore-toggle {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: 1rem; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .9rem;
}
.atm-readmore-toggle .material-symbols-rounded { font-size: 1.2rem; transition: transform .2s ease; }
.atm-readmore.is-open .atm-readmore-toggle .material-symbols-rounded { transform: rotate(180deg); }
@media (min-width: 992px) {
  .atm-why { padding: 3.5rem; }
  .atm-why .col-lg-4 { padding-right: 2.5rem; border-right: 1px solid rgba(255,255,255,.12); }
}
.atm-check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.atm-check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.atm-check-list .material-symbols-rounded { color: var(--atm-green); font-size: 1.35rem; }

/* ---------- Owners banner ---------- */
.atm-owners {
  position: relative; overflow: hidden;
  background: var(--atm-green-soft);
  border-radius: var(--atm-radius);
  padding: 2.5rem;
}
.atm-owners::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(99, 162, 111, .14);
}
.atm-owners-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff; color: var(--atm-green-dark);
  box-shadow: var(--atm-shadow);
}
.atm-owners-icon .material-symbols-rounded { font-size: 2.75rem; }
.atm-owners-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: .5rem; }
.atm-owners p { color: var(--atm-text); margin-bottom: 0; }
.atm-owners > .row { position: relative; z-index: 1; }
@media (max-width: 767.98px) { .atm-owners { padding: 1.75rem; } }

/* ---------- Promo boxes (territorio / lidi) ---------- */
.atm-promo {
  display: flex; height: 100%; overflow: hidden;
  background: var(--atm-sand); border-radius: var(--atm-radius);
  color: var(--atm-text);
  transition: box-shadow .3s ease;
}
.atm-promo:hover { box-shadow: var(--atm-shadow-hover); color: var(--atm-text); }
.atm-promo-media { flex: 0 0 42%; overflow: hidden; }
.atm-promo-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .6s ease; }
.atm-promo:hover .atm-promo-media img { transform: scale(1.05); }
.atm-promo-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.atm-promo-title { font-size: 1.85rem; margin-bottom: .5rem; }
.atm-promo-body p { color: var(--atm-muted); margin-bottom: 1.25rem; }
@media (max-width: 575.98px) {
  .atm-promo { flex-direction: column; }
  .atm-promo-media img { min-height: 200px; aspect-ratio: 16 / 9; }
  .atm-promo-body { padding: 1.5rem; }
}

/* ---------- Experiences band ---------- */
.atm-band {
  position: relative; overflow: hidden;
  background: var(--atm-navy-dark); color: rgba(255,255,255,.88);
}
.atm-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(0, 183, 252, .22) 0, rgba(0, 183, 252, 0) 45%),
    radial-gradient(circle at 10% 90%, rgba(99, 162, 111, .28) 0, rgba(99, 162, 111, 0) 40%);
}
.atm-band > .container { position: relative; z-index: 1; }
.atm-band h2 { color: #fff; }

/* ---------- Esperienze (home): box colorato con foto ad arco che sporge sopra ---------- */
.atm-experiences { padding-top: 140px; }
.atm-experiences-box {
  position: relative; z-index: 1;
  padding: 80px 90px;
  background: linear-gradient(120deg, var(--atm-navy-deep) 0%, var(--atm-navy-dark) 55%, var(--atm-navy) 100%);
  border-radius: 24px; color: rgba(255,255,255,.85);
}
.atm-experiences-box::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 92% 20%, rgba(0, 183, 252, .28) 0, rgba(0, 183, 252, 0) 38%),
    radial-gradient(circle at 5% 100%, rgba(99, 162, 111, .4) 0, rgba(99, 162, 111, 0) 42%),
    radial-gradient(circle at 70% 110%, rgba(178, 36, 66, .3) 0, rgba(178, 36, 66, 0) 35%);
}
.atm-experiences-box h2 { color: #fff; }
.atm-experiences-text { max-width: 560px; margin-bottom: 2rem; font-size: 1.05rem; }
.atm-experiences-media {
  position: absolute; right: 90px; bottom: 0;
  width: 340px; height: calc(100% + 80px);
  border-radius: 200px 200px 0 0; overflow: hidden;
  border: 6px solid rgba(255,255,255,.12); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(31, 33, 70, .25);
}
.atm-experiences-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 1199.98px) {
  .atm-experiences-box { padding: 64px 48px; }
  .atm-experiences-media { right: 40px; width: 280px; }
}
@media (max-width: 991.98px) {
  .atm-experiences { padding-top: 88px; }
  .atm-experiences-box { padding: 48px 24px; text-align: center; }
  .atm-experiences-text { margin-left: auto; margin-right: auto; }
  .atm-experiences-media { display: none; }
}

/* ---------- News card ---------- */
.news-card {
  display: flex; gap: 1rem; height: 100%;
  background: #fff; border: 1px solid var(--atm-border); border-radius: var(--atm-radius);
  padding: 1rem; color: var(--atm-text);
  transition: box-shadow .3s ease;
}
.news-card:hover { box-shadow: var(--atm-shadow-hover); color: var(--atm-text); }
.news-card-media { flex: 0 0 38%; border-radius: var(--atm-radius-sm); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; align-items: flex-start; }
.news-card-meta { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atm-green-dark); margin-bottom: .35rem; }
.news-card-title { font-size: 1.15rem; margin-bottom: .4rem; }
.news-card-text { font-size: .9rem; color: var(--atm-muted); margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767.98px) {
  .news-card { flex-direction: column; }
  .news-card-media { flex: none; aspect-ratio: 4 / 3; }
  .news-card-media img { min-height: 0; }
  .news-card-body { flex-grow: 1; }
}

/* ---------- Article / place card ---------- */
.place-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--atm-border); border-radius: var(--atm-radius);
  color: var(--atm-text);
  transition: box-shadow .3s ease, transform .3s ease;
}
.place-card:hover { box-shadow: var(--atm-shadow-hover); transform: translateY(-4px); color: var(--atm-text); }
.place-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--atm-green-soft); }
.place-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.place-card:hover .place-card-media img { transform: scale(1.05); }
.place-card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.place-card-title { font-size: 1.45rem; margin-bottom: .35rem; }
.place-card-subtitle { font-weight: 500; color: var(--atm-green-dark); font-size: .92rem; margin-bottom: .6rem; }
.place-card-text { color: var(--atm-muted); font-size: .95rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.place-card-footer { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 1.25rem; border-top: 1px dashed var(--atm-border); }
.place-card-body > :nth-last-child(2) { margin-bottom: 1.25rem; }
.place-card:hover .unit-card-cta { background: var(--atm-green-dark); color: #fff; }
.place-card:hover .unit-card-cta .material-symbols-rounded { transform: translateX(3px); }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--atm-navy-dark); color: #fff;
  padding: calc(var(--atm-header-offset) + 120px) 0 44px;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(31, 33, 70, .9) 0%, rgba(46, 48, 96, .72) 55%, rgba(71, 74, 127, .45) 100%);
}
/* Senza immagine: gradiente con i colori del logo (blu, verde, azzurro, rosso) */
.page-hero.no-media {
  background:
    radial-gradient(ellipse 60% 90% at 8% 110%, rgba(99, 162, 111, .65) 0%, rgba(99, 162, 111, 0) 60%),
    radial-gradient(ellipse 55% 80% at 78% -10%, rgba(0, 183, 252, .45) 0%, rgba(0, 183, 252, 0) 60%),
    radial-gradient(ellipse 45% 70% at 105% 105%, rgba(178, 36, 66, .5) 0%, rgba(178, 36, 66, 0) 60%),
    radial-gradient(ellipse 40% 60% at 45% 50%, rgba(71, 74, 127, .55) 0%, rgba(71, 74, 127, 0) 70%),
    linear-gradient(125deg, #1f2146 0%, #2e3060 45%, #3a3d72 100%);
}
.page-hero.no-media::before { background: linear-gradient(180deg, rgba(31, 33, 70, .35) 0%, rgba(31, 33, 70, 0) 45%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); margin-bottom: .75rem; max-width: 900px; }
.page-hero-lead { font-family: var(--atm-font-body); font-size: 1rem; font-weight: 300; line-height: 1.55; letter-spacing: .01em; text-transform: uppercase; color: rgba(255,255,255,.85); max-width: 760px; margin-bottom: 0; }
@media (min-width: 992px) {
  .page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 5rem; }
  .page-hero-row h1 { flex: 1 1 55%; margin-bottom: 0; }
  .page-hero-row .page-hero-lead { flex: 0 1 40%; max-width: 520px; padding-bottom: .4rem; }
  .page-hero-row h1 { max-width: 820px; }
}
@media (min-width: 1200px) {
  .page-hero-row { gap: 8rem; }
}
.page-hero .breadcrumb { margin-bottom: 1rem; font-size: .85rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item.active { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }
.page-hero nav[aria-label="breadcrumb"] { justify-content: flex-start !important; }
.page-hero-compact { padding: calc(var(--atm-header-offset) + 72px) 0 28px; }
.page-hero:has(+ .atm-search-strip) { padding-bottom: 120px; }
@media (max-width: 991.98px) { .page-hero:has(+ .atm-search-strip) { padding-bottom: 88px; } }

/* ---------- Breadcrumb (light) ---------- */
.atm-breadcrumb .breadcrumb { margin: 0; font-size: .85rem; }
.atm-breadcrumb .breadcrumb a { color: var(--atm-muted); }
.atm-breadcrumb .breadcrumb a:hover { color: var(--atm-green-dark); }
.breadcrumb-item a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.breadcrumb-item:last-child, .breadcrumb-item:last-child a { font-weight: 700; text-decoration: none; }
.page-hero .breadcrumb-item:last-child { color: #fff; }
.atm-breadcrumb .breadcrumb-item:last-child { color: var(--atm-navy-deep); }
@media (max-width: 767.98px) {
  nav[aria-label="breadcrumb"], .atm-breadcrumb { min-width: 0; max-width: 100%; }
  .listing-bar .d-flex > div:first-child { min-width: 0; }
  .breadcrumb { flex-wrap: nowrap; }
  .breadcrumb-item { flex-shrink: 0; white-space: nowrap; }
  .breadcrumb-item:last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Typology tiles ---------- */
.type-tile {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.35rem 1.5rem;
  background: #fff; border: 1px solid var(--atm-border); border-radius: var(--atm-radius);
  color: var(--atm-text);
  transition: all .25s ease;
}
.type-tile:hover { border-color: var(--atm-green); box-shadow: var(--atm-shadow); color: var(--atm-text); }
.type-tile-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--atm-green-soft); color: var(--atm-green-dark);
}
.type-tile-icon .material-symbols-rounded { font-size: 1.75rem; }
.type-tile h2, .type-tile h3 { font-family: var(--atm-font-body); font-size: 1.08rem; font-weight: 700; margin: 0 0 .15rem; color: var(--atm-navy-deep); }
.type-tile p { margin: 0; font-size: .88rem; color: var(--atm-muted); }
.type-tile > .material-symbols-rounded { margin-left: auto; color: var(--atm-navy); transition: transform .2s ease; }
.type-tile:hover > .material-symbols-rounded { transform: translateX(4px); }
.type-tile-all { background: var(--atm-navy-dark); border-color: var(--atm-navy-dark); }
.type-tile-all h2, .type-tile-all h3, .type-tile-all p, .type-tile-all > .material-symbols-rounded { color: #fff; }
.type-tile-all .type-tile-icon { background: rgba(255,255,255,.12); color: #fff; }
.type-tile-all:hover { background: var(--atm-green-dark); border-color: var(--atm-green-dark); }

/* ---------- Search form (ReWeb) ---------- */
.reweb-search .form-floating > .form-control,
.reweb-search .form-floating > .form-select { height: 58px; min-height: 58px; }
.reweb-search .form-floating > label { color: var(--atm-muted); }
.reweb-search .btn-atm { height: 58px; }
.reweb-search .btn-icon { width: 58px; height: 58px; flex-shrink: 0; }
.form-control, .form-select { border-color: var(--atm-border); border-radius: var(--atm-radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--atm-green); box-shadow: 0 0 0 .2rem rgba(99, 162, 111, .2); }
.form-check-input:checked { background-color: var(--atm-green); border-color: var(--atm-green); }
.form-check-input:focus { border-color: var(--atm-green); box-shadow: 0 0 0 .2rem rgba(99, 162, 111, .2); }
.reweb-tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--atm-sand); border-radius: 999px; margin-bottom: 1rem; }
.reweb-tabs button {
  border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--atm-muted);
}
.reweb-tabs button.active { background: var(--atm-navy-dark); color: #fff; }
.atm-badge-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--atm-red); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Listing con mappa ---------- */
.listing-bar {
  position: relative; z-index: 1020;
  background: #fff; border-bottom: 1px solid var(--atm-border);
  padding: 1.75rem 0;
}
@media (min-width: 1200px) { .listing-bar { position: sticky; top: var(--atm-header-h); } }
@media (max-width: 767.98px) { .listing-bar { padding: 1.25rem 0; } }
@media (min-width: 1200px) { .listing-bar > .container-xxl { padding-left: 3.5rem !important; padding-right: 3.5rem !important; } }
.listing-bar h1 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.85rem); margin: 0; }
.listing-count { font-size: .9rem; color: var(--atm-muted); margin: 0; }
.listing-count strong { color: var(--atm-green-dark); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.listing-list { padding: 2rem 0 4rem; background: var(--atm-sand); }
.listing-inner { max-width: 1320px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 992px) { .listing-inner { max-width: 1600px; padding: 0 2rem; } }
@media (min-width: 1200px) { .listing-inner { padding: 0 3.5rem; } }
.listing-map-col { display: none; }
@media (min-width: 1200px) {
  .listing-layout.has-map { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .listing-layout.has-map .listing-inner { max-width: none; padding: 0 3.5rem; }
  .listing-map-col { display: block; position: relative; }
  .listing-map-col .listing-map {
    position: sticky; top: calc(var(--atm-header-h) + 146px);
    height: calc(100vh - var(--atm-header-h) - 146px);
  }
}
.listing-map, .atm-map { width: 100%; height: 100%; min-height: 360px; background: var(--atm-green-soft); z-index: 1; }
.atm-map-box { height: 420px; border-radius: var(--atm-radius); overflow: hidden; border: 1px solid var(--atm-border); }
.atm-map-box .atm-map { min-height: 0; }
.listing-empty { padding: 4rem 1rem; text-align: center; color: var(--atm-muted); }
.listing-empty .material-symbols-rounded { font-size: 3rem; color: var(--atm-green); margin-bottom: 1rem; }
.listing-intro { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--atm-border); }

/* Marker Leaflet personalizzati */
.atm-marker { background: transparent; border: 0; }
.atm-marker span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0;
  background: var(--atm-navy-dark); color: #fff; border: 3px solid #fff;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(31, 33, 70, .35);
  transition: background-color .2s ease, transform .2s ease;
}
.atm-marker span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.atm-marker.is-active span { background: var(--atm-green); transform: rotate(-45deg) scale(1.2); }
.atm-marker-cluster span { width: 42px; height: 42px; border-radius: 50%; transform: none; background: var(--atm-green); font-weight: 800; font-size: .9rem; }
.atm-marker-cluster span::after { display: none; }
.leaflet-popup-content-wrapper { border-radius: var(--atm-radius); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--atm-font-body); }
.atm-map-popup { display: block; color: var(--atm-text); }
.atm-map-popup:hover { color: var(--atm-text); }
.atm-map-popup img { width: 100%; height: 140px; object-fit: cover; display: block; }
.atm-map-popup-body { padding: .75rem .9rem .9rem; }
.atm-map-popup-zone { font-size: .75rem; color: var(--atm-muted); display: flex; align-items: center; gap: .2rem; }
.atm-map-popup-title { font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--atm-navy-deep); margin: .2rem 0 .35rem; }
.atm-map-popup-meta { font-size: .8rem; color: var(--atm-green-dark); font-weight: 700; }

/* ---------- Pagination ---------- */
.pagination-wrapper { margin-top: 2.5rem; gap: .5rem; }
.pagination-wrapper .pagination, .pagination-wrapper .wg-pagination {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none;
}
.pagination-wrapper .page-item a, .pagination-wrapper .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .75rem;
  border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm) !important;
  color: var(--atm-navy-deep); background: #fff; font-weight: 600;
}
.pagination-wrapper .page-item.active a, .pagination-wrapper .page-item.active .page-link { background: var(--atm-navy-dark); border-color: var(--atm-navy-dark); color: #fff; }
.pagination-wrapper .page-item a:hover { border-color: var(--atm-green); color: var(--atm-green-dark); }
.pagination-wrapper .page-item.disabled a { opacity: .4; pointer-events: none; }
.pagination-wrapper small { color: var(--atm-muted); }

/* ---------- Dettaglio immobile ---------- */
.unit-topbar { padding: 1.25rem 0; border-bottom: 1px solid var(--atm-border); }
.prev-next { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; font-size: .9rem; font-weight: 600; }
.prev-next a, .prev-next .disabled { display: inline-flex; align-items: center; gap: .15rem; color: var(--atm-navy-deep); }
.prev-next a:hover { color: var(--atm-green-dark); }
.prev-next .disabled { color: var(--atm-muted); cursor: default; }
@media (max-width: 767.98px) {
  .unit-topbar .breadcrumb-item:last-child { display: none; }
  .unit-topbar .breadcrumb-item:nth-last-child(2) { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .unit-topbar .container > .d-flex { flex-wrap: nowrap !important; }
  .unit-topbar .prev-next { margin-left: auto; flex-shrink: 0; }
}
.unit-gallery { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.unit-gallery-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--atm-radius-sm); background: var(--atm-green-soft);
  aspect-ratio: 4 / 3;
}
.unit-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.unit-gallery-item:hover img { transform: scale(1.04); }
.unit-gallery-more {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .9rem; border-radius: var(--atm-radius-sm);
  background: #fff; color: var(--atm-navy-deep); font-weight: 700; font-size: .85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
@media (min-width: 768px) {
  .unit-gallery.count-2 { grid-template-columns: 1fr 1fr; }
  .unit-gallery.count-3, .unit-gallery.count-4, .unit-gallery.count-5 {
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 480px;
  }
  .unit-gallery.count-3 .unit-gallery-item, .unit-gallery.count-4 .unit-gallery-item, .unit-gallery.count-5 .unit-gallery-item { aspect-ratio: auto; }
  .unit-gallery.count-3 .unit-gallery-item:first-child,
  .unit-gallery.count-4 .unit-gallery-item:first-child,
  .unit-gallery.count-5 .unit-gallery-item:first-child { grid-row: 1 / span 2; }
  .unit-gallery.count-3 .unit-gallery-item:nth-child(2) { grid-column: 2 / span 2; }
  .unit-gallery.count-3 .unit-gallery-item:nth-child(3) { grid-column: 2 / span 2; }
  .unit-gallery.count-4 .unit-gallery-item:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 767.98px) { .unit-gallery-item:not(:first-child) { display: none; } }

.unit-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.unit-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin-top: 1rem; margin-bottom: .5rem; }
.unit-location { display: flex; align-items: center; gap: .3rem; color: var(--atm-muted); }
.unit-location .material-symbols-rounded { color: var(--atm-green); }
.unit-price-box {
  flex-shrink: 0; margin-top: 1rem; margin-left: auto; padding: 1rem 1.5rem; text-align: right;
  background: var(--atm-green-dark); color: #fff; border-radius: var(--atm-radius); box-shadow: var(--atm-shadow-hover);
}
.unit-price-box .unit-price { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; white-space: nowrap; }
.unit-price-box small { display: block; margin-bottom: .2rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
@media (max-width: 575.98px) { .unit-price-box { margin-top: 0; } }
.unit-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.unit-fact {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm); background: #fff;
}
.unit-fact .material-symbols-rounded { font-size: 1.6rem; color: var(--atm-green-dark); }
.unit-fact small { display: block; font-size: .75rem; color: var(--atm-muted); line-height: 1.2; }
.unit-fact strong { display: block; color: var(--atm-navy-deep); line-height: 1.3; }
.unit-block { padding: 2rem 0; border-top: 1px solid var(--atm-border); }
.unit-block-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.unit-pricelist + .unit-pricelist { margin-top: 1.5rem; }
.unit-pricelist-name { font-size: 1.1rem; color: var(--atm-green-dark); margin-bottom: .75rem; }
.unit-pricelist-table { margin-bottom: 0; border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.unit-pricelist-table th { background: var(--atm-sand); color: var(--atm-navy-deep); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.unit-pricelist-table th, .unit-pricelist-table td { padding: .75rem 1rem; }
.unit-pricelist-table tbody tr:last-child td { border-bottom: 0; }
.unit-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.unit-features li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.unit-features .material-symbols-rounded { color: var(--atm-green); font-size: 1.1rem; }
.unit-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--atm-radius); overflow: hidden; background: #000; }
.unit-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.unit-energy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.energy-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 40px; padding: 0 .75rem; border-radius: 6px;
  background: var(--atm-muted); color: #fff; font-weight: 800;
}
.energy-badge.c_a4, .energy-badge.c_a3, .energy-badge.c_a2, .energy-badge.c_a1, .energy-badge.c_a { background: #1a9b48; }
.energy-badge.c_b { background: #5db643; }
.energy-badge.c_c { background: #b8d334; color: #222; }
.energy-badge.c_d { background: #f2e31b; color: #222; }
.energy-badge.c_e { background: #f6b218; color: #222; }
.energy-badge.c_f { background: #ec6b20; }
.energy-badge.c_g { background: #e2231a; }

.unit-sidebar { position: sticky; top: calc(var(--atm-header-h) + 24px); display: grid; gap: 1.25rem; }
.sidebar-card { background: #fff; border: 1px solid var(--atm-border); border-radius: var(--atm-radius); padding: 1.75rem; box-shadow: var(--atm-shadow); }
.sidebar-card-title { font-size: 1.45rem; margin-bottom: .35rem; }
.sidebar-card-title.fs-5 { margin-bottom: 1rem; }
#booking-section { border: 2px solid var(--atm-navy); }
.sidebar-card-lead { color: var(--atm-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.sidebar-card-green { background: var(--atm-green-soft); border-color: transparent; box-shadow: none; }
/* Box "Richiedi informazioni" della scheda immobile: scuro per farlo risaltare */
.sidebar-card.unit-info-form {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--atm-navy-deep) 0%, var(--atm-navy-dark) 60%, var(--atm-navy) 100%);
  border-color: transparent; color: rgba(255,255,255,.85);
  box-shadow: 0 24px 50px rgba(31, 33, 70, .25);
}
.sidebar-card.unit-info-form::before {
  content: ''; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 162, 111, .35) 0%, rgba(99, 162, 111, 0) 70%);
  pointer-events: none;
}
.sidebar-card.unit-info-form > * { position: relative; }
.unit-info-form .sidebar-card-title { color: #fff; }
.unit-info-form .sidebar-card-lead { color: rgba(255,255,255,.75); }
.unit-info-form .form-control, .unit-info-form .form-select { background-color: #fff; border-color: transparent; }
.unit-info-form .form-check-label { color: rgba(255,255,255,.85); }
.unit-info-form .form-check-label a { color: #b9e0c1; }
.unit-info-form .form-check-input { border-color: rgba(255,255,255,.5); }
.unit-info-form .invalid-feedback { color: #ffb3c1; }
.sidebar-contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sidebar-contacts a { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--atm-navy-deep); }
.sidebar-contacts .material-symbols-rounded { color: var(--atm-green-dark); }

/* Calcolatore ReWeb */
.reweb-status { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-radius: var(--atm-radius-sm); font-weight: 600; }
.reweb-status-ok { background: #e7f5ea; color: #2c7a3e; }
.reweb-status-busy { background: #fff4e0; color: #9a6200; }
.reweb-status-ko { background: #fde8ec; color: var(--atm-red); }
.reweb-result-box { padding: 1rem; border-radius: var(--atm-radius-sm); background: var(--atm-sand); }
.reweb-result-box .image-wrap img { border-radius: var(--atm-radius-sm); aspect-ratio: 4 / 3; }
.reweb-alt { display: block; padding: 1rem; border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm); color: var(--atm-text); transition: border-color .2s ease, box-shadow .2s ease; }
.reweb-alt:hover { border-color: var(--atm-green); box-shadow: var(--atm-shadow); color: var(--atm-text); }
.reweb-alt img { border-radius: var(--atm-radius-sm); aspect-ratio: 4 / 3; }
.daterangepicker {
  background-color: #fff; backdrop-filter: none;
  border: 2px solid var(--atm-navy); border-radius: var(--atm-radius);
  box-shadow: 0 24px 60px rgba(31, 33, 70, .28), 0 4px 12px rgba(31, 33, 70, .12) !important;
}
.daterangepicker td.active, .daterangepicker td.active:hover { background-color: var(--atm-green-dark); }
.daterangepicker td.in-range { background-color: var(--atm-green-soft); }
.daterangepicker .drp-buttons .btn-primary, .daterangepicker .applyBtn { background-color: var(--atm-green-dark); border-color: var(--atm-green-dark); }
.daterangepicker .drp-buttons .applyBtn { padding: .6rem 1.75rem; font-size: 1rem; font-weight: 700; border-radius: var(--atm-radius-sm); color: #fff; }
.daterangepicker .drp-buttons .applyBtn:hover { background-color: var(--atm-green-dark); border-color: var(--atm-green-dark); }
.daterangepicker td.current-month-disabled { color: #c5c8d2; }

/* ---------- Modal ---------- */
.modal-content { border: 0; border-radius: var(--atm-radius); }
.modal-title { font-family: var(--atm-font-heading); color: var(--atm-navy-deep); }
.btn-close-atm { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--atm-sand); color: var(--atm-navy-deep); }
.btn-close-atm:hover { background: var(--atm-green-soft); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem 1rem; }
.filter-list .form-check-label { font-size: .875rem; }

/* ---------- Form ---------- */
.atm-form .form-floating > label { color: var(--atm-muted); }
.atm-form .form-control, .atm-form .form-select { background: #fff; }
.atm-form textarea.form-control { min-height: 140px; }
.atm-form .form-check-label a { text-decoration: underline; cursor: pointer; }
.form-card { background: #fff; border-radius: var(--atm-radius); box-shadow: var(--atm-shadow); padding: 2.25rem; }
@media (max-width: 575.98px) { .form-card { padding: 1.5rem; } }

/* ---------- Proprietari ---------- */
.owners-text p:has(> strong:first-child) {
  background: #fff; border-left: 4px solid var(--atm-green); border-radius: var(--atm-radius-sm);
  padding: 1.25rem 1.5rem; box-shadow: var(--atm-shadow);
}
.owners-text p > strong:first-child { display: inline-block; color: var(--atm-navy-deep); font-size: 1.15rem; margin-bottom: .35rem; }
.owners-text ul { background: var(--atm-green-soft); border-radius: var(--atm-radius-sm); padding: 1.25rem 1.5rem; }
.form-card-highlight { position: relative; overflow: hidden; border: 1px solid var(--atm-border); box-shadow: var(--atm-shadow-hover); }
.form-card-highlight::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--atm-green), var(--atm-navy)); }
.form-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.form-card-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--atm-green-soft); color: var(--atm-green-dark); }
.form-card-icon .material-symbols-rounded { font-size: 1.75rem; }
@media (min-width: 992px) { .owners-form-col { position: sticky; top: calc(var(--atm-header-h) + 1.5rem); } }
.owners-steps { margin-top: 3.5rem; }
.owners-step {
  position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%;
  padding: 1.75rem 1.5rem; background: #fff; border-radius: var(--atm-radius); box-shadow: var(--atm-shadow);
  border-bottom: 3px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.owners-step:hover { transform: translateY(-4px); box-shadow: var(--atm-shadow-hover); border-bottom-color: var(--atm-green); }
.owners-step-num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--atm-border); }
.owners-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: .5rem; border-radius: 50%; background: var(--atm-green-soft); color: var(--atm-green-dark); }
.owners-step-icon .material-symbols-rounded { font-size: 2rem; }
.owners-step-title { color: var(--atm-navy-deep); font-size: 1.1rem; line-height: 1.3; }
.owners-step-text { color: var(--atm-muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Contacts ---------- */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--atm-border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--atm-green-soft); color: var(--atm-green-dark); }
.contact-item small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atm-muted); }
.contact-item a, .contact-item strong { font-weight: 600; color: var(--atm-navy-deep); font-size: 1.05rem; }

/* ---------- Article ---------- */
.article-cover { border-radius: var(--atm-radius); overflow: hidden; margin-bottom: 2rem; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-cover-full img { max-height: none; height: auto; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.article-gallery a { display: block; aspect-ratio: 1; border-radius: var(--atm-radius-sm); overflow: hidden; }
.article-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-gallery a:hover img { transform: scale(1.06); }
/* Bottone di invio dei form sempre allineato a destra (l'alert di errore resta a tutta riga) */
.atm-form > .col-12:last-child,
.atm-form > .col-12:has([js-bind="form-processor"]) { text-align: right; }
.atm-form .alert { text-align: left; }

/* Alert di errore dei form (print-messages.php) */
.atm-form .alert-danger {
  display: flex; align-items: center; gap: .75rem !important;
  margin-top: 1.25rem !important; padding: .9rem 1.1rem;
  background: #fdf0f3; color: #7d1830;
  border: 1px solid rgba(178, 36, 66, .2); border-left: 4px solid var(--atm-red);
  border-radius: var(--atm-radius-sm);
  font-size: .92rem; font-weight: 600; line-height: 1.4; text-align: left;
  box-shadow: 0 6px 18px rgba(178, 36, 66, .08);
  animation: atmAlertIn .3s ease both;
}
.atm-form .alert-danger .material-symbols-rounded {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--atm-red); color: #fff; font-size: 1.15rem !important;
}
.atm-form .alert-danger.alert-dismissible { position: relative; padding-right: 3.5rem; }
.atm-form .alert-danger:not(:has(.material-symbols-rounded))::before {
  content: 'error';
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--atm-red); color: #fff;
  font-family: 'Material Symbols Rounded'; font-size: 1.15rem; font-weight: 400; line-height: 1;
}
.atm-form .alert-danger .btn-close {
  position: absolute; top: 50%; right: .75rem; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0; box-sizing: border-box;
  border-radius: 50%; opacity: 1;
  background: rgba(178, 36, 66, .1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M3 3l10 10M13 3L3 13' stroke='%23b22442' stroke-width='2.2' stroke-linecap='round'/%3e%3c/svg%3e") center / 11px no-repeat;
  transition: background-color .2s ease;
}
.atm-form .alert-danger .btn-close:hover,
.atm-form .alert-danger .btn-close:focus-visible {
  background-color: var(--atm-red);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M3 3l10 10M13 3L3 13' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3e%3c/svg%3e");
  box-shadow: 0 0 0 .2rem rgba(178, 36, 66, .2);
}
@keyframes atmAlertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* News: CTA finale con form richiesta informazioni a tendina */
.article-info-cta { margin-top: 3rem; border-radius: 18px; background: var(--atm-sand); border: 1px solid var(--atm-border); overflow: hidden; }
.article-info-cta-head { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; }
.article-info-cta-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px; background: var(--atm-green-dark); color: #fff; font-size: 1.8rem;
}
.article-info-cta-title { font-size: 1.3rem; margin-bottom: .2rem; }
.article-info-cta-head p { color: var(--atm-muted); }
.article-info-cta-toggle { flex-shrink: 0; }
.article-info-cta-toggle .material-symbols-rounded { transition: transform .25s ease; }
.article-info-cta-toggle[aria-expanded="true"] .material-symbols-rounded { transform: rotate(180deg); }
.article-info-form { padding: 1.75rem; border-top: 1px solid var(--atm-border); background: #fff; }
@media (max-width: 767.98px) {
  .article-info-cta-head { flex-wrap: wrap; padding: 1.25rem; }
  .article-info-cta-toggle { width: 100%; }
  .article-info-form { padding: 1.25rem; }
}
/* News: testo più stretto della foto di testata */
.article-body { max-width: 820px; margin: 0 auto; }
.article-documents { display: grid; gap: .6rem; }
.article-documents .unit-block-title { margin-bottom: .4rem; }
.article-documents a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border: 1px solid var(--atm-border); border-radius: var(--atm-radius-sm);
  background: #fff; color: var(--atm-navy-deep); font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.article-documents a:hover { border-color: var(--atm-green); box-shadow: var(--atm-shadow); color: var(--atm-navy-deep); }
.article-document-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--atm-green-soft); color: var(--atm-green-dark); }
.article-document-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.article-documents a > .material-symbols-rounded:last-child { color: var(--atm-green-dark); }
.article-videos { display: grid; gap: 1.5rem; }

/* ---------- Footer ---------- */
.atm-footer { background: var(--atm-navy-deep); color: rgba(255,255,255,.75); font-size: .93rem; }
.atm-footer a:not(.btn-atm) { color: rgba(255,255,255,.75); }
.atm-footer a:not(.btn-atm):hover { color: #fff; }
.atm-footer-main { padding: 72px 0 48px; }
.atm-footer .atm-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); }
.atm-footer-title { font-family: var(--atm-font-body); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.atm-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.atm-footer-links a { text-transform: none; }
/* Contatti: telefono ed email in evidenza */
.atm-footer-contacts { display: grid; gap: .6rem; margin-bottom: 1rem; }
.atm-footer a.atm-footer-contact {
  display: block; padding: .75rem 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--atm-radius-sm);
  color: #fff; transition: background-color .2s ease, border-color .2s ease;
}
.atm-footer a.atm-footer-contact:hover { background: rgba(255,255,255,.1); border-color: #8fd19c; color: #fff; }
.atm-footer-contact-label {
  display: flex; align-items: center; gap: .35rem; margin-bottom: .2rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fd19c;
}
.atm-footer-contact-label .material-symbols-rounded { font-size: 1rem; }
.atm-footer-contact-value { display: block; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.atm-footer-contact-phone { font-size: 1.3rem; letter-spacing: .02em; }
.atm-footer-address { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 1.25rem; font-size: .88rem; }
.atm-footer-address .material-symbols-rounded { color: #8fd19c; font-size: 1.1rem; margin-top: 1px; }
.atm-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.atm-footer-actions .atm-social { margin-left: auto; }
.atm-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .82rem; color: rgba(255,255,255,.6); }

/* GDPR bar (come pmpiovan.it) */
.atm-gdpr-bar { background: #000; padding: 1rem 0; }
.atm-gdpr-bar #cookies-manager-list-of-choices-made { color: #cfd2cb; font-size: .82rem; }
.atm-gdpr-bar #cookies-manager-list-of-choices-made a { color: #cfd2cb; }
.atm-gdpr-bar #cookies-manager-list-of-choices-made a:hover { color: #fff; }
@media (max-width: 991.98px) {
  #cookies-manager-list-of-choices-made div { display: inline-block !important; }
}

/* ---------- Back to top ---------- */
.atm-back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--atm-green-dark); color: #fff; box-shadow: 0 8px 20px rgba(31,33,70,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease;
}
.atm-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.atm-back-to-top:hover { background: var(--atm-navy-dark); }
/* Con il pulsante WhatsApp il back to top sale sopra di esso */
.atm-whatsapp-float ~ .atm-back-to-top { bottom: 92px; right: 25px; }

/* ---------- Pulsante WhatsApp flottante ---------- */
.atm-whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1041;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(31,33,70,.25);
  animation: atm-wa-bounce 4s ease-in-out infinite;
  transition: background-color .2s ease, transform .2s ease;
}
.atm-whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1;
  animation: atm-wa-pulse 2s ease-out infinite;
}
.atm-whatsapp-float:hover, .atm-whatsapp-float:focus-visible { background: #128c7e; color: #fff; transform: scale(1.08); animation: none; }
@keyframes atm-wa-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes atm-wa-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  85% { transform: translateY(-8px); }
  90% { transform: translateY(0); }
  95% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .atm-whatsapp-float, .atm-whatsapp-float::before { animation: none; }
}

/* ---------- Thank you / 404 ---------- */
.atm-message-page { padding: 96px 0; text-align: center; }
.atm-message-icon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--atm-green-soft); color: var(--atm-green-dark); margin-bottom: 1.5rem; }
.atm-message-icon .material-symbols-rounded { font-size: 3rem; }
.atm-message-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.atm-404-code { font-family: var(--atm-font-heading); font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; color: var(--atm-green); }

/* ---------- Sitemap ---------- */
.sitemap, .sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap > li > a { display: inline-block; margin-top: 2rem; padding-bottom: .5rem; }
.sitemap ul { padding-left: 1rem; }
.sitemap a { display: inline-block; padding: .2rem 0; }
.sitemap h2 { font-size: 1.5rem; margin: 0; }
.sitemap h3 { font-family: var(--atm-font-body); font-weight: 600; font-size: 1rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .atm-hero .anim-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .swiper-slide-active .atm-hero-media img, .atm-form .alert-danger { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.text-capitalize-first::first-letter { text-transform: uppercase; }
@media (min-width: 992px) { .atm-two-cols { column-count: 2; column-gap: 3rem; } .atm-two-cols > * { break-inside: avoid; } }
/* ---------- Pagina Contatti: mappa in alto, form sovrapposto, recapiti ---------- */
.contact-top { background: var(--atm-sand); }
.contact-top-map { height: calc(40vh + 250px); }
.contact-top-map .atm-map { height: 100%; min-height: 0; }
.contact-top-box { position: relative; z-index: 2; margin-top: -180px; }
.contact-top.no-map .contact-top-box { margin-top: 0; padding-top: 3rem; }
.contact-form-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31, 33, 70, .14);
  padding: 2.5rem 3rem 3rem;
}
.contact-form-head { text-align: center; margin-bottom: 2rem; }
.contact-form-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: .6rem; }
.contact-form-lead { margin: 0; font-family: var(--atm-font-body); font-size: 1.05rem; font-weight: 400; line-height: 1.5; letter-spacing: normal; color: var(--atm-muted); }
.contact-form-card .atm-form .btn-atm[type="submit"], .contact-form-card .atm-form button.btn-atm { min-width: 220px; }
@media (max-width: 767.98px) {
  .contact-top-map { height: 320px; }
  .contact-top-box { margin-top: -80px; }
  .contact-form-card { padding: 1.75rem 1.25rem; }
}

.contact-info { background: var(--atm-sand); padding: 4.5rem 0 5rem; }
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li { display: flex; align-items: center; gap: 2.25rem; }
.contact-info-icon { position: relative; flex-shrink: 0; font-size: 3rem; color: var(--atm-green); }
.contact-info-icon::after { content: ''; position: absolute; right: -1.15rem; top: 0; bottom: 0; width: 1px; background: rgba(31, 33, 70, .15); }
.contact-info-sub { font-size: .85rem; font-weight: 600; color: var(--atm-muted); margin-bottom: .15rem; }
.contact-info-list a, .contact-info-list span:not(.contact-info-icon) { font-size: 1.05rem; font-weight: 600; color: var(--atm-navy-deep); }
.contact-info-list a:hover { color: var(--atm-green-dark); }
.contact-info-list a.contact-info-phone { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.contact-info-sub-mobile { margin-top: .6rem; }
.contact-text h2 { font-family: var(--atm-font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--atm-green-dark); margin: 1.75rem 0 .35rem; }
.contact-text p { font-size: 1.05rem; }
.contact-text a { font-weight: 700; color: var(--atm-navy-deep); text-decoration: none; }
@media (min-width: 992px) { .atm-sitemap .sitemap > li > ul { columns: 3; column-gap: 2rem; } .atm-sitemap .sitemap > li > ul > li { break-inside: avoid; } }
