/* ============================================================
   Boboli Line — foglio di stile sito moderno responsive
   Marchio: confezioni da uomo, Made in Italy, dal 1980
   ============================================================ */

:root {
  --verde:        #15663a;   /* verde sartoriale del marchio */
  --verde-scuro:  #0f4a2a;
  --oro:          #b08d57;   /* accento caldo, tailoring */
  --oro-chiaro:   #cdab78;
  --carbone:      #1b1b1a;   /* sezioni scure */
  --carbone-2:    #262624;
  --crema:        #f7f4ee;   /* sfondo chiaro caldo */
  --crema-2:      #efe9df;
  --testo:        #232321;
  --testo-soft:   #5a574f;
  --bianco:       #ffffff;
  --ombra:        0 10px 30px rgba(0,0,0,.12);
  --ombra-soft:   0 4px 16px rgba(0,0,0,.08);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--testo);
  background: var(--crema);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--verde); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--oro); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--oro);
  margin: 0 0 14px;
}

.section { padding: 96px 0; }
.section--dark { background: var(--carbone); color: var(--crema); }
.section--dark .section-title { color: var(--crema); }
.section--alt { background: var(--crema-2); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--verde-scuro);
  margin-bottom: .2em;
}
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head p { color: var(--testo-soft); font-size: 1.08rem; }
.section--dark .section-head p { color: #cfc9bd; }

.rule { width: 64px; height: 2px; background: var(--oro); margin: 18px 0 0; border: 0; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: 14px 30px;
  border-radius: 2px;
  border: 1.5px solid var(--verde);
  background: var(--verde);
  color: #fff;
  cursor: pointer;
  transition: all .22s ease;
}
.btn:hover { background: var(--verde-scuro); border-color: var(--verde-scuro); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--crema); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--gold { background: var(--oro); border-color: var(--oro); }
.btn--gold:hover { background: var(--oro-chiaro); border-color: var(--oro-chiaro); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--ombra-soft);
  padding: 12px 28px;
  backdrop-filter: blur(6px);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  transition: color .3s ease;
}
.brand .tag {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .55rem;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
}
.scrolled .brand .name { color: var(--verde); }
.scrolled .brand .tag { color: var(--testo-soft); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  padding: 6px 0;
  position: relative;
}
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--oro); transition: width .25s ease;
}
.nav a.navlink:hover::after { width: 100%; }
.scrolled .nav a.navlink { color: var(--testo); }

.lang-switch {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; color: #fff;
  border: 1px solid rgba(255,255,255,.5); border-radius: 2px;
  padding: 6px 12px;
}
.lang-switch:hover { background: var(--oro); border-color: var(--oro); color:#fff; }
.scrolled .lang-switch { color: var(--testo); border-color: rgba(0,0,0,.2); }
.scrolled .lang-switch:hover { color:#fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.scrolled .nav-toggle span { background: var(--testo); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; text-align: left;
  background: linear-gradient(rgba(15,20,16,.72), rgba(15,20,16,.78)),
              url("../../img/ditta.jpg") center/cover no-repeat;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 70% 30%, rgba(21,102,58,.35), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 120px 0 90px; }
.hero .kicker {
  text-transform: uppercase; letter-spacing: .35em; font-size: .8rem;
  color: var(--oro-chiaro); font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  font-style: italic; font-weight: 600;
  margin: 0 0 .15em; line-height: .95;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero .since { font-family: var(--serif); font-style: italic; color: var(--oro-chiaro); }
.hero p.lead {
  font-size: 1.25rem; max-width: 540px; margin: 0 0 36px;
  color: #ece7dd; font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: .7rem;
  letter-spacing: .25em; text-transform: uppercase; animation: floaty 2.2s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ---------- striscia valori ---------- */
.values { background: var(--carbone-2); color: var(--crema); }
.values .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.value { padding: 40px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.value:last-child { border-right: 0; }
.value .num { font-family: var(--serif); font-size: 2.6rem; color: var(--oro); line-height: 1; }
.value h3 { font-size: 1.25rem; color: #fff; margin: 10px 0 6px; }
.value p { margin: 0; color: #b9b3a7; font-size: .95rem; }

/* ============================================================
   AZIENDA
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split + .split { margin-top: 80px; }
.split img { border-radius: 4px; box-shadow: var(--ombra); width: 100%; object-fit: cover; }
.prose p { margin: 0 0 1.1em; color: var(--testo-soft); }
.prose .lead-in { font-size: 1.15rem; color: var(--testo); }
.brandword { color: var(--verde); font-weight: 600; font-style: italic; font-family: var(--serif); font-size:1.1em; }
.hl { color: var(--oro); font-weight: 600; }

.founder { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; margin-top: 80px;
  background: var(--crema-2); padding: 44px; border-radius: 6px; }
.section--dark .founder { background: var(--carbone-2); }
.founder img.portrait { border-radius: 4px; box-shadow: var(--ombra); }
.founder .sign { margin-top: 22px; max-width: 150px; opacity: .85; }
.founder h3 { font-size: 1.9rem; color: var(--verde-scuro); }
.section--dark .founder h3 { color: var(--oro-chiaro); }

/* ============================================================
   PRODOTTI / GALLERY
   ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 4px;
  cursor: pointer; background: #ddd; aspect-ratio: 3/4;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  opacity: 0; transform: translateY(10px); transition: .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

.brands-line {
  text-align: center; margin-top: 54px; color: var(--testo-soft);
}
.brands-line .names { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--verde-scuro); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,12,10,.92); display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: var(--oro); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info .info-block { margin-bottom: 26px; }
.contact-info h3 { font-size: 1.25rem; color: var(--verde-scuro); margin-bottom: 4px; }
.section--dark .contact-info h3 { color: var(--oro-chiaro); }
.contact-info p { margin: 0; color: var(--testo-soft); }
.section--dark .contact-info p { color: #cfc9bd; }
.contact-info a { color: var(--oro); }
.map-embed { margin-top: 24px; border-radius: 6px; overflow: hidden; box-shadow: var(--ombra); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

form.contact-form { display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--testo-soft); margin-bottom: 6px; font-weight: 600; }
.section--dark .field label { color: #cfc9bd; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font-family: var(--sans); font-size: .98rem;
  border: 1px solid #cfc7b8; border-radius: 3px; background: #fff; color: var(--testo);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(21,102,58,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.req { color: var(--oro); }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--testo-soft); }
.section--dark .privacy { color: #b9b3a7; }
.privacy input { margin-top: 4px; }
.form-note { font-size: .8rem; color: var(--testo-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #111110; color: #b9b3a7; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .fname { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .15em; margin: 0 0 14px; }
.site-footer a { color: #cfc9bd; }
.site-footer a:hover { color: var(--oro); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* ============================================================
   RIVELAZIONE ALLO SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse { direction: ltr; }
  .founder { grid-template-columns: 1fr; gap: 26px; }
  .founder img.portrait { max-width: 240px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--carbone); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -8px 0 30px rgba(0,0,0,.3);
  }
  .nav.open { transform: translateX(0); }
  .nav a.navlink, .scrolled .nav a.navlink { color: #fff; font-size: 1rem; }
  .nav .lang-switch, .scrolled .nav .lang-switch { color:#fff; border-color: rgba(255,255,255,.4); }
  .nav-toggle { display: block; z-index: 110; }
  .nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); background:#fff; }
  .nav-toggle.active span:nth-child(2){ opacity: 0; }
  .nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); background:#fff; }
  .values .container { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .value:last-child { border-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding-top: 140px; }
}
