/* RESET DI BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050711;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Skip link visibility */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 10000;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Focus-visible for keyboard users */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Better visible focus for .btn */
.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(0,201,255,0.12);
}

/* COLORI / VARIABILI */
:root {
  --bg-main: #050711;
  --bg-alt: #0c1020;
  --bg-card: #131729;
  --accent: #00c9ff;
  --accent-soft: rgba(0, 201, 255, 0.15);
  --text-main: #f5f7ff;
  --text-muted: #a3b1d1;
  --border-subtle: rgba(255, 255, 255, 0.06);
}

/* HEADER / NAVBAR */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 7, 17, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}/* LOGO */

.logo img {
  height: 72px;          /* desktop */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Navigazione desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

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

.nav-cta {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Rimuove la linea decorativa (::after) per il pulsante Contatti */
.nav-cta::after {
  display: none;
}
.nav-cta:hover::after {
  width: 0;
}

/* Burger menu (di default nascosto su desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  display: block;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 72px; /* spazio per l'header */
  background-image: url("immagini/background/herocc.png");
  background-size: cover;
  background-position: center;
  color: var(--text-main);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 201, 255, 0.35), transparent),
    linear-gradient(to bottom, rgba(5, 7, 17, 0.9), rgba(5, 7, 17, 1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10vh 5vw 6vh;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

/* BOTTONI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #050711;
  box-shadow: 0 12px 30px rgba(0, 201, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 201, 255, 0.4);
}

.btn.ghost {
  border-color: var(--accent-soft);
  background: rgba(3, 6, 20, 0.75);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: rgba(5, 7, 17, 0.9);
}

.btn.full-width {
  width: 100%;
}

/* Badge */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(10, 14, 35, 0.9);
  border: 1px solid var(--border-subtle);
  min-width: 220px;
}

.badge-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.badge-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SEZIONI GENERALI */
.section {
  padding: 5rem 5vw;
}

/* Evita che le ancore (#consulenza, ecc.) finiscano sotto l'header fisso */
/* applichiamo un offset di scroll alle sezioni principali */
.section, .gallery-section, .privacy-section {
  scroll-margin-top: 90px; /* spaziatura corrispondente all'header (75px) + margine di sicurezza */
}

.section-dark {
  background: var(--bg-main);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner.section-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.section p {
  color: var(--text-muted);
}

/* Cards servizi */
.section-text {
  margin-bottom: 2rem;
}

/* Paragrafo descrittivo sotto le card servizi: card scura, bordo accentato */
.work-types {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.work-types p {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  width: 100%;
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--accent);
}

@media (max-width: 600px) {
  .work-types p {
    padding: 0.85rem 0.9rem;
    font-size: 0.96rem;
    border-left-width: 4px;
  }
}

/* Sezione con padding verticale ridotto per avvicinare il paragrafo agli elementi adiacenti */
.section-tight {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

/* Ripristino posizionamento normale: nessuna sovrapposizione con la sezione precedente */
.section + .section-tight {
  margin-top: 0;
}

@media (max-width: 480px) {
  .section + .section-tight {
    margin-top: 0;
  }
  .section-tight {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.92rem;
}

/* ======================
   GALLERY / ALBUMS
====================== */

.gallery-section {
  padding: 6rem 5vw;
  background: #050711; /* stesso dark del sito */
}

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.album-card {
  position: relative;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.15)
  );
}

.album-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.album-overlay h3 {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.album-card:hover img {
  transform: scale(1.08);
}

.album-card:hover .album-overlay h3 {
  color: var(--accent); /* colore brand AXES */
}

/* Checklist */
.checklist {
  list-style: none;
  margin-top: 1.4rem;
  color: var(--text-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
  color: var(--accent);
}

/* FORM */
.form-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #060818;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6d7793;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 201, 255, 0.25);
}

.form-note {
  font-size: 0.75rem;
  margin-top: 0.7rem;
  color: var(--text-muted);
}

/* Stacca il pulsante di invio dal blocco del consenso/privacy */
.form-card form button[type="submit"] {
  margin-top: 12px;
}

/* FOOTER */
.footer {
  background: #040510;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.8rem 5vw 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer p,
.footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 5vw 1.4rem;
  font-size: 0.75rem;
  color: #6c7694;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .trust-bg1 {
    background-size: 320px auto;
    opacity: 0.22;
  }
}

@media (max-width: 768px) {
  .trust-bg1 {
    display: none;
  }
}
@media (max-width: 900px) {
  .section-inner.section-two-cols {
    grid-template-columns: 1fr;
  }

  .section-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hero-content {
    padding-top: 16vh;
  }
}

/* MOBILE / TABLET: menu a tendina + hamburger */
@media (max-width: 1024px) {
  .header {
    padding: 0 1.25rem;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 1rem;
  }

    .logo img {
    height: 34px;        /* mobile */
  }

  /* La nav NON sta più nella riga dell'header,
     ma diventa un pannello che si apre sotto */
 .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;                /* nascosta di default */
    flex-direction: column;
    align-items: center;          /* centra il contenuto */
    background: rgba(5, 7, 17, 0.98);
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav.open {
    display: flex;           /* si vede solo quando JS mette .open */
  }

    .nav-link {
    padding: 0.6rem 0;
    width: 100%;
    text-align: center;          /* testo centrato */
  }

 /* Contatti: stessa posizione degli altri */
  .nav-cta {
    margin-top: 0.4rem;
    align-self: center;          /* non più a sinistra */
  }

  /* Mostra il burger */
  .nav-toggle {
    display: flex;
  }

  /* Sistemiamo anche alcune sezioni per schermi piccoli */
  .section-inner.section-two-cols {
    grid-template-columns: 1fr;
  }

  .section-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 16vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges {
    flex-direction: column;
  }
}

/* ======================
   ON SCROLL ANIMATION
====================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   MODALE GALLERIA
====================== */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow: hidden; 
}

.gallery-modal.open {
  display: flex;
}

.modal-content {
 position: relative;
  box-sizing: border-box;
  max-width: 92vw;
  max-height: 90vh;
  background: #050711;
  border-radius: 14px;
  padding: 1.5rem;
  overflow: hidden; 
}

.close-modal {
  position: fixed; /* sempre visibile rispetto al viewport */
  top: 18px;
  right: 18px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 11000; /* sopra tutti gli elementi della pagina e della modale */
  background: transparent; /* rimuove lo sfondo mantenendo solo la X */
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-shadow: none;
}

/* Icona di chiusura: rendi l'SVG piccolo e incolore (inherita il colore della X)
   e assicurati che non abbia sfondo */
.close-modal .close-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: none;
}

/* Nascondi il testo visivamente ma mantienilo disponibile per assistive tech */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative; /* necessario per overlay play positioned absolute */
}

.modal-gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  touch-action: pan-y;
  user-select: none;
}

/* Stili specifici per quando la modale contiene un video singolo */
.modal-gallery.is-video {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: none; /* annulla il comportamento a griglia */
}

.modal-gallery.is-video video {
  max-width: 100%;
  width: 100%;
  max-height: 78vh; /* lascia spazio per padding e pulsanti */
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #000; /* evita bande bianche su video con proporzioni diverse */
}

/* Assicuriamoci che il contenuto video non crei scroll orizzontale */

/* Lazy loading images */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Pinch-to-zoom image */
.zoomable {
  touch-action: pan-y;
  max-width: 100%;
  max-height: 75vh;
  user-select: none;
  cursor: grab;
  transition: transform 0.15s ease;
}

.zoomable:active {
  cursor: grabbing;
}

/* Overlay play per video nella modal (centrato) */

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto; /* solo il bottone è cliccabile */
}

.video-play-overlay .play-btn {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(0, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 0.12s ease, background 0.12s ease;
  cursor: pointer;
  pointer-events: auto;
}

.video-play-overlay .play-btn:hover {
  transform: scale(1.05);
  background: rgba(0, 201, 255, 0.18);
}

.video-play-overlay svg {
  width: 40px;
  height: 40px;
  fill: var(--accent);
}

.video-play-overlay.hidden { display: none; }

/* ======================
   FORM CONSENSO GDPR
====================== */
.form-consent {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-consent label {
  display: flex;
  align-items: center; /* allinea checkbox e testo alla stessa altezza */
  gap: 0.6rem;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  accent-color: var(--accent); /* colore brand AXES */
  margin-top: 0px; /* leggero spostamento verso l'alto */
}

.form-consent span {
  line-height: 1.4;
}

/* ======================
   PRIVACY POLICY
====================== */
.privacy-section {
  padding: 6rem 5vw;
  background: #050711;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main);
}

.privacy-container h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.privacy-container h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  color: var(--accent);
}

.privacy-container p,
.privacy-container li {
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-container ul {
  padding-left: 1.2rem;
}

.privacy-container a {
  color: var(--accent);
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}
/* ======================
   GALLERY NAV BUTTONS
====================== */
.gallery-nav {
  position: fixed; /* sempre relativo alla pagina */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 201, 255, 0.15);
  border: 1px solid rgba(0, 201, 255, 0.4);
  color: #fff;
  font-size: 2rem;
  width: 64px; /* più grandi per facilità d'uso */
  height: 64px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 5000; /* sotto la X fissata */
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.gallery-nav:hover {
  background: rgba(0, 201, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
  /* posiziona a sinistra rispetto al centro della pagina sottraendo metà della max-width della modal (92vw/2 = 46vw)
     + un offset per staccarlo dal bordo della modale */
  left: calc(50% - 46vw - 46px);
}

.gallery-nav.next {
  /* simmetrico: distanza dal bordo destro della pagina */
  right: calc(50% - 46vw - 46px);
}

/* Nascondi bottoni se una sola immagine */
.gallery-nav.hidden {
  display: none;
}

/* Mobile: pulsanti leggermente più piccoli e posizionati vicino ai bordi */
@media (max-width: 768px) {
  .gallery-nav {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    z-index: 5000;
  }
  .gallery-nav.prev { left: 12px; }
  .gallery-nav.next { right: 12px; }
}

/* Nascondi i bottoni di navigazione della galleria su Mobile + Tablet
   (mantieni visibili su Desktop) */
@media (max-width: 1024px) {
  .gallery-nav {
    display: none !important;
    pointer-events: none;
  }
}

/* Nascondi il tasto play overlay su Mobile/Tablet */
@media (max-width: 1024px) {
  .video-play-overlay,
  .video-play-overlay .play-btn {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ======================
   TRUST PANEL
====================== */
.trust-panel {
  position: relative;
  z-index: 2;
  background: rgba(10, 14, 35, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2rem 1.8rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

/* Silhouette tecnica */
.trust-bg1 {
   position: absolute;
  top: 0;
  right: 0;
  height: 100%;          /* copre TUTTA l’altezza */
  width: 45%;            /* solo una porzione orizzontale */

  background: url("immagini/ui/silhouette-rope.png") no-repeat right bottom;
  background-size: contain;

  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}


.trust-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;          /* copre TUTTA l’altezza */
  width: 55%;            /* leggermente più ampia */

  background: url("immagini/ui/silhouette-rope.png") no-repeat right bottom;
  background-size: contain;

  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}


/* Titolo */
.trust-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* Lista trust */
.trust-list {
  list-style: none;
  margin-bottom: 2rem;
}

.trust-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Timeline */
.trust-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-left: 1px solid var(--accent-soft);
  padding-left: 1.2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================
   FOOTER SOCIAL ICONS
====================== */
.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover .social-icon {
  fill: var(--accent);
  transform: translateY(-2px);
}

/* ======================
   MOBILE: NASCONDI CONTROLLI GALLERIA / VIDEO
====================== */
@media (max-width: 768px) {

  /* Frecce / bottoni scorrimento immagini */
  .gallery-nav,
  .gallery-prev,
  .gallery-next {
    display: none !important;
  }

  /* Pulsante play video */
  .video-play,
  .play-button {
    display: none !important;
  }

}

/* Ulteriore correzione: su mobile/tablet forziamo il centraggio dei video
   nella modale e limitiamo le dimensioni per evitare spostamenti */
@media (max-width: 1024px) {
  .modal-gallery.is-video {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 auto !important;
  }

  .modal-gallery.is-video video {
    display: block !important;
    margin: 0 auto !important;
    max-width: calc(100vw - 48px) !important; /* lascia spazio per i bordi/padding */
    width: auto !important;
    max-height: calc(100vh - 120px) !important; /* evita overflow verticale */
    object-fit: contain !important;
    transform: none !important;
  }

  /* Riduciamo leggermente il padding della modale su schermi piccoli */
  .modal-content {
    padding: 0.75rem !important;
  }
}

@media (max-width: 1024px) {
  .trust-bg1,
  .trust-bg {
    width: 70%;
    opacity: 0.2;
  }
}

/* Attribution Flaticon – discreta ma legale */
.icon-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.45rem;        /* più piccola ma leggibile */
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.75;
  text-align: center;
}

.icon-credit a {
  color: var(--text-muted);
  text-decoration: none;
}

.icon-credit a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile: ancora più compatta */
@media (max-width: 768px) {
  .icon-credit {
    font-size: 0.6rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* fine file */
