/* ============================================================
   MOKA CREATIVE STUDIO — style.css
   Struttura:
   1. Variabili (colori, font, spaziature)
   2. Reset & Base
   3. Tipografia
   4. Componenti riutilizzabili
   5. Header & Navbar
   6. Menu mobile (off-canvas)
   7. Sezione Hero
   8. Sezione Studio
   9. Sezione Processo
   10. Sezione Servizi
   11. Sezione Valori
   12. Sezione Progetti
   13. Sezione Recensioni
   14. Sezione FAQ
   15. Footer
   16. Animazioni & Cursor
   17. Media Queries
   ============================================================ */


/* ============================================================
   0. FONT LOCALI (@font-face)
   ============================================================ */

/* DM Sans — 600 */
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-v17-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* DM Sans — 700 */
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-v17-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Inter — 400 */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter — 500 */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Inter — 600 */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Inter — 700 */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   1. VARIABILI
   ============================================================ */
:root {
  /* Palette colori Moka */
  --color-black:       #090705;
  --color-american:    #190b01;
  --color-espresso:    #221711;
  --color-marocchino:  #4A2C1B;
  --color-cappuccino:  #A4693D;
  --color-caffelatte:  #D6B695;
  --color-latte:       #FFF6E4;
  --color-aroma:       #E8560D;
  --color-white:       #ffffff;

  /* Font */
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spaziature sezioni */
  --section-padding-v: 120px;
  --section-padding-h: 48px; /* 12 * 4px = 48px ≈ px-12 */

  /* Transizioni */
  --transition-base:   0.3s ease;
  --transition-smooth: 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal !important;
  text-transform: none !important;
}

html {
  scroll-behavior: smooth;
  cursor: none;
  overflow-x: hidden;
}

body {
  background-color: var(--color-american);
  color: var(--color-latte);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Selezione testo */
::selection {
  background-color: var(--color-aroma);
  color: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}


/* ============================================================
   3. TIPOGRAFIA
   ============================================================ */

/* Titoli display (DM Sans) */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

/* Corpo testo (Inter) */
p, .font-body {
  font-family: var(--font-body);
}

/* Etichetta sezione (es. "Servizi.", "Valori.") */
.section-label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-caffelatte);
}

.section-label span {
  color: var(--color-aroma);
}


/* ============================================================
   4. COMPONENTI RIUTILIZZABILI
   ============================================================ */

/* Contenitore standard con padding orizzontale */
.container {
  width: 100%;
  padding-left: var(--section-padding-h);
  padding-right: var(--section-padding-h);
}

/* Animazione reveal on scroll */
.reveal-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nascondere la scrollbar orizzontale nelle gallerie */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* ============================================================
   5. HEADER & NAVBAR
   ============================================================ */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 4px var(--section-padding-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(25, 11, 1, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 246, 228, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              backdrop-filter 0.4s ease,
              border-color 0.4s ease;
}

/* Trasparente in cima alla hero */
nav#main-nav.nav-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

/* Nasconde la navbar quando si scrolla verso il basso */
nav#main-nav.nav-hidden {
  transform: translateY(-100%);
}

/* Logo nella navbar */
.nav-logo img {
  width: 150px;
  height: auto;
  display: block;
  margin: 4px 0;
}

/* Link centrali della navbar */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 246, 228, 0.9);
  position: relative;
}

.nav-links a span {
  color: var(--color-aroma);
}

/* Sottolineatura animata al hover */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-aroma);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA "Contattaci" a destra */
.nav-cta {
  display: flex;
  justify-content: flex-end;
}

/* ── Pill CTA — base ── */
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-espresso);
  background-image: url('../assets/images/Background-light1.jpg');
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.cta-pill span {
  color: var(--color-espresso);
}

/* Hover desktop: passa a dark */
@media (hover: hover) {
  .cta-pill:hover {
    color: var(--color-latte);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .cta-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/Background-dark2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
  }

  .cta-pill:hover::before {
    opacity: 1;
  }

  .cta-pill:hover span {
    color: var(--color-latte);
  }
}

/* ── Variante mobile (off-canvas) ── */
.cta-pill--mobile {
  font-size: 26px;
  padding: 14px 36px;
}

/* Active state touch */
.cta-pill--mobile:active {
  opacity: 0.8;
}

/* Contenitore CTA nell'off-canvas */
.off-canvas-cta {
  margin-top: 48px;
}

/* Bottone burger (solo mobile) */
.burger-btn {
  display: none;
  padding: 8px;
  color: var(--color-latte);
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  margin-bottom: 6px;
}

.burger-btn span:last-child {
  margin-bottom: 0;
}


/* ============================================================
   6. MENU MOBILE (off-canvas)
   ============================================================ */
#off-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: var(--color-american);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  display: flex;
  flex-direction: column;
  padding: 32px;
  color: var(--color-latte);
}

#off-canvas.open {
  transform: translateX(0);
}

.off-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

.off-canvas-header img {
  height: 40px;
  width: auto;
}

.close-btn {
  font-size: 36px;
  font-weight: 300;
  color: var(--color-latte);
  line-height: 1;
}

.off-canvas-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.off-canvas-links a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-latte);
}

.off-canvas-links a span {
  color: var(--color-aroma);
}


/* ============================================================
   7. SEZIONE HERO
   ============================================================ */
header.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--section-padding-h) 80px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 246, 228, 0.05);
  background-color: var(--color-american);
  overflow: hidden;
}

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay scuro per leggibilità testi */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 5, 0.55);
  z-index: 1;
}

/* Contenuto sopra video e overlay */
header.hero > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: flex-end;
  gap: 48px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 7.5vw, 105px);
  font-weight: 700;
  line-height: 1em;
  letter-spacing: -0.04em;
  color: var(--color-latte);
}

.hero-title span {
  color: var(--color-aroma);
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-links a {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--color-caffelatte);
  border-bottom: 2px solid var(--color-caffelatte);
  line-height: 1.2;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.hero-links a span {
  color: var(--color-aroma);
}

.hero-links a:hover {
  color: var(--color-latte);
  border-color: var(--color-latte);
}


/* ============================================================
   8. SEZIONE STUDIO
   ============================================================ */
#studio {
  padding: var(--section-padding-v) var(--section-padding-h);
  background-color: var(--color-american);
}

#studio .studio-label {
  margin-bottom: 40px;
}

#studio .studio-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  color: var(--color-latte);
  line-height: 1.15;
  opacity: 0.9;
  cursor: default;
  transition: opacity var(--transition-base);
}

#studio .studio-text:hover {
  opacity: 1;
}


/* ============================================================
   9. SEZIONE PROCESSO
   ============================================================ */
#metodo {
  padding-top: var(--section-padding-v);
  padding-bottom: 90px;
  padding-left: var(--section-padding-h);
  padding-right: var(--section-padding-h);
  background-color: var(--color-latte);
  color: var(--color-espresso);
}

#metodo .section-label {
  color: var(--color-cappuccino);
  margin-bottom: 24px;
}

.processo-item {
  display: grid;
  grid-template-columns: 20% 40% 1fr;
  gap: 0 32px;
  padding: 60px 0;
  align-items: start;
}

.processo-item + .processo-item {
  border-top: 1px solid var(--color-cappuccino);
}

.processo-numero {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 700;
  color: var(--color-cappuccino);
  line-height: 1;
}

.processo-numero span {
  color: var(--color-aroma);
}

.processo-titolo {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 45px);
  font-weight: 700;
  color: var(--color-marocchino);
  line-height: 1.1;
}

.processo-titolo span {
  color: var(--color-aroma);
}

.processo-testo {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-american);
  line-height: 1.6;
  padding-top: 16px;
}


/* ============================================================
   10. SEZIONE SERVIZI
   ============================================================ */
#servizi {
  padding: var(--section-padding-v) var(--section-padding-h);
  background-color: var(--color-white);
  color: var(--color-american);
}

#servizi .section-label {
  color: var(--color-cappuccino);
  margin-bottom: 64px;
}

/* Layout desktop: lista a sinistra + anteprima a destra */
.servizi-desktop {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 48px;
  align-items: start;
}

.servizi-lista {
  border-top: 1px solid rgba(255, 246, 228, 0.2);
}

.service-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 246, 228, 0.1);
  cursor: pointer;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 700;
  color: var(--color-caffelatte);
  line-height: 1;
  transition: color 0.2s ease;
}

.service-item:hover h3 {
  color: var(--color-marocchino);
}

/* Anteprima sticky a destra */
.servizi-preview {
  position: sticky;
  top: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servizi-preview-img-wrap {
  width: 85%;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.servizi-preview-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

#service-preview-desc {
  width: 85%;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-american);
  line-height: 1.5;
  opacity: 0.7;
}

/* Accordion servizi (solo mobile) */
.servizi-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255, 246, 228, 0.2);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 246, 228, 0.1);
  padding: 16px 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-espresso);
}

.icon-plus {
  position: relative;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.icon-plus::before,
.icon-plus::after {
  content: '';
  position: absolute;
  background-color: var(--color-aroma);
  border-radius: 2px;
}

.icon-plus::before {
  width: 100%;
  height: 2px;
}

.icon-plus::after {
  width: 2px;
  height: 100%;
  transition: transform 0.5s ease;
}

.accordion-item.active .icon-plus {
  transform: rotate(45deg);
}

.accordion-item.active .icon-plus::after {
  transform: scaleY(0);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  transition: max-height 0.5s ease-in-out;
}

.accordion-content p {
  padding: 16px 0;
  font-size: 16px;
  color: var(--color-american);
  opacity: 0.8;
  line-height: 1.6;
}


/* ============================================================
   11. SEZIONE VALORI
   ============================================================ */
#valori {
  padding: var(--section-padding-v) var(--section-padding-h);
  background-color: var(--color-american);
  border-top: 1px solid rgba(255, 246, 228, 0.05);
}

.valori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 96px;
  align-items: start;
}

.valori-label-col {
  padding-top: 8px;
}

.valori-lista {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.valore-item h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 700;
  color: var(--color-latte);
  margin-bottom: 16px;
  line-height: 1.1;
}

.valore-item h3 span {
  color: var(--color-aroma);
}

.valore-item p {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-caffelatte);
  line-height: 1.6;
}


/* ============================================================
   12. SEZIONE PROGETTI
   ============================================================ */
#progetti {
  padding-top: 64px;
  padding-bottom: var(--section-padding-v);
  background-color: var(--color-american);
  border-top: 2px solid #443428;
}

.progetti-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 0 var(--section-padding-h);
  align-items: start;
}

.progetti-label-col {
  position: sticky;
  top: 128px;
  height: fit-content;
}

.progetti-lista {
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.progetto-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Scroll orizzontale immagini progetto */
.progetto-gallery {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 4px 0;
}

.progetto-gallery-item {
  flex: none;
  width: 65%;
  height: 35vh;
}

.progetto-gallery-item img,
.progetto-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

/* Info testuale del progetto */
.progetto-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.progetto-titolo {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--color-latte);
  margin-bottom: 24px;
  line-height: 1.1;
}

.progetto-desc {
  font-size: 16px;
  color: var(--color-cappuccino);
  line-height: 1.6;
  max-width: 560px;
}

.progetto-tag h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-latte);
  font-size: 20px;
  margin-bottom: 12px;
}

.progetto-tag p {
  font-size: 12px;
  color: var(--color-cappuccino);
  letter-spacing: 2px;
  text-transform: none;
}

.progetto-divider {
  border: none;
  border-top: 2px solid rgba(255, 246, 228, 0.1);
}

/* Label mobile (visibile solo su mobile) */
.progetti-label-mobile {
  display: none;
  margin-bottom: 16px;
}


/* ============================================================
   13. SEZIONE CLIENTI
   ============================================================ */

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#clienti {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  min-height: 50vh;
  padding: 64px 0;
  overflow: hidden;
}

.clienti-header {
  padding: 0 var(--section-padding-h);
}

.clienti-header .section-label {
  color: var(--color-cappuccino);
}

.clienti-marquee-wrap {
  width: 100%;
  overflow: hidden;
}

.clienti-track {
  display: flex;
  align-items: center;
  gap: 8vw;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.clienti-track img {
  height: 65px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%) invert(1) brightness(0);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.clienti-track img:hover {
  opacity: 1;
}

/* Agripay: sfondo nero + logo bianco → screen rende il nero trasparente */
.clienti-track img[alt="Agripay"] {
  filter: none;
  mix-blend-mode: screen;
  opacity: 0.45;
  height: 45px;
}
.clienti-track img[alt="Agripay"]:hover {
  opacity: 1;
}

/* Ami: JPG b/n con sfondo grigio → screen dissolve il bg nel dark */
.clienti-track img[alt="Ami"] {
  filter: grayscale(100%) brightness(1.4);
  mix-blend-mode: screen;
  opacity: 0.8;
}
.clienti-track img[alt="Ami"]:hover {
  opacity: 1;
}


/* ============================================================
   14. SEZIONE RECENSIONI
   ============================================================ */
#recensioni {
  padding: var(--section-padding-v) 0;
  background-color: var(--color-latte);
  color: var(--color-marocchino);
  overflow: hidden;
}

.recensioni-header {
  display: grid;
  grid-template-columns: 3fr 1fr;
  padding: 0 var(--section-padding-h);
  align-items: center;
  margin-bottom: 64px;
}

.recensioni-header .section-label {
  color: var(--color-cappuccino);
}

.recensioni-controls {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.recensioni-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-marocchino);
  transition: color var(--transition-base), transform 0.2s ease;
}

.recensioni-controls button svg {
  width: 40px;
  height: 40px;
}

.recensioni-controls button svg circle {
  stroke-width: 1;
}

.recensioni-controls button svg path {
  stroke-width: 1;
}

.recensioni-controls button:hover {
  color: var(--color-aroma);
  transform: scale(1.1);
}

.recensioni-track-wrap {
  padding: 0 var(--section-padding-h);
  overflow: hidden;
}

#review-track {
  display: flex;
  transition: transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.review-slide {
  flex: none;
  width: 75%;
  padding-right: 96px;
  opacity: 0.4;
  transition: opacity 600ms ease;
}

.review-slide blockquote {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 48px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.review-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(74, 44, 27, 0.2);
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-cappuccino);
  line-height: 1;
  letter-spacing: 0.05em;
}

.review-role {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(164, 105, 61, 0.7);
  letter-spacing: 2px;
  margin-top: 8px;
}


/* ============================================================
   14. SEZIONE FAQ
   ============================================================ */
#faq {
  padding: var(--section-padding-v) var(--section-padding-h);
  background-color: var(--color-white);
  color: var(--color-american);
}

.faq-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: start;
}

.faq-label-col {
  position: sticky;
  top: 128px;
  height: fit-content;
}

.faq-label-col .section-label {
  color: var(--color-cappuccino);
  font-size: 16px;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid rgba(34, 23, 17, 0.1);
  cursor: pointer;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

.faq-header h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--color-cappuccino);
  line-height: 1.2;
  transition: color var(--transition-base);
}

.faq-item:hover .faq-header h3 {
  color: var(--color-marocchino);
}

.faq-item.active .faq-header h3 {
  color: var(--color-espresso);
}

/* Icona + / × */
.icon-plus-faq {
  position: relative;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.icon-plus-faq::before,
.icon-plus-faq::after {
  content: '';
  position: absolute;
  background-color: var(--color-aroma);
  border-radius: 2px;
}

.icon-plus-faq::before {
  width: 100%;
  height: 3px;
}

.icon-plus-faq::after {
  width: 3px;
  height: 100%;
  transition: transform 0.5s ease;
}

.faq-item.active .icon-plus-faq {
  transform: rotate(45deg);
}

.faq-item.active .icon-plus-faq::after {
  transform: scaleY(0);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 300px;
  transition: max-height 0.5s ease-in-out;
}

.faq-content p {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  color: rgba(74, 44, 27, 0.8);
  padding-bottom: 40px;
  max-width: 700px;
  line-height: 1.6;
}

/* Label mobile FAQ */
.faq-label-mobile {
  display: none;
  margin-bottom: 48px;
}


/* ============================================================
   14b. SEZIONE CONTATTI
   ============================================================ */
#contatti {
  background-color: var(--color-latte);
  color: var(--color-espresso);
  padding: var(--section-padding-v) var(--section-padding-h);
}

.contatti-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* — Colonna sinistra — */
.contatti-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

#contatti .section-label {
  color: var(--color-cappuccino);
}

.contatti-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-american);
}

.contatti-title span {
  color: var(--color-aroma);
}

.contatti-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-marocchino);
  max-width: 420px;
}

/* Social proof */
.contatti-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.proof-avatars {
  display: flex;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-latte);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-latte);
  margin-left: -10px;
  flex-shrink: 0;
}

.proof-avatars .proof-avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-marocchino);
  line-height: 1.4;
  max-width: 180px;
}

/* — Colonna destra: form — */
.contatti-right {
  padding-top: 8px;
}

.contatti-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-cappuccino);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-espresso);
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-cappuccino);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-espresso);
}

/* Fieldset / legenda */
.form-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-fieldset legend {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-cappuccino);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* Pill radio buttons (budget fieldset) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-label {
  cursor: pointer;
}

.pill-label input[type="radio"] {
  display: none;
}

.pill-label span {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--color-cappuccino);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-marocchino);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.pill-label input[type="radio"]:checked + span {
  background-color: var(--color-espresso);
  color: var(--color-latte);
  border-color: var(--color-espresso);
}

.pill-label:hover span {
  border-color: var(--color-espresso);
  color: var(--color-espresso);
}

/* Toggle accordion servizio */
.form-fieldset--accordion {
  gap: 0;
}

.servizio-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 100px;
  border: 1px solid var(--color-cappuccino);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-marocchino);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.servizio-toggle:hover {
  border-color: var(--color-espresso);
  color: var(--color-espresso);
}

.servizio-toggle[aria-expanded="true"] {
  border-radius: 16px 16px 0 0;
  border-color: var(--color-espresso);
  color: var(--color-espresso);
}

.servizio-toggle-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.servizio-toggle[aria-expanded="true"] .servizio-toggle-arrow {
  transform: rotate(180deg);
}

.servizio-toggle--selected {
  border-color: var(--color-espresso);
  background-color: var(--color-espresso);
  color: var(--color-latte);
}

.servizio-toggle--selected:hover {
  color: var(--color-latte);
  border-color: var(--color-espresso);
}

.servizio-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-radius: 0 0 16px 16px;
}

.servizio-accordion.open {
  max-height: 400px;
}

.servizio-option {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-marocchino);
  border-top: 1px solid rgba(164, 105, 61, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.servizio-option:first-child {
  border-top: none;
}

.servizio-option:hover {
  background-color: rgba(164, 105, 61, 0.08);
  color: var(--color-espresso);
}

.servizio-option input[type="radio"] {
  display: none;
}

.servizio-option input[type="radio"]:checked + span {
  color: var(--color-aroma);
}

/* Submit */
.contatti-submit {
  width: 100%;
  padding: 18px 32px;
  border-radius: 100px;
  background-color: var(--color-espresso);
  color: var(--color-latte);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  margin-top: 8px;
}

.contatti-submit:hover {
  background-color: var(--color-cappuccino);
  transform: translateY(-1px);
}

.form-note {
  font-size: 12px;
  color: var(--color-cappuccino);
  text-align: center;
  margin-top: -16px;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
footer#footer {
  background-color: #000;
  color: var(--color-latte);
  padding-top: var(--section-padding-v);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px 96px;
  padding: 0 var(--section-padding-h);
  align-items: start;
  margin-bottom: 128px;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 100px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
}

.footer-headline span {
  color: var(--color-aroma);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  color: var(--color-latte);
  border-bottom: 2px solid var(--color-aroma);
  padding-bottom: 8px;
  transition: border-color 0.5s ease;
}

.footer-cta .arrow {
  color: var(--color-aroma);
  display: inline-block;
  transition: transform 0.5s ease;
}

.footer-cta:hover {
  border-color: var(--color-latte);
}

.footer-cta:hover .arrow {
  transform: translateX(16px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-cappuccino);
  margin-bottom: 40px;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col nav a {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--color-latte);
  transition: color var(--transition-base);
}

.footer-col nav a:hover {
  color: var(--color-aroma);
}

/* Riga copyright */
.footer-bottom {
  padding: 0 var(--section-padding-h);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.4;
}

.footer-legal {
  display: flex;
  gap: 40px;
}

.footer-legal a {
  transition: opacity var(--transition-base);
}

.footer-legal a:hover {
  opacity: 1;
}

/* Logo grande in fondo */
.footer-logo-bottom {
  width: 100%;
  line-height: 0;
  padding: 0;
  margin: 0;
}

.footer-logo-bottom img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   16. CURSOR CUSTOM
   ============================================================ */
#cursor {
  width: 15px;
  height: 15px;
  background: var(--color-aroma);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* Nessuna transition CSS: il movimento è gestito da LERP in main.js */
}


/* ============================================================
   17. MEDIA QUERIES
   ============================================================ */

/* Tablet e mobile (sotto 768px) */
@media (max-width: 768px) {

  :root {
    --section-padding-h: 24px;
    --section-padding-v: 80px;
  }

  /* Navbar */
  nav#main-nav {
    padding: 4px var(--section-padding-h);
  }

  .nav-logo img {
    height: 55px;
    width: auto;
  }

  .off-canvas-header img {
    height: 55px;
    width: auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  /* Cursor nascosto su mobile */
  #cursor {
    display: none;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-links {
    align-items: flex-start;
  }

  /* Processo */
  .processo-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .processo-testo {
    padding-top: 0;
  }

  /* Servizi */
  .servizi-desktop {
    display: none;
  }

  .servizi-mobile {
    display: flex;
  }

  /* Valori */
  .valori-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Progetti */
  .progetti-wrapper {
    grid-template-columns: 1fr;
    padding: 0; /* il padding lo gestiscono i singoli elementi testuali */
  }

  .progetti-label-col {
    display: none;
  }

  .progetti-label-mobile {
    display: block;
    padding: 0 var(--section-padding-h);
  }

  .progetto-info {
    padding: 0 var(--section-padding-h);
    grid-template-columns: 1fr;
  }

  /* Outer: fa il clipping senza bloccare lo scroll interno */
  .progetto-gallery-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
  }

  /* Gallery: scorre orizzontalmente dentro l'outer */
  .progetto-gallery {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--section-padding-h);
    gap: 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .progetto-gallery-item {
    width: 80vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .progetti-lista {
    gap: 64px;
  }

  /* Recensioni */
  .recensioni-track-wrap {
    overflow: hidden;
    padding: 0 var(--section-padding-h);
  }

  #review-track {
    gap: 20px;
  }

  .review-slide {
    width: 100%;
    flex-shrink: 0;
    padding-right: 0;
  }

  /* Icone accordion (Servizi + FAQ) */
  .icon-plus,
  .icon-plus-faq {
    width: 16px;
    height: 16px;
  }

  /* FAQ */
  .faq-wrapper {
    grid-template-columns: 1fr;
  }

  .faq-label-col {
    display: none;
  }

  .faq-label-mobile {
    display: block;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 64px 32px;
  }

  .footer-cta-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-center {
    display: none;
  }
}

/* ============================================================
   DOVE SIAMO
============================================================ */
#dove-siamo {
  background: #190b01;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.dove-siamo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding-v) var(--section-padding-h);
  align-items: center;
}

#dove-siamo .section-label {
  color: var(--color-cappuccino);
  margin-bottom: 2rem;
}

.dove-siamo-citta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.citta-item {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-cappuccino);
  cursor: pointer;
  line-height: 1.15;
  opacity: 0.35;
  transition: opacity 0.4s ease-in-out, color 0.4s ease-in-out;
}

.citta-item.active {
  opacity: 1;
  color: var(--color-latte);
}

.dove-siamo-mappa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dove-siamo-mappa svg {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

/* Transizioni SVG regioni */
#Lazio path,
#Toscana path,
#Emilia-Romagna path {
  transition: fill 0.4s ease-in-out;
}

#Lazio.active path,
#Toscana.active path,
#Emilia-Romagna.active path {
  fill: var(--color-cappuccino);
}

#Lazio,
#Toscana,
#Emilia-Romagna {
  cursor: pointer;
}

/* Punti città */
#Punto-roma circle,
#Punto-Prato circle,
#Punto-bologna circle {
  transition: r 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0.4;
}

#Punto-roma.active circle,
#Punto-Prato.active circle,
#Punto-bologna.active circle {
  opacity: 1;
}

/* Mobile: mappa sopra, testi sotto */
@media (max-width: 768px) {
  .dove-siamo-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dove-siamo-mappa {
    order: -1;
  }

  .dove-siamo-mappa svg {
    max-height: 57vh;
  }

  .citta-item {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* Clienti mobile */
@media (max-width: 768px) {
  .clienti-track {
    gap: 16vw;
  }

  .clienti-track img {
    height: 55px;
  }

  .clienti-track img[alt="Agripay"] {
    height: 40px;
  }
}

/* Contatti mobile */
@media (max-width: 768px) {
  .contatti-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contatti-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .contatti-submit {
    font-size: 16px;
    padding: 16px 24px;
  }
}
