/* Carozza Calzature — stili del sito */

:root {
  --cream: #f1ece5;
  --paper: #f8f4ee;
  --ink: #312525;
  --ink-soft: #6b5a55;
  --night: #1c1515;
  --bordeaux: #4a1d1f;
  --bordeaux-deep: #351416;
  --gold: #b8955c;
  --gold-soft: #d8c19a;
  --line: rgba(49, 37, 37, .14);
  --line-light: rgba(248, 244, 238, .18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: .7rem 1rem;
  background: var(--ink); color: var(--paper); transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }

/* ---------- Tipografia ricorrente ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .68rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--bordeaux);
}
.eyebrow--light { color: var(--gold-soft); }
.diamond { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); flex: none; }

.display {
  font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.01em;
  font-size: clamp(3.2rem, 9vw, 7.5rem); color: var(--ink); margin-top: .9rem;
}
.display--light { color: var(--paper); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }
.section-head__en {
  margin-top: 1rem; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.section-head__lead { max-width: 34rem; margin: 1.4rem auto 0; color: rgba(248, 244, 238, .72); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: 0 1.9rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(248, 244, 238, .5); color: var(--paper); }
.btn--ghost:hover { background: rgba(248, 244, 238, .1); border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--bordeaux); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--paper);
  transition: background-color .4s var(--ease), height .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-compact {
  --header-h: 68px;
  background: rgba(241, 236, 229, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--gutter);
}

.brand { display: flex; align-items: center; gap: .9rem; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
}
.brand__sub {
  font-size: .52rem; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase; opacity: .78;
  padding-left: .9rem; border-left: 1px solid currentColor;
}

.site-nav__list { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.site-nav__list a {
  position: relative; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0; white-space: nowrap;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__extra { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; display: block; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(35deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-35deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: 49;
    background: var(--night); color: var(--paper);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 2.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: .01em;
    text-transform: none; padding: .55rem 0; border-bottom: 1px solid var(--line-light);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__extra { display: flex; flex-direction: column; gap: .6rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
  .site-header.menu-open { background: var(--night); color: var(--paper); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--night); color: var(--paper); overflow: hidden; isolation: isolate;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 35%; transform: scale(1.08); animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 21, 21, .55) 0%, rgba(28, 21, 21, .15) 30%, rgba(28, 21, 21, .35) 55%, rgba(28, 21, 21, .92) 100%),
    linear-gradient(90deg, rgba(28, 21, 21, .55) 0%, rgba(28, 21, 21, 0) 60%);
}
.hero__content {
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 11vh, 120px);
}
.hero__title {
  font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(3.1rem, 9.6vw, 8.6rem); margin: 1.4rem 0 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.3s var(--ease) both; }
.hero__title .line--accent > span { font-style: italic; color: var(--gold-soft); animation-delay: .18s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { max-width: 32rem; font-size: clamp(.92rem, 1.3vw, 1.05rem); color: rgba(248, 244, 238, .82); animation: fadeIn 1.2s .6s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; animation: fadeIn 1.2s .8s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__seal {
  position: absolute; right: clamp(24px, 7vw, 120px); bottom: clamp(72px, 12vh, 130px);
  width: clamp(120px, 12vw, 170px); aspect-ratio: 1; color: var(--gold-soft);
  display: grid; place-items: center; animation: fadeIn 1.2s 1s var(--ease) both;
}
.hero__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.hero__seal text { fill: currentColor; font-family: var(--sans); font-size: 13.2px; letter-spacing: 3.2px; font-weight: 500; }
.hero__seal-num { font-family: var(--serif); font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: 1; color: var(--paper); }
.hero__seal-num::after { content: "anni"; display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; text-align: center; color: var(--gold-soft); margin-top: .35rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; right: calc(var(--gutter) * .6); bottom: 0; width: 20px; height: 120px;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll span { writing-mode: vertical-rl; font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(248, 244, 238, .7); }
.hero__scroll::after { content: ""; flex: 1; width: 1px; background: linear-gradient(var(--paper), transparent); animation: scrollLine 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.br-desk { display: none; }
@media (min-width: 700px) { .br-desk { display: inline; } }

@media (max-width: 700px) {
  .hero__media img { object-position: 50% 20%; }
  .hero__veil { background: linear-gradient(180deg, rgba(28, 21, 21, .5) 0%, rgba(28, 21, 21, .2) 26%, rgba(28, 21, 21, .72) 48%, rgba(28, 21, 21, .96) 100%); }
  .hero__seal { top: calc(var(--header-h) + 18px); bottom: auto; right: 16px; width: 104px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   La bottega
   ========================================================================== */
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.story__figure { position: relative; }
.story__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story__figure figcaption {
  margin-top: .9rem; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
}
.story__figure::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 40%; height: 40%;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); pointer-events: none;
}
.story__text { padding-top: clamp(0px, 4vw, 60px); }
.story__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.2; margin-bottom: 1.8rem; }
.story__text > p { max-width: 34rem; color: var(--ink-soft); }
.story__text > p + p { margin-top: 1.2rem; }

.timeline { margin-top: 3rem; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--bordeaux); }
.timeline__text { font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__figure { max-width: 520px; margin-left: 18px; }
  .timeline li { grid-template-columns: 5.5rem 1fr; }
}

/* ---------- Banda interni ---------- */
.interior { background: var(--cream); padding-bottom: clamp(88px, 12vw, 160px); }
.interior__track { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.interior__item { overflow: hidden; }
.interior__item picture { overflow: hidden; }
.interior__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease); }
.interior__item:hover img { transform: scale(1.04); }
.interior__item figcaption { display: flex; gap: 1rem; padding-top: 1rem; font-size: .78rem; color: var(--ink-soft); }
.interior__item figcaption span { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); line-height: 1.3; }
.interior__item:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }

@media (max-width: 700px) {
  .interior__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .interior__track::-webkit-scrollbar { display: none; }
  .interior__item { flex: 0 0 86%; scroll-snap-align: center; }
  .interior__item:nth-child(2) { margin-top: 0; }
}

/* ==========================================================================
   Collezioni
   ========================================================================== */
.collections { background: var(--bordeaux); color: var(--paper); }
.collections::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 149, 92, .16), transparent 60%);
}
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); position: relative; }
.card { position: relative; overflow: hidden; aspect-ratio: 3 / 4.6; background: var(--bordeaux-deep); }
.card picture, .card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card img { object-fit: cover; transition: transform 1.4s var(--ease), filter .8s var(--ease); filter: saturate(.85); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 21, 21, .1) 30%, rgba(28, 21, 21, .88) 100%);
  transition: background .6s var(--ease);
}
.card:hover img { transform: scale(1.06); filter: saturate(1); }
.card__body { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.6rem 1.4rem 1.7rem; text-align: center; }
.card__initial {
  display: block; font-family: var(--serif); font-size: clamp(4.6rem, 7vw, 6.6rem); line-height: .8; color: var(--paper);
  margin-bottom: .6rem; transition: transform .8s var(--ease);
}
.card:hover .card__initial { transform: translateY(-6px); }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: .04em; }
.card__text { margin-top: .5rem; font-size: .8rem; line-height: 1.65; color: rgba(248, 244, 238, .78); }

.brands { margin-top: clamp(56px, 8vw, 96px); text-align: center; position: relative; }
.brands__label { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem clamp(1.4rem, 4vw, 3.6rem); margin-top: 1.2rem; }
.brands__list li { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--paper); opacity: .9; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 4.4; }
}

/* ==========================================================================
   Consulenza
   ========================================================================== */
.advice__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.advice__intro { grid-column: 1 / span 5; align-self: center; padding-right: clamp(0px, 3vw, 40px); }
.advice__intro > p:last-child { margin-top: 1.6rem; color: var(--ink-soft); }
.advice__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.3; color: var(--bordeaux); }
.advice__cite { margin-top: 1rem; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.panel { background: var(--paper); padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); }
.advice__grid > .panel:nth-of-type(1) { grid-column: 6 / span 7; }
.panel--media { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding: 0; align-items: center; background: var(--night); color: var(--paper); border: 0; }
.panel__img img { width: 100%; height: 100%; max-height: 560px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.panel__content { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px) clamp(28px, 4vw, 56px) 0; }
.panel__content > p:not(.panel__kicker):not(.price) { color: rgba(248, 244, 238, .76); max-width: 34rem; }
.panel__kicker { font-size: .64rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.panel__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.15; margin: .8rem 0 1.2rem; }
.panel > p { color: var(--ink-soft); }
.steps { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 1.2rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.steps span { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); flex: none; width: 2rem; }
.price { margin-top: 1.8rem; display: flex; align-items: baseline; gap: 1rem; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }
.price span { font-family: var(--serif); font-size: 2.6rem; letter-spacing: 0; text-transform: none; color: var(--paper); line-height: 1; }

@media (max-width: 900px) {
  .advice__intro, .advice__grid > .panel:nth-of-type(1) { grid-column: 1 / -1; }
  .panel--media { grid-template-columns: 1fr; }
  .panel__img img { aspect-ratio: 4 / 3; max-height: 380px; }
  .panel__content { padding: 0 clamp(22px, 5vw, 40px) clamp(28px, 6vw, 44px); }
}

/* ==========================================================================
   Recensioni
   ========================================================================== */
.reviews { background: var(--paper); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 88px); }
.reviews__head .section-head { margin-bottom: 0; }
.score { text-align: right; }
.score__value { font-family: var(--serif); font-size: clamp(4rem, 7vw, 6rem); line-height: .9; color: var(--bordeaux); }
.score__stars { color: var(--gold); letter-spacing: .2em; font-size: 1rem; margin-top: .3rem; }
.score__count { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

.quotes { columns: 3 280px; column-gap: clamp(16px, 2.4vw, 32px); }
.quote { break-inside: avoid; margin-bottom: clamp(16px, 2.4vw, 32px); padding: 2rem 1.8rem 1.7rem; border-top: 1px solid var(--ink); background: var(--cream); }
.quote p { font-family: var(--serif); font-size: 1.32rem; line-height: 1.45; }
.quote p::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: .4rem; }
.quote footer { margin-top: 1.2rem; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 600px) { .score { text-align: left; } }

/* ==========================================================================
   Instagram
   ========================================================================== */
.insta { padding-bottom: clamp(64px, 9vw, 120px); }
.insta__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.insta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin-top: .8rem; }
.insta__strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--gutter) 10px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.insta__strip li { flex: 0 0 clamp(170px, 19vw, 250px); scroll-snap-align: start; }
.insta__strip a { display: block; overflow: hidden; position: relative; }
.insta__strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.insta__strip a:hover img { transform: scale(1.05); }
.insta__strip a::after {
  content: "Guarda il reel"; position: absolute; inset: auto 0 0; padding: 2.4rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(28, 21, 21, .8)); color: var(--paper);
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; opacity: 0; transition: opacity .4s var(--ease);
}
.insta__strip a:hover::after, .insta__strip a:focus-visible::after { opacity: 1; }

/* ==========================================================================
   Visita
   ========================================================================== */
.visit { background: var(--night); color: var(--paper); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: stretch; }

.status { display: inline-flex; align-items: center; gap: .7rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open .status__dot { background: #7fb38a; box-shadow: 0 0 0 4px rgba(127, 179, 138, .2); }
.status.is-closed .status__dot { background: #c27a6b; }

.contact { margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact dt { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.contact dd { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; margin-top: .25rem; }
.contact a { border-bottom: 1px solid var(--line-light); transition: border-color .3s; }
.contact a:hover { border-color: var(--gold-soft); }

.hours { width: 100%; margin-top: 2.4rem; border-collapse: collapse; font-size: .86rem; }
.hours th, .hours td { padding: .75rem 0; border-bottom: 1px solid var(--line-light); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: rgba(248, 244, 238, .8); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold-soft); font-weight: 500; }
.hours tr.is-today th::after { content: " · oggi"; font-size: .7rem; letter-spacing: .1em; }

.visit__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.map { position: relative; min-height: 420px; overflow: hidden; background: #2a2020; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.map__placeholder picture, .map__placeholder picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__placeholder picture::after { content: ""; position: absolute; inset: 0; background: rgba(28, 21, 21, .62); }
.map__btn, .map__note { position: relative; }
.map__note { font-size: .74rem; color: rgba(248, 244, 238, .7); }

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .contact dd { font-size: 1.4rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bordeaux-deep); color: rgba(248, 244, 238, .78); padding: clamp(64px, 8vw, 100px) 0 0; font-size: .86rem; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .9fr; gap: 2.4rem; padding-bottom: clamp(48px, 6vw, 72px); }
.site-footer__name { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); line-height: 1; }
.site-footer__tag { margin-top: .8rem; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer__h { font-size: .62rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; }
.site-footer p + p { margin-top: .6rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer__links { display: grid; gap: .3rem; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; padding-bottom: 1.6rem; border-top: 1px solid var(--line-light); font-size: .74rem;
}
.credit-line { display: inline-flex; align-items: center; gap: .55rem; opacity: .78; transition: opacity .3s var(--ease); }
.credit-line:hover { opacity: 1; }
.credit-text { font-size: .74rem; letter-spacing: .04em; font-style: italic; color: rgba(246, 242, 235, .85); }
.credit-seal {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid rgba(246, 242, 235, .3);
}
.credit-seal img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Elementi fissi: linguette laterali, scheda Visita, barra mobile
   ========================================================================== */
.side-tabs { position: fixed; right: 0; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.side-tabs__item {
  writing-mode: vertical-rl; padding: 1.4rem .75rem; background: var(--night); color: var(--paper);
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; transition: background-color .3s, padding .3s var(--ease);
}
.side-tabs__item--accent { background: var(--bordeaux); }
.side-tabs__item:hover { background: var(--gold); color: var(--night); padding-right: 1rem; }

.access {
  position: fixed; right: 64px; bottom: 24px; z-index: 40; display: flex; width: 290px;
  background: rgba(74, 29, 31, .96); color: var(--paper); box-shadow: 0 18px 40px rgba(28, 21, 21, .25);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.access.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.access.is-hidden-near { opacity: 0; visibility: hidden; transform: translateY(16px); }
.access__img { flex: 0 0 86px; overflow: hidden; }
.access__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.access__body { display: flex; flex-direction: column; justify-content: center; padding: .9rem 1.1rem; gap: .15rem; }
.access__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.access__text { font-size: .72rem; color: rgba(248, 244, 238, .8); }
.access__status { font-size: .58rem; letter-spacing: .14em; margin-top: .3rem; }
.access .status__dot { width: 6px; height: 6px; }

.quickbar { display: none; }

@media (max-width: 960px) {
  .side-tabs, .access { display: none; }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 45;
    background: var(--night); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    color: var(--paper); font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  }
  .quickbar a + a { background: var(--bordeaux); }
  .site-footer { padding-bottom: 56px; }
}

/* ==========================================================================
   Comparsa allo scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__media img { transform: none; }
}
