/* ============================================================
   Studio Occhiuto — Foglio di stile
   Tema "corporate" chiaro: bianco, navy, accenti oro
   (i nomi delle variabili --gold/--gold-light sono mantenuti
   per compatibilità con le pagine esistenti)
   ============================================================ */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f2f0ea;
  --card: #ffffff;
  --border: #e4e0d6;
  --navy: #12283f;
  --navy-2: #1b3a5a;
  --gold: #a07c2c;
  --gold-light: #7c6223;
  --text: #2b2f36;
  --text-muted: #5b6068;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfd8e3; font-size: .8rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #e8dbb8; }
.topbar a:hover { color: #fff; }

/* ---------- Header / navigazione ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(18,40,63,.06);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; flex-wrap: wrap; gap: 12px;
}

.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand .name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; }
.brand .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }

nav ul { display: flex; list-style: none; gap: 26px; align-items: center; flex-wrap: wrap; }
nav ul a { color: var(--text-muted); font-size: .9rem; letter-spacing: .04em; font-weight: 500; }
nav ul a:hover, nav ul a.active { color: var(--navy); }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 3px;
  transition: all .25s;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 85px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(160,124,44,.18), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #24476b 100%);
}

.hero .eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .3em;
  color: #e0c48a; margin-bottom: 22px;
}

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); margin-bottom: 22px; color: #fff; }
.hero p { max-width: 640px; margin: 0 auto 38px; color: #c9d4e0; font-size: 1.08rem; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn { border-color: #e0c48a; color: #e0c48a; }
.hero .btn:hover { background: #e0c48a; color: var(--navy); }
.hero .btn-solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero .btn-solid:hover { background: #b8924a; border-color: #b8924a; }

/* Hero con immagine di sfondo discreta (velatura navy per leggibilità).
   Uso: <section class="hero has-bg" style="--hero-img:url('img/nome.jpg')"> */
.hero.has-bg {
  background:
    linear-gradient(rgba(15,33,53,.84), rgba(22,45,70,.80)),
    var(--hero-img) var(--hero-pos, center 35%) / cover no-repeat;
}

/* ---------- Sezioni ---------- */
section { padding: 78px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title { text-align: center; margin-bottom: 12px; font-size: 2.2rem; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 52px; }

.divider {
  width: 56px; height: 2px; background: var(--gold);
  margin: 18px auto 26px; border: none;
}

/* ---------- Card ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 34px 30px;
  box-shadow: 0 2px 14px rgba(18,40,63,.05);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 10px 28px rgba(18,40,63,.12); transform: translateY(-3px); }
.card h3 { color: var(--navy); font-size: 1.42rem; margin-bottom: 14px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 16px; display: block; }

/* ---------- News ---------- */
.news-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 26px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(18,40,63,.04);
}
.news-item .date {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-light); margin-bottom: 6px;
}
.news-item h3 { font-size: 1.32rem; margin-bottom: 8px; }
.news-item h3 a { color: var(--navy); }
.news-item h3 a:hover { color: var(--gold-light); }
.news-item p { color: var(--text-muted); font-size: .94rem; }

.news-source {
  text-align: center; font-size: .8rem; color: var(--text-muted);
  margin-top: 26px;
}

/* ---------- Contatti ---------- */
.contact-list { list-style: none; }
.contact-list li {
  padding: 15px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: baseline;
}
.contact-list .label {
  min-width: 110px; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--gold-light);
}

.map-frame {
  width: 100%; height: 380px; border: 1px solid var(--border);
  border-radius: 4px;
}

/* ---------- Area clienti ---------- */
.steps { counter-reset: step; max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 22px; padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 2rem; color: var(--gold);
  min-width: 44px; line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: .95rem; }

.notice {
  max-width: 720px; margin: 46px auto 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 28px; font-size: .9rem; color: var(--text-muted);
}
.notice strong { color: var(--navy); }

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--gold);
  padding: 46px 0 38px;
  background: var(--navy);
  text-align: center;
  color: #b9c4d1;
  font-size: .85rem;
}
footer .name { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
footer .small { font-size: .78rem; margin-top: 14px; color: #8494a6; }
footer a { color: #e0c48a; }
footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 54px 0; }
  nav ul { gap: 16px; }
  .topbar-inner { justify-content: center; }
}

/* ============================================================
   Timeline — Sezione Percorso Professionale (index.html)
   ============================================================ */

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0;
}

/* Linea verticale centrale */
.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(160,124,44,.15));
}

.tl-item {
  display: flex;
  gap: 0;
  padding: 0 0 44px 0;
  position: relative;
}

/* Anno */
.tl-year {
  min-width: 88px;
  padding-right: 28px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
  position: relative;
}

/* Pallino sulla linea */
.tl-year::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}

/* Contenuto */
.tl-content {
  padding-left: 28px;
  flex: 1;
}

.tl-content h3 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.tl-content p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* Ultimo elemento: nessun padding extra */
.tl-item:last-child { padding-bottom: 0; }

@media (max-width: 640px) {
  .timeline::before { left: 60px; }
  .tl-year { min-width: 60px; font-size: .9rem; padding-right: 20px; }
  .tl-content { padding-left: 20px; }
}

/* ============================================================
   Form di contatto — contatti.html
   ============================================================ */

.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-form-intro h2 { margin-bottom: 0; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: 0 2px 14px rgba(18,40,63,.05);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.cf-field:last-child { margin-bottom: 0; }

.cf-field label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  font-weight: 500;
}

.cf-req { color: var(--gold); }

.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,124,44,.12);
}

.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-privacy {
  margin: 18px 0 24px;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cf-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.cf-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.cf-submit {
  width: 100%;
  padding: 14px;
  font-size: .88rem;
  letter-spacing: .1em;
  cursor: pointer;
  border: none;
}

@media (max-width: 900px) {
  .contact-form-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
}

/* ============================================================
   LOGO NAVBAR & FOOTER — v9
   ============================================================ */

/* Brand link nella navbar */
a.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Footer con logo verticale */
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

.footer-info {
  flex: 1;
  min-width: 240px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .nav-logo {
    height: 36px;
  }
  .footer-logo-img {
    height: 70px;
  }
}
