/* ══════════════════════════════════════════════════
   ga.css — stili condivisi Galbiati Antichità
   ══════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TOKENS ── */
:root {
  --bg:        #f8ede3;
  --bg-alt:    #f0e3d4;
  --surface:   #ffffff;
  --text:      #1c1612;
  --muted:     #6b5e54;
  --teal:      #4e8880;
  --teal-dark: #3a6a63;
  --gold:      #9a7c3a;
  --gold-dark: #7a6128;
  --terra:     #b8624a;
  --nav-h:     64px;
  --max:       1200px;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
  --r:         6px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── UTILS ── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--muted);
  display: block;
  margin-bottom: .35rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-sub {
  font-size: .975rem;
  color: var(--muted);
  margin-top: .6rem;
  max-width: 52ch;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.75rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .025em;
  transition: background .22s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) !important; }

.btn-gold  { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(154,124,58,.35); }

.btn-teal  { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(78,136,128,.35); }

.btn-outline-white { border: 1.5px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

.btn-outline-teal { border: 1.5px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }

/* ── NAV ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  z-index: 900;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.nav-logo { width: 44px; height: 44px; border-radius: var(--r); overflow: hidden; }
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(.75rem, 2.5vw, 2.25rem);
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: .2rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: .75rem; }

.lang-btn {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .3rem .7rem;
  border: 1px solid rgba(107,94,84,.35);
  border-radius: 99px;
  transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--teal); border-color: var(--teal); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: .35rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(248,237,227,.98);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--text); transition: color .2s; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-lang { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .4rem .9rem; border: 1px solid rgba(107,94,84,.35); border-radius: 99px; }

/* ── FIXED CONTACT ── */
.fixed-contact {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 800;
}

.fc-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  color: var(--text);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.fc-btn:hover { transform: scale(1.1); box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.fc-btn.wa { background: #25d366; color: #fff; border-color: transparent; }

/* ── COMPACT HERO (pagine interne) ── */
.page-hero {
  position: relative;
  height: clamp(260px, 42vh, 420px);
  margin-top: var(--nav-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-img {
  position: absolute;
  inset: 0;
}
.page-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.6));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.page-hero-content p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 44ch;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── CONTENT SECTION (testo + immagine) ── */
.content-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.content-grid.reverse .content-img { order: -1; }

.content-text .section-tag  { margin-bottom: .35rem; }
.content-text .section-title { margin: .2rem 0 1.2rem; }

.content-text p {
  color: var(--muted);
  font-size: .975rem;
  line-height: 1.8;
  margin-bottom: .9rem;
}
.content-text p:last-of-type { margin-bottom: 0; }

.content-text .btn { margin-top: 1.5rem; }

.content-img {
  position: relative;
}
.content-img::before {
  content: '';
  position: absolute;
  bottom: -14px; right: -14px;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border: 2px solid var(--teal);
  border-radius: var(--r);
}
.content-grid.reverse .content-img::before {
  right: auto; left: -14px;
}

.content-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r);
  position: relative;
  z-index: 1;
}

/* Variante immagine panoramica */
.content-img.wide img { aspect-ratio: 3/2; }

/* ── DIVIDER ── */
.divider {
  width: 48px; height: 2px;
  background: var(--teal);
  margin: 1.25rem 0;
}
.center .divider { margin: 1.25rem auto; }

/* ── CTA BANNER ── */
.cta-section { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); }

.cta-box {
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--terra) 0%, #7a9b8a 100%);
  border-radius: 16px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-box h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.cta-box p  { max-width: 52ch; margin: 0 auto 2rem; font-size: .95rem; opacity: .9; }
.cta-btns   { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--text);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(78,136,128,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-item-text strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.contact-item-text a, .contact-item-text p { font-size: .95rem; color: var(--text); }
.contact-item-text a:hover { color: var(--teal); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.field input,
.field textarea,
.field select {
  padding: .75rem 1rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78,136,128,.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  transition: background .3s;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,.45); }
.gallery-item-label {
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: #18110c;
  color: rgba(255,255,255,.65);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h2 { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: .8rem; }
.footer-brand p  { font-size: .875rem; line-height: 1.75; }

.footer-col h3 {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: .875rem; color: rgba(255,255,255,.6);
  margin-bottom: .55rem; transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: .5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reverse .content-img { order: 0; }
  .content-img { max-width: 500px; margin: 0 auto; }
  .content-img::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fixed-contact { right: .75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .cta-box { border-radius: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
