/* BarberShop Sergi-Negrea — la bottega storica dal 1929
   Concept: LA SALA DEL 1929 (interno Liberty + monogramma SG) + a regola d'arte.
   Cinzel (display) + Spectral (testo). Palette heritage caldo. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #F5EEE1; --bg2: #FBF6EA; --ink: #241C14; --walnut: #3B2A1E;
  --green: #234135; --green-d: #1A2F26; --brass: #B8873A; --gold: #C89B3C;
  --marble: #ECE5D6; --muted: #6E5F4E; --line: #DAceb6;
  --serif: 'Spectral', Georgia, serif; --disp: 'Cinzel', Georgia, serif;
  --wrap: 1180px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--serif); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 4px; }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.12; letter-spacing: .01em; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); color: var(--walnut); margin-bottom: .5em; font-weight: 500; }
.h2 em { color: var(--brass); font-style: italic; font-family: var(--serif); font-weight: 500; }
.kicker { font-family: var(--disp); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--brass); margin-bottom: 1em; font-weight: 600; }
.lead { font-size: 1.16rem; color: #4a3d2e; max-width: 60ch; }

/* buttons */
.btn { display: inline-block; font-family: var(--disp); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border-radius: 3px; transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.btn--gold { background: var(--green); color: var(--bg2); border: 1px solid var(--green); }
.btn--gold:hover { background: var(--green-d); transform: translateY(-2px); }
.btn--call { background: var(--gold); color: var(--green-d); border: none; padding: 10px 18px; }
.btn--call:hover { background: var(--brass); }
.btn--ghost { background: transparent; color: var(--walnut); border: 1px solid var(--brass); }
.btn--ghost:hover { background: var(--brass); color: var(--bg2); }

/* header */
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(245,238,225,.94); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mono { font-family: var(--disp); font-weight: 700; font-size: .95rem; color: var(--gold); background: var(--green); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; letter-spacing: -.02em; }
.brand__name { font-family: var(--disp); font-weight: 600; font-size: 1.12rem; color: var(--walnut); letter-spacing: .04em; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--walnut); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--brass); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.head-cta { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); font-family: var(--disp); font-size: .72rem; letter-spacing: .1em; padding: 6px 10px; border-radius: 3px; cursor: pointer; }
.lang:hover { border-color: var(--brass); color: var(--brass); }
.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--walnut); transition: .3s; }

/* hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--bg2); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26,26,20,.28) 0%, rgba(26,26,20,.42) 45%, rgba(20,20,15,.86) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 0 24px 68px; }
.hero__kicker { font-family: var(--disp); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; color: var(--gold); margin-bottom: .8em; font-weight: 600; }
.hero__title { font-size: clamp(3rem, 9vw, 6rem); font-weight: 600; margin-bottom: .28em; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero__title em { font-style: italic; color: var(--gold); font-family: var(--serif); font-weight: 500; }
.hero__sub { font-size: 1.24rem; max-width: 42ch; color: #f3ecdd; margin-bottom: 1.6em; }
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.6em; }
.hero .btn--ghost { color: var(--bg2); border-color: rgba(240,230,210,.6); }
.hero .btn--ghost:hover { background: var(--bg2); color: var(--green-d); }
.hero__badge { font-size: .95rem; color: #eadfca; }
.hero__badge strong { color: #fff; }
.stars { color: var(--gold); }
.stars--big { font-size: 1.3em; }

/* sezioni base */
section { padding: clamp(60px, 9vw, 116px) 0; }
.sala { background: var(--bg2); }

/* LA SALA */
.sala__grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sala__det { list-style: none; margin: 1.6em 0; display: grid; gap: 14px; }
.sala__det li { display: flex; align-items: center; gap: 14px; font-family: var(--disp); font-size: 1.02rem; color: var(--walnut); letter-spacing: .03em; }
.sala__ico { width: 44px; height: 44px; border: 1px solid var(--brass); border-radius: 5px; flex: 0 0 auto; position: relative; }
.sala__ico::before { content: ''; position: absolute; inset: 10px; border: 1.4px solid var(--gold); border-radius: 2px; opacity: .8; }
.sala__mono svg { display: block; }
.sala__plate { font-family: var(--disp); font-style: normal; color: var(--muted); font-size: .92rem; letter-spacing: .05em; border-left: 2px solid var(--brass); padding-left: 14px; margin-top: 1.4em; }
.sala__foto { border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(59,42,30,.5); border: 6px solid #fff; cursor: zoom-in; }
.sala__foto img { width: 100%; height: 100%; object-fit: cover; }

/* IL MESTIERE */
.mest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2.2em 0; }
.serv { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; position: relative; }
.serv__n { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; color: var(--brass); letter-spacing: .05em; }
.serv h3 { font-size: 1.35rem; color: var(--walnut); margin: .3em 0 .4em; font-weight: 500; }
.serv p { color: var(--muted); font-size: .98rem; }
.mest__foto { position: relative; border-radius: 6px; overflow: hidden; margin-top: 1em; cursor: zoom-in; box-shadow: 0 30px 60px -34px rgba(59,42,30,.5); }
.mest__foto img { width: 100%; max-height: 66vh; object-fit: cover; }
.mest__foto figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 26px 22px 16px; background: linear-gradient(transparent, rgba(20,20,15,.8)); color: var(--bg2); font-style: italic; font-size: .96rem; }

/* DAL 1929 */
.storia { background: var(--green-d); color: var(--bg2); }
.storia .kicker { color: var(--gold); }
.storia .h2 { color: #fff; }
.storia .h2 em { color: var(--gold); }
.storia__grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.storia__text p { color: #e7ddca; margin-bottom: 1em; max-width: 52ch; }
.storia__text strong { color: #fff; }
.storia__foto { border-radius: 6px; overflow: hidden; border: 6px solid rgba(200,155,60,.25); cursor: zoom-in; }
.storia__foto img { width: 100%; height: 100%; object-fit: cover; }
.storia__mono { font-family: var(--disp); letter-spacing: .1em; color: var(--gold); font-size: 1rem; margin-top: 1.4em !important; display: flex; align-items: baseline; gap: 12px; }
.storia__mono span:first-child { font-size: 1.7rem; font-weight: 700; }

/* GALLERY */
.gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2em; }
.gal__grid figure { border-radius: 5px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.gal__grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal__grid figure:hover img { transform: scale(1.05); }
.gal__tall { grid-row: span 2; aspect-ratio: 3/4 !important; }

/* RECENSIONI */
.rec { background: var(--bg2); }
.rec .h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rec__sub { font-size: .95rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.rec__grid { columns: 2; column-gap: 22px; margin-top: 1.5em; }
.rec__q { break-inside: avoid; margin-bottom: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 24px; border-top: 3px solid var(--brass); }
.rec__q p { font-style: italic; color: #3f3323; }
.rec__q cite { display: block; margin-top: .8em; font-style: normal; font-family: var(--disp); font-size: .78rem; letter-spacing: .08em; color: var(--brass); text-transform: uppercase; }

/* DOVE */
.dove__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.dove__addr { color: var(--muted); margin-bottom: 1em; }
.dove__stato { font-family: var(--disp); font-size: .92rem; letter-spacing: .05em; margin-bottom: 1.2em; }
.dove__stato::before { content: '●'; margin-right: 8px; }
.dove__stato.is-open { color: #2f6b4f; }
.dove__stato.is-closed { color: #9a5b3a; }
.orari { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; }
.orari th, .orari td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); font-weight: 400; }
.orari th { font-family: var(--disp); font-size: .82rem; letter-spacing: .05em; color: var(--walnut); }
.orari td { color: var(--muted); text-align: right; }
.orari tr.is-today th, .orari tr.is-today td { color: var(--brass); font-weight: 600; }
.dove__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dove__map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.dove__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: sepia(.12) saturate(.9); }

/* FAQ */
.faq { background: var(--bg2); }
.faq__list { margin-top: 1.5em; }
.faq__item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq__item summary { font-family: var(--disp); font-size: 1.06rem; color: var(--walnut); cursor: pointer; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--brass); font-size: 1.4rem; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 16px; max-width: 62ch; }

/* footer */
.site-foot { background: var(--walnut); color: #d8c8b0; padding: 48px 0; }
.foot-inner { display: grid; gap: 12px; text-align: center; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--disp); font-size: 1.1rem; color: #fff; letter-spacing: .04em; }
.foot-dove a { color: var(--gold); }
.foot-demo { font-size: .8rem; color: #a3927a; max-width: 62ch; margin: 6px auto 0; font-style: italic; }

/* action bar mobile */
.bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: var(--green-d); border-top: 1px solid var(--brass); }
.bar a { flex: 1; text-align: center; padding: 13px 4px; color: var(--bg2); text-decoration: none; font-family: var(--disp); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.bar a + a { border-left: 1px solid rgba(200,155,60,.25); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,18,13,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 500; background: var(--green-d); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.intro.hide { opacity: 0; visibility: hidden; }
.intro__inner { text-align: center; color: var(--bg2); }
.intro__mono { display: inline-block; margin-bottom: 18px; }
.intro__name { display: block; font-family: var(--disp); font-size: 2rem; font-weight: 600; letter-spacing: .06em; color: #fff; }
.intro__sub { display: block; font-family: var(--disp); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }

/* SG monogram stroke-draw (firma, strokeDashoffset — nessuna opacità doppia) */
.sg-draw, .sg-frame { }

/* reveal (GSAP fromTo con immediateRender:false → il CSS nasconde) */
.js .reveal, .js .reveal-hero { opacity: 0; }
.js.reduced-motion .reveal, .js.reduced-motion .reveal-hero, html:not(.js) .reveal, html:not(.js) .reveal-hero { opacity: 1; }

/* responsive */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg2); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
  .nav.nav-open { transform: translateY(0); }
  .nav a { padding: 14px 24px; }
  .burger { display: flex; }
  .sala__grid, .storia__grid, .dove__grid { grid-template-columns: 1fr; }
  .storia__foto { max-width: 420px; }
  .mest__grid { grid-template-columns: 1fr; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .gal__tall { grid-row: auto; aspect-ratio: 4/3 !important; }
  .rec__grid { columns: 1; }
  .bar { display: flex; }
  body { padding-bottom: 48px; }
  .nav a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
