/* =========================================================
   STIVEN MOLLA - Foglio di stile
   Blu notte, avorio e oro
   ========================================================= */

:root {
  --blu-notte: #0f1d33;
  --blu: #16294a;
  --blu-chiaro: #22385f;
  --blu-profondo: #0a1424;
  --avorio: #f7f3ec;
  --avorio-scuro: #efe8dc;
  --oro: #b8945a;
  --oro-chiaro: #d8bd86;
  --oro-scuro: #8f6f3c;
  --testo: #2a2f3a;
  --grigio: #5f6673;
  --bianco: #ffffff;

  --font-titoli: "DM Serif Display", serif;
  --font-testo: "Manrope", sans-serif;

  --raggio: 18px;
  --ombra: 0 20px 45px rgba(15, 29, 51, 0.12);
  --altezza-navbar: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--altezza-navbar);
}

body {
  font-family: var(--font-testo);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--testo);
  background-color: var(--avorio);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-titoli);
  font-weight: 400;
  line-height: 1.15;
  color: var(--blu-notte);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 1rem;
}

strong {
  font-weight: 600;
  color: var(--blu-notte);
}

.contenitore {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

.sezione {
  padding: 110px 0;
  position: relative;
}

.etichetta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro-scuro);
  margin-bottom: 0.9rem;
  padding-left: 34px;
  position: relative;
}

.etichetta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background-color: var(--oro);
}

.intestazione {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.intestazione-testo {
  color: var(--grigio);
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-oro {
  background: linear-gradient(135deg, var(--oro-chiaro) 0%, var(--oro) 100%);
  color: var(--blu-profondo);
  box-shadow: 0 12px 28px rgba(184, 148, 90, 0.35);
}

.btn-oro:hover {
  box-shadow: 0 16px 34px rgba(184, 148, 90, 0.5);
}

.btn-contorno {
  border: 1.5px solid rgba(247, 243, 236, 0.6);
  color: var(--avorio);
}

.btn-contorno:hover {
  background-color: var(--avorio);
  color: var(--blu-notte);
}

/* ---------- Logo con iniziali ---------- */
.logo-iniziali {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--oro);
  font-family: var(--font-titoli);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--oro-chiaro);
  flex-shrink: 0;
}

/* =========================================================
   1. BARRA IN ALTO
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--altezza-navbar);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  color: var(--avorio);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 20, 36, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-testo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-nome {
  font-family: var(--font-titoli);
  font-size: 1.3rem;
  color: var(--avorio);
}

.logo-ruolo {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro-chiaro);
}

.navbar-menu {
  display: flex;
  gap: 32px;
}

.navbar-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  padding: 4px 0;
  color: rgba(247, 243, 236, 0.85);
  transition: color 0.25s ease;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--oro);
  transition: width 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--avorio);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.btn-nav {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--oro);
  color: var(--oro-chiaro);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-nav:hover {
  background-color: var(--oro);
  color: var(--blu-profondo);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--avorio);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.aperto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.aperto span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.aperto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   2. APERTURA
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--altezza-navbar) + 40px) 0 90px;
  background: radial-gradient(ellipse at 75% 30%, var(--blu-chiaro) 0%, var(--blu-notte) 55%, var(--blu-profondo) 100%);
  color: var(--avorio);
}

.hero-decoro {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cerchio {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(216, 189, 134, 0.18);
}

.cerchio-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -160px;
}

.cerchio-2 {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -120px;
}

/* linea di un grafico che si disegna da sola */
.linee-grafico {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
}

.linee-grafico path {
  fill: none;
  stroke: var(--oro);
  stroke-width: 1.5;
  opacity: 0.35;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: disegna 3.5s ease-out 0.4s forwards;
}

.hero-contenitore {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.hero .etichetta {
  color: var(--oro-chiaro);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--avorio);
  margin-bottom: 0.3rem;
}

.hero-ruolo {
  font-family: var(--font-titoli);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--oro-chiaro);
}

.hero-frase {
  max-width: 520px;
  margin-top: 1.4rem !important;
  color: rgba(247, 243, 236, 0.82);
  font-size: 1.1rem;
}

.hero-bottoni {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.2rem;
}

.hero-zona {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.8rem !important;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 236, 0.75);
}

.hero-zona svg {
  width: 18px;
  height: 18px;
  fill: var(--oro);
}

.hero-foto {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.foto-cornice {
  position: relative;
}

/* bordo oro spostato dietro la foto */
.foto-cornice::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--oro);
  border-radius: var(--raggio);
}

.foto-cornice img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--raggio);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.badge-ocf {
  position: absolute;
  left: -30px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: 14px;
  background-color: var(--avorio);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--oro);
  animation: galleggia 5s ease-in-out infinite;
}

.badge-titolo {
  font-family: var(--font-titoli);
  font-size: 1.05rem;
  color: var(--blu-notte);
}

.badge-testo {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-scuro);
}

/* =========================================================
   3. SERVIZI
   ========================================================= */
.servizi {
  background-color: var(--avorio);
}

.servizi-griglia {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.servizio {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 260px;
  padding: 38px 32px;
  border-radius: var(--raggio);
  background-color: var(--bianco);
  box-shadow: var(--ombra);
  border-top: 3px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.servizio:hover {
  transform: translateY(-8px);
  border-top-color: var(--oro);
  box-shadow: 0 28px 55px rgba(15, 29, 51, 0.18);
}

.servizio-icona {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--oro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servizio p {
  color: var(--grigio);
  font-size: 0.98rem;
}

/* =========================================================
   4. COME LAVORO
   ========================================================= */
.metodo {
  background-color: var(--blu-notte);
  color: var(--avorio);
}

.metodo h2,
.metodo h3 {
  color: var(--avorio);
}

.metodo .etichetta {
  color: var(--oro-chiaro);
}

.passi {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

/* linea che unisce i passaggi */
.passi::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

.passo {
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.passo-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--oro);
  background-color: var(--blu-notte);
  font-family: var(--font-titoli);
  font-size: 1.5rem;
  color: var(--oro-chiaro);
  position: relative;
  z-index: 1;
}

.passo p {
  color: rgba(247, 243, 236, 0.75);
}

/* =========================================================
   5. CHI SONO
   ========================================================= */
.chi-sono {
  background-color: var(--avorio);
}

.due-colonne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.chi-sono-testo p {
  color: var(--grigio);
}

.percorso {
  list-style: none;
  position: relative;
  padding-left: 36px;
}

.percorso::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: var(--oro);
  opacity: 0.6;
}

.percorso li {
  position: relative;
  padding: 0 0 34px;
}

.percorso li:last-child {
  padding-bottom: 0;
}

.percorso li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--avorio);
  border: 2px solid var(--oro);
}

.percorso li:first-child::before {
  background-color: var(--oro);
}

.percorso-data {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-scuro);
  margin-bottom: 4px;
}

.percorso h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.percorso p {
  color: var(--grigio);
  font-size: 0.95rem;
}

/* =========================================================
   6. DOVE TROVARMI
   ========================================================= */
.dove {
  background-color: var(--avorio-scuro);
}

.dove-box {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 40px;
  padding: 56px 60px;
  border-radius: var(--raggio);
  background-color: var(--bianco);
  box-shadow: var(--ombra);
}

.dove-nome {
  font-weight: 600;
  color: var(--blu-notte);
}

.dove-indirizzo {
  color: var(--grigio);
  margin-bottom: 1.8rem;
}

.dove-decoro svg {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

.dove-decoro circle {
  fill: none;
  stroke: var(--oro);
  stroke-width: 1;
  opacity: 0.5;
}

.dove-decoro .pin {
  fill: var(--blu-notte);
}

/* =========================================================
   7. CONTATTI
   ========================================================= */
.contatti {
  background: radial-gradient(ellipse at 20% 20%, var(--blu-chiaro) 0%, var(--blu-notte) 60%, var(--blu-profondo) 100%);
  color: var(--avorio);
}

.contatti h2 {
  color: var(--avorio);
}

.contatti .etichetta {
  color: var(--oro-chiaro);
}

.contatti .intestazione-testo {
  color: rgba(247, 243, 236, 0.75);
}

.contatti-griglia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contatto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 24px;
  border-radius: var(--raggio);
  border: 1px solid rgba(216, 189, 134, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.contatto:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--oro);
}

.contatto svg {
  width: 32px;
  height: 32px;
  fill: var(--oro-chiaro);
  margin-bottom: 14px;
}

.contatto-tipo {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro-chiaro);
  margin-bottom: 6px;
}

.contatto-valore {
  font-weight: 500;
  word-break: break-word;
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.footer {
  background-color: var(--blu-profondo);
  color: rgba(247, 243, 236, 0.7);
  padding: 56px 0 40px;
  font-size: 0.85rem;
}

.footer-alto {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-nome {
  font-family: var(--font-titoli);
  font-size: 1.3rem;
  color: var(--avorio);
}

.footer-ruolo {
  margin-top: 0 !important;
  font-size: 0.8rem;
  color: var(--oro-chiaro);
}

.footer-albo {
  color: rgba(247, 243, 236, 0.85);
  padding-top: 20px;
  border-top: 1px solid rgba(216, 189, 134, 0.2);
}

.footer-nota {
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 900px;
}

.footer-legale {
  margin-top: 1.6rem !important;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* =========================================================
   ANIMAZIONI
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.visibile {
  opacity: 1;
  transform: translateY(0);
}

@keyframes disegna {
  to { stroke-dashoffset: 0; }
}

@keyframes galleggia {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .linee-grafico path {
    stroke-dashoffset: 0;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .navbar {
    padding: 0 18px;
  }

  .navbar-toggle {
    display: flex;
    order: 3;
  }

  .navbar-menu {
    position: fixed;
    top: var(--altezza-navbar);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background-color: var(--blu-profondo);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar-menu.aperto {
    max-height: 320px;
  }

  .navbar-menu a {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    font-size: 0.95rem;
  }

  .navbar-menu a::after {
    display: none;
  }

  .btn-nav {
    margin-left: auto;
  }

  .hero-contenitore {
    grid-template-columns: 1fr;
    gap: 70px;
    text-align: center;
  }

  .hero-frase {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bottoni,
  .hero-zona {
    justify-content: center;
  }

  .hero-foto {
    max-width: 320px;
  }

  .passi {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .passi::before {
    display: none;
  }

  .due-colonne {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dove-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 44px 28px;
  }

  .dove-decoro {
    order: -1;
  }

  .dove-decoro svg {
    max-width: 130px;
  }

  .contatti-griglia {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --altezza-navbar: 70px;
  }

  body {
    font-size: 1rem;
  }

  .sezione {
    padding: 80px 0;
  }

  .logo-iniziali {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .logo-nome {
    font-size: 1.1rem;
  }

  .logo-ruolo {
    font-size: 0.6rem;
  }

  .btn-nav {
    padding: 9px 16px;
    font-size: 0.7rem;
  }

  .servizio {
    flex-basis: 100%;
    min-width: 0;
  }

  .badge-ocf {
    left: -10px;
    bottom: 24px;
    padding: 10px 16px;
  }

  .foto-cornice::before {
    inset: 14px -14px -14px 14px;
  }

  .cerchio-1 {
    width: 380px;
    height: 380px;
  }
}