/* ============================================================
   STUDIO CORBETTA – Foglio di stile principale
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2C2C2C;
  background: #FFFFFF;
}

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

a {
  color: #1C3A5E;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #1C3A5E;
  line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section:nth-child(even):not(.hero):not(.page-hero) {
  background: #F4F5F6;
}

/* ---------- Header & Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1C3A5E;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: #FFFFFF;
  font-weight: normal;
  letter-spacing: 0.03em;
}

.logo span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A8C4E0;
  font-family: system-ui, sans-serif;
  margin-top: 0.1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #D0DFF0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #FFFFFF;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background: #F4F5F6;
  color: #2C2C2C;
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 3px solid #1C3A5E;
}

.hero h1 {
  color: #1C3A5E;
  margin-bottom: 0.6rem;
}

.hero .titolo-prof {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A7A98;
  margin-bottom: 1.4rem;
  font-family: system-ui, sans-serif;
}

.hero .payoff {
  font-size: 1.1rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  border-radius: 3px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: #FFFFFF;
  color: #1C3A5E;
  text-decoration: none;
}

.btn-primary {
  background: #1C3A5E;
  color: #FFFFFF;
  border-color: #1C3A5E;
}

.btn-primary:hover {
  background: #14304F;
  border-color: #14304F;
  color: #FFFFFF;
}

/* ---------- Chi sono ---------- */
.chi-sono-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.chi-sono-foto {
  flex: 0 0 240px;
}

.foto-placeholder {
  width: 240px;
  height: 300px;
  background: #E8EEF5;
  border: 2px dashed #A8C4E0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6A8AAC;
  font-size: 0.82rem;
  text-align: center;
  gap: 0.5rem;
}

.foto-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.foto-profilo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(28,58,94,0.15);
}

.chi-sono-testo {
  flex: 1;
}

/* ---------- Badge credenziali ---------- */
.credenziali {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.badge {
  background: #E8EEF5;
  border-left: 4px solid #1C3A5E;
  padding: 0.75rem 1.1rem;
  border-radius: 3px;
  flex: 1;
  min-width: 220px;
}

.badge strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1C3A5E;
  margin-bottom: 0.2rem;
}

.badge span {
  font-size: 0.9rem;
  color: #444;
}

/* ---------- Servizi ---------- */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.servizio-card {
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-top: 4px solid #1C3A5E;
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}

.servizio-card h3 {
  color: #1C3A5E;
  margin-bottom: 0.75rem;
}

.servizio-card p {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.65;
}

/* ---------- Contatti ---------- */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.recapiti-lista {
  list-style: none;
  margin-top: 0.5rem;
}

.recapiti-lista li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #E8EEF5;
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  word-break: break-all;
}

.recapiti-lista li:last-child {
  border-bottom: none;
}

.recapiti-lista .etichetta {
  font-weight: 600;
  color: #1C3A5E;
  min-width: 60px;
}

/* ---------- Dove siamo ---------- */
.sedi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.sede-card {
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
}

.sede-card h3 {
  font-size: 1rem;
  color: #1C3A5E;
  margin-bottom: 0.4rem;
}

.sede-card address {
  font-style: normal;
  font-size: 0.93rem;
  color: #444;
  line-height: 1.6;
}

/* ---------- Orari ---------- */
.orari-box {
  background: #E8EEF5;
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.93rem;
}

.orari-box strong {
  display: block;
  color: #1C3A5E;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Form contatto ---------- */
.form-contatto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1C3A5E;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.65rem 0.85rem;
  border: 1px solid #C8D5E5;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2C2C2C;
  background: #FAFBFC;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1C3A5E;
  background: #FFFFFF;
}

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

.gdpr-nota {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ---------- Sezione intro pagine interne ---------- */
.page-hero {
  background: #1C3A5E;
  color: #FFFFFF;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  color: #FFFFFF !important;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.page-hero p {
  color: #C8D8EC !important;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ---------- Divisore sezione ---------- */
.section-title {
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.4rem;
}

.section-title p {
  color: #555;
  font-size: 0.97rem;
}

.divider {
  width: 48px;
  height: 3px;
  background: #1C3A5E;
  margin: 0.6rem 0 1.2rem;
}

/* ---------- Footer ---------- */
footer {
  background: #111E2E;
  color: #A8C4E0;
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: system-ui, sans-serif;
}

.footer-col p,
.footer-col a {
  color: #8AAAC6;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid #1E3050;
  text-align: center;
  color: #5A7A98;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1C3A5E;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .chi-sono-grid {
    flex-direction: column;
  }

  .chi-sono-foto {
    flex: none;
    margin: 0 auto;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sedi-grid {
    grid-template-columns: 1fr;
  }

  .credenziali {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .servizi-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
}
