/* ═══════════════════════════════════════════════════════════
   GARDAIMMOBILI — policy.css
   CSS completo per template: privacy.html
   ═══════════════════════════════════════════════════════════ */



/* ══════════════════════════════════════
   DESIGN SYSTEM — VARIABILI
══════════════════════════════════════ */
:root {
  --navy:    #0f1f38;
  --gold:    #b8965a;
  --gold-lt: #d4b07a;
  --cream:   #f7f4ef;
  --warm:    #ede8e0;
  --text:    #1a1a1a;
  --muted:   #6b6560;
  --white:   #ffffff;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', sans-serif;
  --trans:   .35s cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 8px 25px rgba(15,31,56,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--cream); overflow-x: hidden; }

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.7);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 3rem;
}
.topbar a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--trans); }
.topbar a:hover { color: var(--gold-lt); }
.topbar-left { display: flex; gap: 2rem; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7); padding: .2rem .6rem;
  font-size: .68rem; letter-spacing: .1em; cursor: pointer;
  transition: all var(--trans); font-family: var(--sans);
}
.lang-btn:hover, .lang-btn.active { border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,150,90,.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 72px;
  transition: box-shadow var(--trans);
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.logo {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  color: var(--navy); text-decoration: none; letter-spacing: .04em;
  display: flex; align-items: baseline; gap: .2rem;
}
.logo span { color: var(--gold); }
.logo-sub { font-family: var(--sans); font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
  position: relative; padding-bottom: 4px; transition: color var(--trans);
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--gold); transition: width var(--trans); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold); color: var(--white) !important; padding: .5rem 1.4rem;
  font-size: .72rem !important; letter-spacing: .14em;
  transition: background var(--trans) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy) !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: var(--trans); }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb { background: var(--white); padding: .9rem 3rem; border-bottom: 1px solid rgba(184,150,90,.15); font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--trans); }
.breadcrumb a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   HERO MINI
══════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #112240 100%);
  padding: 4rem 3rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiBmaWxsPSJub25lIi8+PHBvbHlsaW5lIHBvaW50cz0iNDAsMTAgNTAsMzAgNzAsMjAiIHN0cm9rZT0icmdiYSgxODQsMTUwLDkwLDAuMDQpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=');
  background-repeat: repeat; opacity: 0.3; pointer-events: none;
}
.hero-content { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem;
}
.hero-tag::before { content: ''; width: 35px; height: 1.5px; background: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: var(--white); line-height: 1.2; }
.page-hero p { color: rgba(255,255,255,.65); font-size: .9rem; margin-top: 1rem; max-width: 600px; }

/* ══════════════════════════════════════
   CONTENUTO PRIVACY
══════════════════════════════════════ */
.privacy-container {
  max-width: 1280px; margin: 0 auto; padding: 4rem 3rem;
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem;
  align-items: start;
}

/* INDICE LATERALE */
.privacy-index {
  position: sticky; top: 100px;
  background: var(--white);
  padding: 1.8rem;
  border: 1px solid rgba(184,150,90,.15);
}
.privacy-index h4 {
  font-family: var(--serif); font-size: 1.2rem; color: var(--navy);
  margin-bottom: 1.2rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--warm);
}
.privacy-index ul { list-style: none; }
.privacy-index li { margin-bottom: .7rem; }
.privacy-index a {
  color: var(--muted); text-decoration: none; font-size: .8rem;
  transition: color var(--trans); display: block;
}
.privacy-index a:hover, .privacy-index a.active {
  color: var(--gold);
}
.privacy-index .last-update {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--warm);
  font-size: .65rem; color: var(--muted);
}

/* CONTENUTO PRINCIPALE */
.privacy-content {
  background: var(--white);
  padding: 2.5rem; border: 1px solid rgba(184,150,90,.15);
}
.privacy-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}
.privacy-section:last-child { margin-bottom: 0; }
.privacy-section h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  color: var(--navy); margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--warm);
}
.privacy-section h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400;
  color: var(--gold); margin: 1.2rem 0 .6rem 0;
}
.privacy-section p {
  font-size: .88rem; line-height: 1.7; color: var(--text);
  margin-bottom: 1rem;
}
.privacy-section ul, .privacy-section ol {
  margin: 1rem 0 1rem 1.5rem;
  font-size: .88rem; line-height: 1.7; color: var(--text);
}
.privacy-section li { margin-bottom: .4rem; }
.privacy-section a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--trans); }
.privacy-section a:hover { border-bottom-color: var(--gold); }
.privacy-highlight {
  background: linear-gradient(135deg, rgba(184,150,90,.06), rgba(184,150,90,.02));
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}
.privacy-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
}
.privacy-table th, .privacy-table td {
  border: 1px solid var(--warm); padding: .8rem 1rem;
  font-size: .82rem; text-align: left; vertical-align: top;
}
.privacy-table th {
  background: var(--cream); font-weight: 500; color: var(--navy);
}
.privacy-table td:first-child { width: 30%; font-weight: 500; color: var(--navy); }

/* FOOTER */
footer { background: #0a1628; padding: 3.5rem 3rem 2rem; color: rgba(255,255,255,.5); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; display: inline-block; text-decoration: none; }
.footer-about { font-size: .82rem; line-height: 1.8; }
.footer-col h4 { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .82rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .72rem; }

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  background: #1A6B1A; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: all var(--trans);
}
.whatsapp-float:hover { transform: scale(1.1); background: #155f39; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10,22,40,.98); backdrop-filter: blur(12px);
  padding: 1.2rem 3rem; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
  transform: translateY(100%); transition: transform .5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: .8rem; color: rgba(255,255,255,.7); }
.cookie-btns { display: flex; gap: 1rem; }
.cookie-refuse, .cookie-accept {
  padding: .6rem 1.4rem; font-family: var(--sans); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: all var(--trans);
}
.cookie-refuse { background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.cookie-refuse:hover { border-color: var(--gold); color: var(--gold); }
.cookie-accept { background: var(--gold); border: none; color: var(--white); }
.cookie-accept:hover { background: var(--gold-lt); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .privacy-container { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .privacy-index { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 2rem; gap: 1.2rem; box-shadow: var(--shadow-sm); }
  .nav-links.show { display: flex; }
  .menu-toggle { display: flex; }
  .page-hero { padding: 3rem 1.5rem; }
  .privacy-content { padding: 1.8rem; }
  .privacy-section h2 { font-size: 1.4rem; }
  .privacy-table th, .privacy-table td { display: block; width: 100%; }
  .privacy-table td:first-child { width: 100%; background: var(--cream); }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; padding: 1.2rem; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 1.5rem; right: 1.5rem; }
}

/* ── SELETTORE LINGUA MOBILE (navbar) ── */
.nav-lang-select {
  display: none;
  background: none;
  border: 1px solid rgba(184,150,90,.5);
  color: var(--navy);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .3rem .5rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--trans);
}
.nav-lang-select:focus { border-color: var(--gold); }
@media (max-width: 768px) {
  .nav-lang-select { display: block; }
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .logo-img { height: 28px; }
  .footer-logo-img { height: 22px; }
}

.footer-col li { font-size: .82rem; }
.footer-col li span { font-size: inherit; color: rgba(255,255,255,.5); }

.footer-social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s; }
.footer-social-link:hover { background: var(--gold); border-color: var(--gold); }
.footer-social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,.9); }
.footer-social-link:hover svg { fill: var(--white); }