/* ==========================================================================
   gargaDesign — stylesheet
   Full-screen, design-forward, big display type, overlay menu top-right
   ========================================================================== */

:root {
  --ink: #0e0f0c;
  --paper: #f6f5f1;
  --accent: #c7ff3f;
  --muted: #8a8a82;
  --line: rgba(246, 245, 241, 0.18);

  --font-display: "Syne", "Arial Black", sans-serif;
  --font-accent: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.hero .eyebrow {
  color: var(--paper);
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 6vw;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 1.5rem;
  width: auto;
  display: block;
  filter: none;
  transition: filter 0.25s ease;
}

/* Sopra una sezione chiara (sfondo --paper) il logo bianco diventa scuro
   per restare leggibile; sopra l'hero e le sezioni scure resta bianco */
.topbar.is-light .brand-logo {
  filter: brightness(0);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.topbar.is-light .menu-toggle {
  color: var(--ink);
}

/* ---------- Selettore lingua IT/EN ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  transition: color 0.25s ease;
}

.topbar.is-light .lang-switch { color: var(--ink); }

.lang-switch a {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.is-active {
  opacity: 1;
}

.lang-switch span {
  opacity: 0.35;
}

.menu-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.menu-toggle .bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.menu-toggle.is-open .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .bars span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Overlay nav (menu a comparsa) ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(.77,0,.18,1), opacity 0.4s ease, visibility 0.55s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-overlay__list li {
  overflow: hidden;
}

.nav-overlay__list a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.15;
  color: var(--paper);
  padding: 0.15em 0;
  transition: color 0.25s ease, transform 0.4s ease;
  transform: translateY(110%);
}

.nav-overlay.is-open .nav-overlay__list a { transform: translateY(0); }
.nav-overlay.is-open .nav-overlay__list li:nth-child(1) a { transition-delay: .08s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(2) a { transition-delay: .14s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(3) a { transition-delay: .20s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(4) a { transition-delay: .26s; }
.nav-overlay.is-open .nav-overlay__list li:nth-child(5) a { transition-delay: .32s; }

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

.nav-overlay__foot {
  position: absolute;
  bottom: 2.4rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,15,12,0.35) 0%, rgba(14,15,12,0.15) 35%, rgba(14,15,12,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 6vw 0.6rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: lowercase;
  color: var(--paper);
}

/* Slogan: frase più lunga della sola scritta "gargaDesign", quindi un
   corpo più contenuto ma sempre grande, in un unico colore */
.hero__title--slogan {
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 1.05;
  max-width: 16em;
  text-transform: none;
}

.hero__scroll {
  position: absolute;
  right: 6vw;
  bottom: 2.4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(246,245,241,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: rgba(246,245,241,0.5);
  animation: scrollline 2.2s ease-in-out infinite;
}

@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section shell ---------- */

section {
  position: relative;
  padding: 8.5rem 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .eyebrow { color: #6a7a1f; }

#chi-siamo .eyebrow { color: var(--ink); }

h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.about p {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.55;
  max-width: 34em;
  color: #2c2c26;
}

.about .num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--ink);
  opacity: 0.12;
  line-height: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  margin-top: 2.2rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Popup clienti ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 12, 0.75);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  padding: 2.4rem 2.2rem;
  transform: translateY(14px);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal__panel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  padding-right: 1.8rem;
  text-transform: none;
}

.modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal__list li {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(14, 15, 12, 0.14);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #2c2c26;
}

.modal__list li:last-child {
  border-bottom: 1px solid rgba(14, 15, 12, 0.14);
}

/* ---------- Servizi ---------- */

#servizi .eyebrow {
  color: var(--paper);
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.2rem;
}

.servizio {
  padding: 0;
}

.servizio__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.8rem;
  color: var(--paper);
  font-size: 2.75rem;
}

.servizio h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 1rem;
  text-transform: lowercase;
  color: var(--paper);
}

.servizio p {
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contatti ---------- */

.contatti {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contatti p.lead {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  max-width: 16em;
  margin: 0 0 2.5rem;
}

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
}

.contact-list li {
  border-top: 1px solid rgba(14,15,12,0.15);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.contact-list li:last-child { border-bottom: 1px solid rgba(14,15,12,0.15); }

.contact-list .label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #6a6a5e;
}

.contact-list .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* ---------- Footer ---------- */

footer {
  padding: 3rem 0;
  background: var(--ink);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.footer-row .footer-links { display: flex; gap: 1.6rem; }

/* ---------- Pagina legale (Privacy & Cookie) ---------- */

.topbar .back-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.25s ease;
}

.topbar.is-light .back-link { color: var(--ink); }

.legal-section { padding-top: 10rem; }

.legal { max-width: 760px; }

.legal-back {
  margin: 0 0 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6a5e;
}

.legal-back a:hover { color: var(--ink); }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
}

.legal .updated {
  color: #6a6a5e;
  font-size: 0.85rem;
  margin: 0 0 2.6rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2.4rem 0 0.9rem;
}

.legal p, .legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c26;
  max-width: 60em;
}

.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }

.legal .legal-note {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(14,15,12,0.15);
  font-size: 0.85rem;
  color: #6a6a5e;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about,
  .contatti { grid-template-columns: 1fr; gap: 2.5rem; }
  .servizi-grid { grid-template-columns: 1fr; }
  section { padding: 5.5rem 0; }
  .hero__content { padding-bottom: 0.6rem; }
  .nav-overlay__foot { flex-direction: column; align-items: center; gap: 0.6rem; bottom: 1.6rem; }
  .topbar__right { gap: 0.9rem; }
}

@media (max-width: 480px) {
  /* Sulla pagina Privacy, il link "torna al sito" nella barra fissa è
     ridondante con quello già presente nel testo: su schermi stretti si
     nasconde per evitare che si sovrapponga al logo */
  .topbar .back-link { display: none; }
}
