@charset "utf-8";
/* =====================================================================
   AICON REAL ESTATE — foglio di stile condiviso
   Palette ufficiale del brandbook (variante "Lake Line"), in proporzione
   60 / 30 / 10: Ottanio scuro, Verde lago, Grigio chiaro.
   Nessuna risorsa esterna: font, immagini e video ospitati in locale.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKEN
   Tipografia: --font-body / --font-headings da Customizer (inc/custom-fonts.php).
   --------------------------------------------------------------------- */
:root {
  /* --- Palette di marca (60 / 30 / 10, dal brandbook AICON) ------------
     60% Ottanio scuro — fondo dominante.
     30% Verde lago — fasce secondarie, alternanza.
     10% Grigio chiaro — accento: bottoni, tag, piccoli elementi.
     I nomi delle variabili (--black/--green/--gold) sono storici e non
     descrivono più il colore letterale: sono rimasti per non dover
     toccare markup e componenti, solo i VALORI sono cambiati. */
  --black:      #16383D;   /* 60% — Ottanio scuro, fondo primario */
  --true-black: #0A0C0C;   /* nero neutro, fuori palette: solo per fasce foto senza testo */
  --black-2:    #0E2A2E;   /* variante più scura, per alternare senza bordo netto */
  --green:      #185A58;   /* 30% — Verde lago, fasce secondarie */
  --green-2:    #1F6F6C;   /* tinta chiara del verde lago — hover, link */
  --green-deep: #0A2220;   /* tinta scura — scrim, gradienti sull'hero */
  --gold:       #D7DDDB;   /* 10% — Grigio chiaro, accento: bottoni, tag */
  --gold-soft:  #E7EBEA;   /* variante più chiara del grigio — testo enfasi su fondo scuro */
  --gold-deep:  #16383D;   /* variante scura — testo sulla fascia grigio chiaro */

  --cream:      #D8DDDB;   /* testo bianco/chiaro principale su fondo scuro */
  --cream-dim:  rgba(216, 221, 219, .62);   /* testo secondario chiaro */
  --rule:       rgba(237, 239, 238, .14);   /* separatori su sfondo scuro */
  --rule-soft:  rgba(237, 239, 238, .09);
  --rule-gold:  rgba(215, 221, 219, .4);

  /* --- Tipografia (override da Customizer via --font-*) ---------------- */
  --display: var(--font-headings);
  --sans: var(--font-body);

  /* --- Griglia --------------------------------------------------------- */
  --shell: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(18px, 2.4vw, 34px);

  /* --- Movimento --------------------------------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 200ms;
  --t: 400ms;
  --t-slow: 700ms;

  --head-h: 80px;
}

/* ---------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

html { background: var(--black); }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip:focus-visible { transform: none; }

/* ---------------------------------------------------------------------
   3. TIPOGRAFIA DI BASE
   --------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(10px, .78vw, 11.5px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.kicker::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.section--gold .kicker::before { background: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.012em;
}
em { font-style: normal; color: var(--gold-soft); }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .04em;
  line-height: 1;
}
.wordmark__sub {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .44rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-top: 3px;
  color: var(--gold-soft);
  opacity: .9;
}
.mark { flex: none; display: block; }
.mark img { display: block; height: 100%; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.btn--primary:hover, .btn--primary:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost {
  background: transparent;
  color: inherit;
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--on-dark { border-color: rgba(243, 238, 230, .5); color: var(--cream); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn i {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
}
.btn i::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------
   4. HEADER
   --------------------------------------------------------------------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  color: var(--cream);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-head.is-solid {
  background: rgba(22, 56, 61, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule-gold);
}
.site-head.is-static { position: absolute; }
.site-head.is-plain {
  position: relative;
  background: var(--black);
  border-bottom-color: var(--rule-gold);
}

.site-head__bar {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px;
}
.brand .mark { height: 30px; transition: transform var(--t-slow) var(--ease); }
.brand:hover .mark { transform: translateY(-2px); }
.brand__logo { display: block; height: 28px; width: auto; transition: transform var(--t-slow) var(--ease); }
.brand:hover .brand__logo { transform: translateY(-2px); }
.brand--foot .brand__logo { height: 36px; }

.nav__list {
  display: flex;
  gap: clamp(14px, 1.8vw, 30px);
  align-items: center;
}
.nav__list a {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0;
  display: inline-block;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t) var(--ease);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--gold-soft); }

/* --- Voce "Immobili": pillola in evidenza, distinta dalle altre -------- */
.nav__list a[href="immobili.html"] {
  padding: 7px 16px;
  border: 1px solid var(--rule-gold);
  border-radius: 999px;
  color: var(--gold-soft);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.nav__list a[href="immobili.html"]::after { display: none; }
.nav__list a[href="immobili.html"]:hover,
.nav__list a[href="immobili.html"]:focus-visible,
.nav__list a[href="immobili.html"][aria-current="page"] {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.head__cta { display: flex; align-items: center; gap: 22px; }
.head__cta .btn { padding: 12px 20px; }

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 2px;
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.burger__lines { display: block; width: 22px; }
.burger__lines i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--t) var(--ease);
}
.burger__lines i + i { margin-top: 6px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { transform: translateY(3.5px) rotate(13deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child  { transform: translateY(-3.5px) rotate(-13deg); }

/* --- Overlay menu ------------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--green-deep);
  color: var(--cream);
  display: grid;
  align-content: center;
  padding: calc(var(--head-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu__kicker {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  line-height: 1.1;
  transition: color var(--t) var(--ease), padding-left var(--t) var(--ease);
}
.menu__list a:hover, .menu__list a:focus-visible { padding-left: 10px; color: var(--gold-soft); }
.menu__num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cream-dim);
}
.menu__foot {
  margin-top: 32px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--cream-dim);
}
.menu__close {
  position: absolute;
  top: 18px; right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 12px 2px;
}
.menu__close span { font-size: 1.3rem; line-height: 0; }

/* ---------------------------------------------------------------------
   5. RIVELAZIONI IN SCROLL
   --------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   6. FOOTER
   --------------------------------------------------------------------- */
.site-foot {
  position: relative;
  background: var(--black);
  color: var(--cream);
  padding: clamp(70px, 10vh, 130px) 0 34px;
  overflow: hidden;
  border-top: 1px solid var(--rule-gold);
}
.site-foot__ghost {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: clamp(-60px, -6vw, -20px);
  height: clamp(160px, 22vw, 320px);
  opacity: .05;
  pointer-events: none;
  filter: grayscale(1) brightness(3);
}
.foot__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: clamp(40px, 6vh, 70px);
}
.foot__brand { grid-column: 1 / span 4; }
.brand--foot { display: inline-flex; align-items: center; gap: 12px; }
.brand--foot .mark { height: 34px; }
.brand--foot .wordmark { font-size: 1.3rem; }
.foot__tag {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--cream-dim);
}

.foot__cols {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
.foot__h {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-gold);
}
.foot__col ul { margin-top: 14px; display: grid; gap: 8px; }
.foot__col li { font-size: 14px; color: var(--cream-dim); }
.foot__col a { transition: color var(--t-fast) var(--ease); }
.foot__col a:hover, .foot__col a:focus-visible { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 4px; }

.foot__fine {
  position: relative;
  margin-top: clamp(54px, 8vh, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__legal a:hover, .foot__legal a:focus-visible { color: var(--gold-soft); }

/* ---------------------------------------------------------------------
   7. PAGINE INTERNE — intestazione di sezione condivisa
   --------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--head-h) + clamp(56px, 11vh, 128px)) 0 clamp(48px, 8vh, 96px);
  background: var(--green);
  color: var(--cream);
}
.page-head__ghost {
  position: absolute;
  right: clamp(-70px, -5vw, -10px);
  top: 50%;
  transform: translateY(-50%);
  height: clamp(240px, 34vw, 440px);
  width: auto;
  opacity: .09;
  pointer-events: none;
}
.page-head .kicker { color: var(--gold-soft); }
.page-head__title {
  margin-top: 14px;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.05;
}
.page-head__note {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* --- Hero a foto intera per pagine interne (variante di .page-head) ----
   Stesso ruolo (occhiello + titolo + nota), ma su una fotografia a piena
   pagina invece della fascia verde piena. L'header sopra resta trasparente
   finché questa sezione è a schermo (stesso meccanismo dell'hero video in
   home: setupHeader() cerca #hero prima di .page-head). */
.page-hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--black-2);
  overflow: hidden;
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 12, 12, .88) 0%, rgba(10, 12, 12, .28) 46%, rgba(10, 12, 12, 0) 72%),
    linear-gradient(to bottom, rgba(10, 12, 12, .5) 0%, rgba(10, 12, 12, 0) 32%);
}
.page-hero--parallax { background: none; }
.page-hero--band { height: 60vh; min-height: 360px; }
.page-hero__bg {
  position: absolute;
  inset: -26% 0;
  overflow: hidden;
  will-change: transform;
}
.page-hero__bg-zoom {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: heroKenBurns 9s ease-in-out infinite alternate;
}
.page-hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.26) translate(-3.5%, -3%); }
}
.page-hero__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--green);
  mix-blend-mode: multiply;
  opacity: .82;
}

/* --- Grana cinematografica: texture di rumore animata sopra le foto
   hero, per un'aria più editoriale/pellicola invece che foto stock
   piatta. SVG inline (feTurbulence), nessuna immagine esterna. -------- */
.page-hero__grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: heroGrain 1.1s steps(3) infinite;
}
@keyframes heroGrain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4%, 3%); }
  66%  { transform: translate(3%, -5%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__bg-zoom { animation: none; }
  .page-hero__grain { animation: none; opacity: .035; }
}
.page-hero__scrim--green {
  background:
    linear-gradient(to top, rgba(10, 12, 12, .9) 0%, rgba(10, 12, 12, .32) 46%, rgba(10, 12, 12, 0) 72%),
    linear-gradient(to bottom, rgba(10, 12, 12, .55) 0%, rgba(10, 12, 12, 0) 32%);
}
.page-hero__content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(40px, 8vh, 90px);
  color: var(--cream);
}
.page-hero__content .kicker { color: var(--gold-soft); }
.page-hero__title {
  margin-top: 16px;
  max-width: 20ch;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.05;
}
.page-hero__note {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* ---------------------------------------------------------------------
   8. RESPONSIVE CONDIVISO
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .foot__brand { grid-column: 1 / span 6; }
  .foot__cols { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .head__cta .btn { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 860px) {
  :root { --head-h: 66px; }
  .foot__cols { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .menu { display: none !important; }
}
