/* =========================================================
   Alessandro Doldi · Milano — sito demo FICO
   Bianco boutique, inchiostro, rosso del marchio col sole
   ========================================================= */

:root {
  --white: #ffffff;
  --ivory: #f6f2ec;        /* fondo caldo, come le pareti chiare del negozio */
  --sand: #e9e1d6;
  --ink: #161413;
  --ink-soft: #57524d;
  --line: #ddd5ca;
  --red: #b42a3a;          /* rosso del logo, scurito per il testo */
  --red-logo: #cd3242;
  --wood: #6b3b22;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; scroll-margin-top: var(--header-h); }

/* ---------- Tipografia ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--light { color: rgba(255,255,255,.88); }
.title {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.title em { color: var(--red); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink); }
p { margin: 0 0 1.1em; }

/* ---------- Sole del marchio (maschera, si colora via CSS) ---------- */
.sun-mark, .brand__sun {
  display: inline-block;
  width: 44px; height: 44px;
  background: currentColor;
  -webkit-mask: url("../images/sole-doldi-mask.png") center / contain no-repeat;
          mask: url("../images/sole-doldi-mask.png") center / contain no-repeat;
}
.sun-mark--red { color: var(--red-logo); }
.sun-mark--lg { width: 72px; height: 72px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-block; margin-top: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--red); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before { /* velo leggibile sopra la foto */
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.18) 70%, rgba(0,0,0,0));
  transition: opacity .4s var(--ease);
}
.site-header.is-solid, .site-header.is-open {
  background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid::before, .site-header.is-open::before { opacity: 0; }

.site-header__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: 1600px; margin: 0 auto;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav--right { justify-content: flex-end; }
.nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav__phone { letter-spacing: .14em !important; }

.brand {
  grid-column: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; line-height: 1;
}
.brand__sun { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.brand__name span { letter-spacing: .42em; margin-left: .1em; }

.menu-toggle {
  display: none;
  align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block; width: 22px; height: 1px; background: currentColor; position: relative;
  transition: transform .3s var(--ease);
}
.menu-toggle__bars::before { content: ""; position: absolute; top: 7px; }
.menu-toggle__bars { top: -3px; }
.is-open .menu-toggle__bars { transform: translateY(3px) rotate(45deg); }
.is-open .menu-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }

.menu {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  background: #fff; color: var(--ink);
  padding: 40px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li a {
  display: block; padding: 18px 0;
  font-family: var(--serif); font-size: 30px; text-decoration: none;
}
.menu__foot { font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); margin: 30px 0 70px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero__img img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s var(--ease) both;
}
.hero__img--a img { object-position: 50% 30%; }
.hero__img--b img { object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.66) 100%);
}
.hero__copy {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(48px, 9vh, 96px);
  text-align: center; padding: 0 var(--gutter);
  animation: fadeUp 1.2s .3s var(--ease) both;
}
.hero__title {
  margin: 0 0 32px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   LA MAISON
   ========================================================= */
.maison__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto;
  gap: clamp(32px, 5vw, 80px) clamp(32px, 6vw, 96px);
  align-items: start;
}
.maison__text { grid-row: 1 / span 2; padding-top: 20px; }
.maison__photo { margin: 0; }
.maison__photo img { width: 100%; }
.maison__photo figcaption {
  margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.maison__photo--logo { width: min(320px, 60%); justify-self: end; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.facts dt { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; }
.facts dd { margin: 6px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.4; }

/* =========================================================
   INTERNO
   ========================================================= */
.interior { position: relative; color: #fff; overflow: hidden; }
.interior img { width: 100%; height: clamp(360px, 62vw, 760px); object-fit: cover; object-position: 30% 50%; }
.interior::after { content: ""; position: absolute; inset: 0; background: rgba(25, 14, 8, .38); }
.interior__copy {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center; padding: 0 var(--gutter);
}
.interior__copy p {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3.6vw, 48px); line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

/* =========================================================
   COLLEZIONI
   ========================================================= */
.collezioni { background: var(--ivory); }
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-head__text { color: var(--ink-soft); max-width: 560px; margin-left: auto; margin-right: auto; }
.section-head--row {
  max-width: none; text-align: left;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.section-head--row .section-head__text { margin: 0 0 28px; max-width: 380px; }

.cats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px);
}
.cat figure { margin: 0 0 22px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.cat picture { height: 100%; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat img.pos-right { object-position: 72% 50%; }
.cat h3 {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px;
}
.cat p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* =========================================================
   VETRINE (lookbook)
   ========================================================= */
.lookbook {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 240px);
  gap: clamp(10px, 1.4vw, 20px);
}
.look {
  position: relative; padding: 0; border: 0; background: var(--sand); cursor: zoom-in;
  overflow: hidden; grid-column: span 2; grid-row: span 2;
}
.look picture, .look img { width: 100%; height: 100%; }
.look img { object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.look:hover img { transform: scale(1.04); }
.look--tall { grid-row: span 3; }
.look--wide { grid-column: span 4; grid-row: span 3; }

/* =========================================================
   SERVIZIO
   ========================================================= */
.servizio { background: var(--ink); color: #f3eee8; }
.servizio .eyebrow { color: rgba(243,238,232,.7); }
.servizio .title em { color: #e8857f; }
.servizio .lead { color: #f3eee8; }
.servizio .sun-mark { margin-bottom: 28px; }
.servizio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.voices { display: grid; gap: 40px; }
.voice { margin: 0; padding-left: 28px; border-left: 1px solid rgba(243,238,232,.3); }
.voice p { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.35; margin-bottom: 14px; }
.voice footer { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,238,232,.65); }

/* =========================================================
   VISITA
   ========================================================= */
.visita__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 1.6em;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.status.is-open::before { background: #3f8a55; }
.status.is-closed::before { background: var(--red); }

.hours { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; color: var(--red); }

.visita__info { display: grid; gap: 34px; align-content: start; }
.info-block h3 {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
}
.info-block p { margin: 0 0 10px; font-size: 19px; }
.big-link { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); text-decoration: none; }
.big-link:hover { color: var(--red); }

.map { aspect-ratio: 4 / 3; background: var(--ivory); position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(rgba(246,242,236,.86), rgba(246,242,236,.86)),
    url("../images/facciata-via-canonica-1000.jpg") center / cover;
  border: 0; cursor: pointer; color: var(--ink);
}
.map__load span:not(.sun-mark) { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.map__load small { font-size: 12px; color: var(--ink-soft); }
.map__load .sun-mark { color: var(--red-logo); }
.map__load:hover span:not(.sun-mark) { color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ivory); padding: clamp(70px, 9vw, 110px) 0 32px; border-top: 1px solid var(--line); }
.site-footer__brand { text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.site-footer__brand .sun-mark { color: var(--red-logo); margin-bottom: 14px; }
.site-footer__mark {
  margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
}
.site-footer__mark span { letter-spacing: .4em; }
.site-footer__since { margin: 8px 0 0; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

.site-footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.site-footer__h { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer__grid a { text-decoration: none; }
.site-footer__grid a:hover { color: var(--red); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; font-size: 13px; color: var(--ink-soft);
}
.site-footer__bottom p { margin: 0; }

/* Firma FICO */
.credit-line {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.credit-seal img { width: 26px; height: 26px; border-radius: 50%; transition: transform .5s var(--ease); }
.credit-line:hover .credit-seal img { transform: rotate(-12deg) scale(1.08); }
.credit-line:hover .credit-text { color: var(--red); }

/* =========================================================
   QUICKBAR + LIGHTBOX
   ========================================================= */
.quickbar { display: none; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14,12,11,.96); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(14,12,11,.96); }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox__figure img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox__figure figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 40px; line-height: 1; width: 56px; height: 56px; font-weight: 200;
}
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Comparsa sezioni ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; grid-column: 1; justify-self: start; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 900px) {
  .maison__grid { grid-template-columns: 1fr; }
  .maison__text { grid-row: auto; padding-top: 0; }
  .maison__photo--logo { justify-self: start; width: min(260px, 70%); }
  .servizio__grid, .visita__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .section-head--row .section-head__text { margin-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 60px; }
  .brand__sun { width: 22px; height: 22px; }
  .brand__name { font-size: 15px; letter-spacing: .16em; }
  .brand__name span { letter-spacing: .3em; }
  .menu-toggle__label { display: none; }

  .hero__media { grid-template-columns: 1fr; }
  .hero__img--b { display: none; }
  .hero__cta .btn { flex: 1 1 100%; max-width: 340px; }
  .hero .eyebrow { letter-spacing: .2em; }
  .hero__since { display: block; margin-top: 6px; }

  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .facts dd { font-size: 10.5px; letter-spacing: .08em; }

  .lookbook { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .look, .look--tall { grid-column: span 1; grid-row: span 2; }
  .look--wide { grid-column: span 2; grid-row: span 2; order: -1; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
  }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; height: 56px;
    color: #fff; text-decoration: none;
    font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  }
  .quickbar a + a { background: var(--red); }
}

@media (max-width: 420px) {
  .cats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

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

/* Leggibilità del header sopra le foto chiare della hero */
.site-header:not(.is-solid):not(.is-open) .brand__name,
.site-header:not(.is-solid):not(.is-open) .nav a { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.site-header:not(.is-solid):not(.is-open) .brand__sun { filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
