/* ═══════════════════════════════════════════════════════════
   IL MOLINETTO — style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green-dark:   #1a3314;
  --green:        #2a4a22;
  --green-light:  #3d6b35;
  --gold:         #d4a832;
  --gold-light:   #e8c75a;
  --cream:        #fdf8ee;
  --cream-dark:   #f5ecd0;
  --olive-bg:     #2a4a22;
  --dark:         #1a3314;
  --text:         #1e3a18;
  --text-muted:   #4a6b42;
  --white:        #fff;

  --font-head:    'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --nav-h:        84px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.2);
  --trans:        .3s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.6rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p  { line-height: 1.75; }
em { font-style: italic; }
strong { font-weight: 700; }

/* ── Layout helpers ─────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-light { background: var(--cream); }
.section-dark  { background: var(--dark); color: var(--white); }
.section-olive { background: var(--olive-bg); color: var(--white); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-top: 12px; }
.section-intro { margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; opacity: .85; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(212,168,50,.18);
  padding: 4px 14px;
  border-radius: 99px;
}
.eyebrow.light {
  color: var(--gold-light);
  background: rgba(212,168,50,.18);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,50,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; text-align: center; }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--trans), box-shadow var(--trans);
}
.navbar.scrolled {
  background: rgba(28,43,25,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold);
}
.nav-logo span {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-btn {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 5px 12px;
  transition: all var(--trans);
}
.lang-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}
.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); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--dark) 60%, #0e1a0b 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/gallery/gallery-03.jpg');
  background-size: cover;
  background-position: center;
  opacity: .18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,18,8,.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: calc(var(--nav-h) + 32px) 24px 80px;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .85;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ═══════════════════════════════════════════════════════════
   SERVIZI
   ═══════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  border-top: 4px solid var(--gold);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px; height: 56px;
  color: var(--gold);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; color: var(--green-dark); }
.card p  { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.card-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  font-size: .875rem;
  color: var(--gold);
  transition: color var(--trans);
}
.card-link:hover { color: var(--green-dark); }

/* ═══════════════════════════════════════════════════════════
   CHI SIAMO
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text h2 { color: var(--white); margin: 16px 0 24px; }
.about-text p  { opacity: .85; margin-bottom: 16px; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-signature {
  margin-top: 28px !important;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light) !important;
  opacity: 1 !important;
}
.about-image { position: relative; }
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.about-badge span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.about-badge strong { font-family: var(--font-head); font-size: 1.4rem; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   SPREMITURA
   ═══════════════════════════════════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.benefit {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: background var(--trans), transform var(--trans);
}
.benefit:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.benefit-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--gold-light);
  opacity: .8;
  line-height: 1;
  margin-bottom: 12px;
}
.benefit h4 { color: var(--white); margin-bottom: 10px; }
.benefit p  { font-size: .9rem; opacity: .75; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--cream-dark);
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,43,25,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-zoom, .gallery-play {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 52px; height: 52px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-play svg { width: 22px; height: 22px; margin-left: 3px; }

/* ═══════════════════════════════════════════════════════════
   CONTATTI
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  color: var(--gold-light);
  font-size: .9rem;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(200,169,81,.3);
  border-radius: var(--radius);
}
.form-success.show { display: block; }

/* Info */
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-block { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.info-block strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.info-block p, .info-block a { font-size: .95rem; opacity: .8; line-height: 1.7; }
.info-block a:hover { opacity: 1; color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: #111b0f;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.footer-brand span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 600;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: .8rem; color: rgba(255,255,255,.5); transition: color var(--trans); }
.footer-nav a:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--trans), transform var(--trans), background var(--trans);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold-light); }
.back-to-top svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,10,4,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  width: 94vw;
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-content video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  z-index: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 20px; height: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { order: -1; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .about-badge { bottom: 12px; left: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-inner {
    gap: 8px;
    padding: 0 16px;
  }

  .nav-logo img {
    width: 40px;
    height: 40px;
  }
  .nav-logo span {
    font-size: 1.1rem;
  }

  /* Nasconde i link e li mette come pannello a tendina */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(26,51,20,.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 20px 16px;
    gap: 4px;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
    width: 100%;
  }

  /* Mostra hamburger */
  .hamburger { display: flex; }

  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
