:root {
  --blush: #dceaf5;
  --terracotta: #c9a15a;
  --cream: #f5f9fc;
  --ink: #2b3a4a;
  --sage: #a9c9e4;
  --white: #ffffff;
  --celeste: #a9c9e4;
  --celeste-dark: #7fb0d9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Dancing Script', Georgia, serif; font-size: 32px; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.logo img { height: 78px; width: auto; display: block; }
footer .logo img { height: 90px; margin: 0 auto; }
nav ul { list-style: none; display: flex; gap: 32px; }
nav > ul > li { position: relative; }
nav a, nav .nav-toggle { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
nav .nav-toggle { cursor: default; }

/* Dropdown Servizi */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px; /* zona invisibile che collega la voce di menu alla tendina, senza interrompere l'hover */
  z-index: 20;
}
nav > ul > li:hover .dropdown { display: block; }
.dropdown-inner {
  background: var(--white);
  min-width: 180px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 8px 0;
}
.dropdown a {
  display: block;
  padding: 10px 22px;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown a:hover { background: var(--cream); color: var(--terracotta); }

/* Hero (homepage) */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,55,80,0.35);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 0 24px; }
.hero-content p.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 18px;
  opacity: 0.9;
}
.hero-content h1 { font-size: 44px; line-height: 1.3; margin-bottom: 24px; }

.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--terracotta);
  color: var(--ink);
  font-weight: bold;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

/* Page header (titolo pagina, pagine interne) */
.page-header {
  position: relative;
  padding: 190px 0 90px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--celeste-dark), var(--ink));
  overflow: hidden;
}
.page-header-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,55,80,0.55);
  z-index: 1;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 18px;
  opacity: 0.9;
}
.page-header h1 { font-size: 42px; line-height: 1.3; }
/* L'occhiello "Servizio fotografico" e il nome del servizio sono entrambi
   dentro l'h1 (un unico titolo per la SEO), ma visivamente restano separati:
   lo span.eyebrow si comporta come prima (piccolo, maiuscolo, riga a parte). */
.page-header h1 .eyebrow {
  display: block;
  font-size: 13px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: normal;
}

/* Intro / descrizione */
.intro {
  padding: 100px 0;
  text-align: center;
}
.intro .container { max-width: 760px; }
.intro .eyebrow {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 16px;
}
.intro h2 { font-size: 32px; margin-bottom: 24px; }
.intro p { font-size: 17px; margin-bottom: 18px; }
.intro p.highlight { font-style: italic; color: var(--terracotta); }

/* Fascia foto di stacco */
.fascia-foto {
  height: 340px;
  background-image: linear-gradient(rgba(30,55,80,0.35), rgba(30,55,80,0.35)), url('fascia-bn.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .fascia-foto { background-attachment: scroll; height: 220px; }
}

/* Servizi (homepage) */
.servizi { padding: 80px 0; background: var(--white); }
.servizi h2 { text-align: center; font-size: 30px; margin-bottom: 12px; }
.servizi .subtitle { text-align: center; color: #7a7167; margin-bottom: 56px; }
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.servizio-card {
  display: block;
  background: var(--cream);
  padding: 36px 28px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s;
}
.servizio-card:hover { transform: translateY(-6px); }
.servizio-card .num {
  font-family: 'Dancing Script', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 8px;
  line-height: 1;
}
.servizio-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.servizio-card p { font-size: 15px; color: #6b6259; }

/* Galleria */
.galleria { padding: 80px 0; background: var(--white); }
.galleria h2 { text-align: center; font-size: 30px; margin-bottom: 56px; }
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.galleria-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/5; }
.galleria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display:block; cursor: zoom-in; }
.galleria-item:hover img { transform: scale(1.06); }
.galleria-item .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Galleria homepage: carosello a pagine di 6 foto */
.galleria-carousel { display: flex; align-items: center; gap: 16px; }
.galleria-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
}
.galleria-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 4px;
}

/* Galleria pagine servizio: tutte le foto, sempre 2 per riga, senza ritaglio */
.galleria-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.galleria-list .galleria-item {
  aspect-ratio: auto;
  border-radius: 12px;
}
.galleria-list .galleria-item img {
  width: 100%;
  height: auto;
  object-fit: initial;
  transition: none;
}
.galleria-list .galleria-item:hover img { transform: none; }

/* Frecce carosello (testimonianze e galleria) */
.testi-arrow, .gal-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  font-size: 22px;
  line-height: 1;
  color: var(--terracotta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.testi-arrow:hover, .gal-arrow:hover { background: var(--celeste); color: var(--ink); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,25,30,0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  font-family: Georgia, serif;
  z-index: 2;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.32); }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-arrow { width: 42px; height: 42px; font-size: 22px; }
  .galleria-list { gap: 14px; }
}

/* Citazione */
.citazione {
  padding: 90px 0;
  text-align: center;
  background: var(--blush);
}
.citazione blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
}

/* Testimonianze - carosello scorrevole */
.testimonianze { padding: 90px 0; }
.testimonianze h2 { text-align: center; font-size: 30px; margin-bottom: 12px; }
.testimonianze .subtitle { text-align: center; color: #7a7167; margin-bottom: 56px; }
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--celeste-dark) transparent;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--celeste-dark); border-radius: 3px; }
.testimonial-track::-webkit-scrollbar-track { background: transparent; }
.testimonial-card {
  flex: 0 0 auto;
  width: min(560px, 82vw);
  scroll-snap-align: start;
  background: var(--cream);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}
.testimonial-card p { font-size: 16px; font-style: italic; margin-bottom: 20px; }
.testimonial-card .autore { font-weight: bold; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: var(--terracotta); }
@media (max-width: 640px) {
  .testi-arrow, .gal-arrow { display: none; }
  .testimonial-card { width: 88vw; }
  .galleria-page { grid-template-columns: repeat(2, 1fr); }
}

/* Contatti */
.contatti { padding: 90px 0; background: var(--white); }
.contatti .container { max-width: 640px; text-align: center; }
.contatti h2 { font-size: 30px; margin-bottom: 12px; }
.contatti .subtitle { color: #7a7167; margin-bottom: 40px; }
.contatti-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.contatti-info .info-item { text-align: center; }
.contatti-info .info-item .label-piccola {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.contatti-info .info-item a, .contatti-info .info-item span { font-size: 16px; }
form { display: grid; gap: 16px; text-align: left; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: block; color: #7a7167; }
form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd3c9;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--cream);
}
form textarea { min-height: 110px; resize: vertical; }
form .btn { border: none; cursor: pointer; justify-self: start; margin-top: 8px; }
/* Campo anti-spam per Netlify Forms: nascosto agli utenti, visibile ai bot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pulsante WhatsApp flottante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  color: var(--white);
}
.whatsapp-float svg { width: 22px; height: 22px; fill: var(--white); flex-shrink: 0; }
@media (max-width: 480px) {
  .whatsapp-float { padding: 12px 18px; font-size: 14px; bottom: 16px; right: 16px; }
}

/* Footer */
footer { background: var(--ink); color: var(--cream); padding: 48px 0 28px; text-align: center; }
footer .logo { color: var(--cream); margin-bottom: 16px; }
footer .social { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; }
footer .social a { font-size: 14px; letter-spacing: 1px; color: var(--blush); }
footer .fine-stampa { font-size: 12px; color: #a89e93; }

/* Menu hamburger (mobile) */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 30;
}
.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle-btn { display: flex; }
  nav {
    position: static;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    padding: 8px 0 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  }
  nav.nav-open ul { display: flex; }
  nav > ul > li { position: static; width: 100%; }
  nav a, nav .nav-toggle {
    display: block;
    padding: 14px 24px;
  }
  .dropdown {
    display: block !important;
    position: static;
    transform: none;
    padding-top: 0;
  }
  .dropdown-inner {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 6px 0;
  }
  .dropdown a {
    padding: 10px 24px 10px 40px;
    color: var(--blush);
  }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

  .hero-content h1 { font-size: 30px; }
  .page-header h1 { font-size: 28px; }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .servizio-card { padding: 24px 14px; }
  .servizio-card .num { font-size: 38px; }
  .galleria-grid { grid-template-columns: repeat(2, 1fr); }
  .contatti-info { gap: 24px; }
  form .row { grid-template-columns: 1fr; }
}
