/* ============================================================================
 * GESUELE GROUP — Sito v2 (Bianco puro + Cormorant Garamond + Montserrat)
 * Basato su Mockup C — Moderno Boutique
 * ========================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --paper:      #fafaf7;
  --paper-dim:  #f2efe8;
  --ink:        #2a2419;
  --ink-2:      #5c5347;
  --ink-3:      #8a8175;
  --gold:       #8a6f3f;
  --gold-hi:    #b8975a;
  --gold-soft:  #d4b56b;
  --line:       #e8e2d4;
  --line-dark:  #d4cbb8;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============ Header ============ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.header-left { display: flex; gap: 36px; }
.header-right { display: flex; gap: 28px; justify-content: flex-end; align-items: center; }
.header-link {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.header-link:hover { color: var(--gold); }
.header-link.active { color: var(--gold); border-bottom-color: var(--gold); }

.header-brand {
  text-align: center;
  display: block;
  transition: opacity 0.2s;
}
.header-brand:hover { opacity: 0.85; }
.header-brand-img {
  height: 68px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.header-brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--ink);
  letter-spacing: 5px;
  font-weight: 400;
  font-optical-sizing: auto;
}
.header-brand-sub {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 600;
}

.header-cta {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* Nav drawer (mobile only): nascosto di default,
   viene reso visibile solo dentro la @media (max-width: 900px) sotto */
.nav-drawer {
  display: none;
}

/* ============ Sezioni comuni ============ */
.section-head {
  text-align: center;
  margin-bottom: 70px;
}
.section-eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.section-title i {
  font-style: italic;
  color: var(--gold);
}
.section-sub {
  color: var(--ink-2);
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 16px;
}

/* ============ Bottoni ============ */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold); }

.btn-secondary {
  display: inline-block;
  color: var(--ink);
  padding: 14px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  transition: all 0.25s;
}
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: #b8ab90;
  padding: 80px 40px 30px;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #3d3628;
  margin-bottom: 30px;
}
.footer-brand-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-brand-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand-title span {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold-hi);
  font-family: var(--font-body);
  margin-top: 4px;
  font-weight: 600;
}
.footer-payoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-hi);
  max-width: 300px;
  line-height: 1.5;
  font-weight: 400;
}
.footer-col-h {
  color: var(--white);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #a09786;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
  font-weight: 400;
}
.footer-col a:hover { color: var(--gold-hi); }
.footer-col address { font-style: normal; }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #6b5f47;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 20px;
  }
  .header-left { display: none; }
  .header-right {
    justify-content: flex-end;
    display: flex;
    /* Nasconde tutti i link visibili — il menu è nel drawer */
    visibility: hidden;
  }
  .nav-toggle {
    display: flex;
    justify-self: start;
    /* Non usa position absolute — resta nella prima colonna grid */
  }
  .header {
    position: sticky;
    top: 0;
  }
  .nav-drawer {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 90;
    padding: 40px;
  }
  .nav-drawer.open { display: flex; }
  .nav-drawer a {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--ink);
    letter-spacing: 1px;
  }
  .section-title { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .section-title { font-size: 28px; }
  .footer { padding: 60px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; margin-bottom: 24px; }
  .header-brand-img { height: 50px; }
  .footer-brand-img { height: 56px; }
}

/* Riduce animazioni se richiesto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
