/* ============================================
   COLLE MILONE — Stile principale
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:wght@300;400;600&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:   #3a6347;
  --verde-sc: #2b4d37;
  --ambra:   #c96840;
  --crema:   #f7f3eb;
  --crema-sc:#ede7d8;
  --testo:   #2b2b2b;
  --grigio:  #6b6b6b;
  --bianco:  #ffffff;
  --raggio:  6px;
  --ombra:   0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--testo);
  background: var(--crema);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }

.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ambra);
  margin-bottom: .6rem;
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--raggio);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  border: 2px solid transparent;
}

.btn-primario {
  background: var(--ambra);
  color: var(--bianco);
  border-color: var(--ambra);
}
.btn-primario:hover { background: #a56815; border-color: #a56815; transform: translateY(-2px); }

.btn-contorno {
  background: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}
.btn-contorno:hover { background: var(--bianco); color: var(--verde); transform: translateY(-2px); }

.btn-verde {
  background: var(--verde);
  color: var(--bianco);
  border-color: var(--verde);
}
.btn-verde:hover { background: var(--verde-sc); border-color: var(--verde-sc); transform: translateY(-2px); }

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--crema-sc);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--ombra); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-logo-testo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--verde);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ambra);
  display: block;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--testo);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-menu a:hover,
.nav-menu a.attivo { color: var(--verde); border-bottom-color: var(--ambra); }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--testo);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.aperto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aperto span:nth-child(2) { opacity: 0; }
.hamburger.aperto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--verde-sc);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .45;
}

.hero-contenuto {
  position: relative;
  z-index: 1;
  color: var(--bianco);
  max-width: 680px;
  padding-top: 72px;
}
.hero-contenuto .tag { color: rgba(255,255,255,.8); }
.hero-contenuto h1 { margin-bottom: 1.2rem; }
.hero-contenuto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: .9;
}
.hero-btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- SEZIONI GENERICHE ---------- */
.sezione { padding: 90px 0; }
.sezione-chiara { background: var(--bianco); }
.sezione-crema  { background: var(--crema); }
.sezione-verde  { background: var(--verde); color: var(--bianco); }

.sezione-titolo {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.sezione-titolo p { color: var(--grigio); margin-top: .8rem; font-size: 1.05rem; }
.sezione-verde .sezione-titolo p { color: rgba(255,255,255,.75); }

/* ---------- PILLOLE (Home) ---------- */
.pillole-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillola {
  background: var(--crema);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.pillola:hover { transform: translateY(-5px); box-shadow: var(--ombra); }

.pillola-icona {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  background: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillola-icona svg { width: 28px; height: 28px; fill: var(--bianco); }

.pillola h3 { margin-bottom: .5rem; }
.pillola p  { color: var(--grigio); font-size: .95rem; }

/* ---------- INTRO STRIP ---------- */
.intro-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-strip .img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--crema-sc);
}
.intro-strip .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.intro-strip .testo .tag { margin-bottom: .6rem; }
.intro-strip .testo h2 { margin-bottom: 1rem; }
.intro-strip .testo p  { color: var(--grigio); margin-bottom: 1.5rem; }

/* ---------- BANNER ESPERIENZA ---------- */
.banner-esperienza {
  background: var(--verde);
  color: var(--bianco);
  padding: 70px 0;
  text-align: center;
}
.banner-esperienza h2 { margin-bottom: 1rem; }
.banner-esperienza p  { max-width: 560px; margin: 0 auto 2rem; opacity: .85; font-size: 1.05rem; }

/* ---------- NUMERI ---------- */
.numeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.numero-item strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--ambra);
  line-height: 1;
}
.numero-item span { font-size: .9rem; color: var(--grigio); }
.sezione-verde .numero-item span { color: rgba(255,255,255,.7); }

/* ---------- PRODOTTI ---------- */
.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.prodotto-card {
  background: var(--bianco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ombra);
  transition: transform .2s;
}
.prodotto-card:hover { transform: translateY(-4px); }

.prodotto-card .img-wrap {
  aspect-ratio: 4/3;
  background: var(--crema-sc);
  overflow: hidden;
}
.prodotto-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.prodotto-card .corpo {
  padding: 1.4rem 1.6rem 1.8rem;
}
.prodotto-card .categoria {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ambra);
  margin-bottom: .4rem;
}
.prodotto-card h3 { margin-bottom: .5rem; font-size: 1.3rem; }
.prodotto-card p  { color: var(--grigio); font-size: .92rem; line-height: 1.6; }

/* ---------- ESPERIENZE ---------- */
.esperienza-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.esperienza-item:last-child { margin-bottom: 0; }
.esperienza-item.inverso { direction: rtl; }
.esperienza-item.inverso > * { direction: ltr; }

.esperienza-item .img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--crema-sc);
}
.esperienza-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.esperienza-info .tag { margin-bottom: .5rem; }
.esperienza-info h2 { margin-bottom: 1rem; }
.esperienza-info p  { color: var(--grigio); margin-bottom: 1.5rem; }

.esperienza-dettagli {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.dettaglio {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--grigio);
  font-weight: 600;
}
.dettaglio svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- CHI SIAMO ---------- */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.valore-item {
  background: var(--crema);
  border-radius: 12px;
  padding: 2rem;
  border-left: 3px solid var(--ambra);
}
.valore-item h3 { margin-bottom: .5rem; color: var(--verde); }
.valore-item p  { color: var(--grigio); font-size: .95rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-card .avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: var(--crema-sc);
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.team-card .ruolo { font-size: .85rem; color: var(--ambra); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- HERO INTERNO (pagine interne) ---------- */
.hero-interno {
  background: var(--verde-sc);
  padding: 140px 0 70px;
  color: var(--bianco);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-interno-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-interno-contenuto { position: relative; z-index: 1; }
.hero-interno .tag { color: rgba(255,255,255,.75); }
.hero-interno h1 { margin-bottom: .8rem; }
.hero-interno p   { font-size: 1.1rem; opacity: .85; max-width: 560px; margin: 0 auto; }

/* ---------- CONTATTI ---------- */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contatti-info h3 { margin-bottom: 1.5rem; }

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
  align-items: flex-start;
}
.info-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--ambra);
  margin-top: 3px;
}
.info-item strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.info-item p, .info-item a { color: var(--grigio); font-size: .95rem; }
.info-item a:hover { color: var(--verde); }

.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
}
.social-link:hover { background: var(--ambra); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; fill: var(--bianco); }

/* ---------- FORM ---------- */
.form-contatto {
  background: var(--bianco);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--ombra);
}
.form-contatto h3 { margin-bottom: 1.8rem; }

.campo {
  margin-bottom: 1.2rem;
}
.campo label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--testo);
}
.campo input,
.campo textarea,
.campo select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--crema-sc);
  border-radius: var(--raggio);
  font-family: 'Nunito Sans', sans-serif;
  font-size: .95rem;
  color: var(--testo);
  background: var(--crema);
  transition: border-color .2s;
  outline: none;
}
.campo input:focus,
.campo textarea:focus,
.campo select:focus { border-color: var(--verde); background: var(--bianco); }
.campo textarea { height: 130px; resize: vertical; }

.campo-gruppo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1c2e22;
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-testo { color: var(--bianco); font-size: 1.6rem; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; line-height: 1.7; }

.footer h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bianco);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--ambra); }

.footer-contatto p { font-size: .9rem; margin-bottom: .5rem; }
.footer-contatto a:hover { color: var(--ambra); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- PLACEHOLDER IMMAGINI ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--verde-sc) 0%, var(--verde) 100%);
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- MAPPA ---------- */
.mappa-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
  height: 350px;
}
.mappa-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .pillole-grid      { grid-template-columns: 1fr; }
  .prodotti-grid     { grid-template-columns: repeat(2, 1fr); }
  .intro-strip       { grid-template-columns: 1fr; }
  .intro-strip .img-wrap { order: -1; }
  .esperienza-item   { grid-template-columns: 1fr; gap: 2rem; }
  .esperienza-item.inverso { direction: ltr; }
  .contatti-grid     { grid-template-columns: 1fr; }
  .numeri-grid       { grid-template-columns: repeat(3, 1fr); }
  .valori-grid       { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 660px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger          { display: flex; }

  .nav-menu.mobile-aperto {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bianco);
    padding: 1.5rem 2rem 2rem;
    gap: 1.2rem;
    box-shadow: var(--ombra);
    border-top: 1px solid var(--crema-sc);
  }
  .nav-menu.mobile-aperto .nav-cta-mobile { display: block; }

  .sezione { padding: 60px 0; }

  .prodotti-grid     { grid-template-columns: 1fr; }
  .campo-gruppo      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .hero-btn-group    { flex-direction: column; }
  .team-grid         { grid-template-columns: 1fr; }
  .numeri-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }
}

/* ---------- ANIMAZIONE SCROLL ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visibile { opacity: 1; transform: none; }
