/* ══════════════════════════════════════════════
   Studio Legale Avv. Claudio Biagi — newsite
   ══════════════════════════════════════════════ */

:root {
  --navy:        #0b1f33;
  --sea:         #163852;
  --sea-mid:     #1e5276;
  --sea-light:   #2e7ab5;
  --gold:        #c9a640;
  --gold-light:  #dfc06a;
  --cream:       #f7f4ef;
  --cream-dark:  #ede8e0;
  --white:       #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #5c5c5c;
  --border:      #d5cec5;

  --radius:      3px;
  --shadow:      0 4px 24px rgba(11,31,51,.14);
  --shadow-sm:   0 2px 8px rgba(11,31,51,.10);
  --transition:  .2s ease;

  --font-sans:   'Segoe UI', Arial, Helvetica, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container {
  width: min(960px, 100% - 40px);
  margin-inline: auto;
}

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


/* ══════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════ */

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  letter-spacing: .05em;
  padding: 6px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); }


/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  width: min(960px, 100%);
  margin-inline: auto;
}

.nav-brand {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 14px 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand span { color: var(--gold); }

/* hamburger checkbox hack */
#nav-toggle { display: none; }

.hamburger {
  display: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  transform-origin: center;
}

#nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}

.nav-links a,
.nav-links .current {
  display: inline-block;
  padding: 16px 12px;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-links .current {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--gold);
}

.nav-links a:hover {
  color: var(--sea-mid);
  border-bottom-color: var(--sea-light);
}


/* ══════════════════════════════════════════════
   HERO (homepage) — split layout con foto Lanterna
   ══════════════════════════════════════════════ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42%;
  min-height: 580px;
  overflow: hidden;
}

/* Onda in basso su tutta la larghezza */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 4;
}

/* ── Pannello sinistro (testo) ── */
.hero-left {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #112840 60%, #0e2236 100%);
  display: flex;
  align-items: center;
  padding: 80px 48px 110px 40px;
  z-index: 2;
}

/* Trattini orizzontali — riflesso del mare */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,.028) 28px,
    rgba(255,255,255,.028) 29px
  );
  pointer-events: none;
}

/* Gradient destro del pannello testo → fonde con l'immagine */
.hero-left::after {
  content: '';
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, #0e2236);
  z-index: 3;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.hero-eyebrow {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--white);
}

.hero-title strong {
  display: block;
  font-size: .58em;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-top: 18px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 13px 32px;
  background: var(--gold);
  color: var(--navy);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Pannello destro (foto Lanterna) ── */
.hero-right {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #0a1e30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right img {
  height: 470px;
  width: auto;
  display: block;
  filter: brightness(.88) saturate(1.05);
  flex-shrink: 0;
}

/* Sfumatura sinistra dell'immagine → fonde col pannello testo */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0e2236 0%, rgba(14,34,54,.4) 35%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

/* Alone dorato in basso, evoca il riflesso del faro sull'acqua */
.hero-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(11,31,51,.75) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}


/* ══════════════════════════════════════════════
   PAGE HERO (pagine interne)
   ══════════════════════════════════════════════ */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(960px, 100% - 40px);
  margin-inline: auto;
}

.page-hero-tag {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--white);
}


/* ══════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════ */

.page-body {
  padding: 56px 0 80px;
}

.page-body .container {
  max-width: 760px;
}

.page-body p {
  margin-bottom: 16px;
  color: var(--text);
}

.page-body p:last-child { margin-bottom: 0; }

/* Lead text */
.lead {
  font-size: 1.02rem;
  color: var(--sea);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 32px;
  line-height: 1.65;
}


/* ══════════════════════════════════════════════
   HOMEPAGE — sezioni extra
   ══════════════════════════════════════════════ */

/* Studio overview strip */
.strip-genova {
  background: #060e17;
  color: rgba(255,255,255,.7);
  padding: 48px 0;
  text-align: center;
}

.strip-genova h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.strip-genova p {
  max-width: 560px;
  margin-inline: auto;
  font-size: .9rem;
  line-height: 1.7;
}

.strip-genova .gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}

/* Stats / pillole */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
}

.stat-item {
  background: rgba(0,0,0,.35);
  padding: 28px 20px;
  text-align: center;
}

.stat-item .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .lbl {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
}


/* ══════════════════════════════════════════════
   AREE DI ATTIVITÀ — Cards
   ══════════════════════════════════════════════ */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.area-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.area-card .area-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.area-card h2 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.area-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}


/* ══════════════════════════════════════════════
   FORM CONSULENZA
   ══════════════════════════════════════════════ */

.consult-intro {
  margin-bottom: 40px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sea-mid);
  background: var(--white);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.privacy-note {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 22px;
}

.privacy-note a {
  color: var(--sea-mid);
  text-decoration: underline;
}

.btn-primary {
  display: inline-block;
  padding: 11px 32px;
  background: var(--navy);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--sea-mid);
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════
   DOVE SIAMO
   ══════════════════════════════════════════════ */

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

.map-embed {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.location-info h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.location-info p { font-size: .88rem; margin-bottom: 14px; }

.address-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 20px;
  font-size: .85rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

.address-block strong { color: var(--navy); }


/* ══════════════════════════════════════════════
   CONTATTI
   ══════════════════════════════════════════════ */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.contact-card .contact-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.contact-card .contact-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card .contact-value {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-card .contact-value a {
  color: var(--sea-mid);
  transition: color var(--transition);
}

.contact-card .contact-value a:hover { color: var(--navy); }

.contact-card .contact-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}


/* ══════════════════════════════════════════════
   COMUNICATI
   ══════════════════════════════════════════════ */

.no-news {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--text-muted);
  font-style: italic;
  font-size: .9rem;
}


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 40px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand .brand-sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-brand p { font-size: .82rem; line-height: 1.7; }

.footer-links h3 {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .72rem;
}

.footer-bottom .piva { color: rgba(255,255,255,.35); }

/* Genova watermark nel footer */
.genova-mark {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  color: rgba(255,255,255,.04);
  text-align: right;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.02em;
  position: absolute;
  right: 0;
  bottom: 0;
}

.site-footer { position: relative; overflow: hidden; }


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Nav mobile */
  .hamburger { display: flex; }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    align-items: flex-start;
    gap: 0;
  }

  #nav-toggle:checked ~ .nav-inner .nav-links {
    display: flex;
  }

  .nav-links a,
  .nav-links .current {
    width: 100%;
    padding: 10px 4px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links .current { border-left-color: var(--gold); }
  .nav-links a:hover  { border-left-color: var(--sea-light); border-bottom: none; }

  /* Hero — su mobile diventa verticale, immagine sopra */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    min-height: auto;
  }

  .hero-right { grid-row: 1; }
  .hero-right::before { background: linear-gradient(to top, #0e2236 0%, transparent 60%); }

  .hero-left {
    grid-row: 2;
    padding: 36px 24px 80px;
  }

  .hero-left::after { display: none; }

  /* Grids */
  .form-row { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-row { grid-template-columns: 1fr; }

  /* Form card */
  .form-card { padding: 24px 20px; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 2px; }
}
