/* // PROFILOCASE: Stili base, mobile-first, nessun framework esterno */
:root{
  --bg-dark: #0f172a;        /* ardesia scuro */
  --bg-accent: #1f2937;      /* grigio scuro */
  --text: #0b2b2b;           /* verde-blu profondo per titoli */
  --text-contrast: #0e2a2a;  /* tono leggermente diverso */
  --white: #fff;
  --shadow: 0 12px 35px rgba(0,0,0,.28);
  --radius: 18px;
  --maxw: 1120px;
}

/* Reset breve e tipografia */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:#0b2b2b;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* HERO con immagine opzionale */
.hero{
  position:relative;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:22px;
  overflow:hidden;
  background:
    linear-gradient( to bottom, rgba(15,23,42,.15), rgba(15,23,42,.15) ),
    /* // PROFILOCASE: se hero.jpg non esiste, questo gradiente resta visibile */
    url("/assets/images/hero.jpg") center/cover no-repeat,
    linear-gradient(120deg, #e6f0f0, #f6f9fb);
  animation: heroZoom 1200ms ease-out 1 both;
}
.hero::after{ /* leggero vignette per leggibilità */
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1200px 600px at 50% 85%, rgba(0,0,0,.06), transparent 60%);
  pointer-events:none;
}

.hero__inner{
  width:100%;
  max-width:var(--maxw);
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:flex-start;
}

/* Titoli */
.brand{
  margin:0;
  letter-spacing:.08em;
  font-weight:700;
  font-size: clamp(22px, 5vw, 42px);
  color:#264a4a;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.headline{
  margin:0;
  line-height:1.15;
  font-weight:700;
  font-size: clamp(26px, 7vw, 46px);
  color:#2a5454;
  text-wrap:balance;
  max-width: 28ch;
  text-shadow: 0 2px 18px rgba(255,255,255,.9);
}

/* CTA box */
.cta{
  position:relative;
  margin-top:10px;
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 16px;
  width:min(92vw, 760px);
}
.cta__title{
  margin:0 0 10px 0;
  font-size: clamp(16px, 3.9vw, 22px);
  font-weight:700;
  color:#0f3b3b;
}

/* Contatti */
.cta__contacts{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.contact{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:600;
  padding:12px 14px;
  border-radius:12px;
  background:#f1f5f9;
  outline:2px solid transparent;
  transition: transform .18s ease, outline-color .18s ease, background .18s ease;
  user-select:none;
}
.contact:focus-visible{ outline-color:#0ea5a5; }
.contact:hover{ transform: translateY(-1px); background:#e8eef5; }
.contact .ico{ width:20px; height:20px; fill:#0a3b3b; }

/* Varianti contatto */
.contact--mail{ color:#0a3b3b; }
.contact--tel{  color:#0a3b3b; }

/* Animazioni di entrata (una volta sola) */
.reveal-up{
  opacity:0;
  transform: translateY(18px) scale(.98);
  animation: revealUp 700ms cubic-bezier(.2,.65,.2,1) 1 both;
}
.brand.reveal-up{ animation-delay: 60ms; }
.headline.reveal-up{ animation-delay: 160ms; }
.cta.reveal-up{ animation-delay: 280ms; }

@keyframes revealUp{
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes heroZoom{
  from{ transform: scale(1.03); }
  to  { transform: scale(1); }
}

/* Desktop finezze */
@media (min-width: 960px){
  .hero__inner{ gap:26px; }
  .cta{ padding:22px 20px; }
}

/* Accessibilità: riduzione movimento */
@media (prefers-reduced-motion: reduce){
  .reveal-up, .hero{ animation: none !important; opacity:1; transform:none; }
}
/* // PROFILOCASE — Mobile: mostra meglio la finestra nello sfondo */
@media (max-width: 600px){
  /* Ordine dei livelli: overlay, IMMAGINE, gradiente di base */
  .hero{
    background-position: center, 90% center, center; 
    /* Se vuoi vedere ancora più finestra, cambia 85% in 90% o 95% */
  }
}
/* // PROFILOCASE — Tablet: sposta leggermente lo sfondo per mostrare la finestra */
@media (min-width: 601px) and (max-width: 1024px){
  .hero{
    background-position: center, 75% center, center;
    /* Se vuoi ancora più finestra: porta 75% → 80% o 85% */
  }
}