/* ============================================================
   Studio Legale Caiffi Silo Padovani — Stile Principale
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #162040;
  --navy-light: #1e2d52;
  --gold: #b8922a;
  --gold-light: #c9a84c;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.logo-text .studio-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo-text .studio-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--cream); color: var(--navy); }
nav a.active { color: var(--navy); font-weight: 600; }

.btn-area-clienti {
  background: var(--gold);
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-area-clienti:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content { flex: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-logo {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(184,146,42,0.3);
}

.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── SEZIONI GENERICHE ── */
section { padding: 80px 0; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
}

/* ── SERVIZI ── */
.servizi { background: var(--cream); }

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.servizio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.servizio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.servizio-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--cream);
  border-radius: 10px;
}

.servizio-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.servizio-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── STATS ── */
.stats {
  background: var(--navy);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ── NEWS ── */
.news { background: var(--cream); }

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-header .section-title { margin-bottom: 0; text-align: left; }

.vedi-tutte {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.vedi-tutte:hover { border-color: var(--navy); color: var(--navy); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.news-card:hover { transform: translateY(-3px); }

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.news-tag.vittoria { background: #dcfce7; color: #16a34a; }
.news-tag.studio { background: #fef9c3; color: #92400e; }
.news-tag.news { background: #e0f2fe; color: #0369a1; }

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA BANNER ── */
.cta-banner { background: var(--cream); padding: 0 0 80px; }

.cta-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cta-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.cta-inner p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 56px 0 0;
  color: rgba(255,255,255,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .studio-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-brand .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.2s;
}

.footer-brand .whatsapp-btn:hover { background: #1ebe5d; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 200;
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover { background: #1ebe5d; transform: translateY(-2px); }

/* ── PAGE INTERNE ── */
.page-hero {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

.page-content { padding: 64px 0; }

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p, .page-content li {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-content ul { padding-left: 20px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.team-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ── FORM CONTATTI ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.form-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
}

.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  font-family: inherit;
}

.form-submit:hover { background: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-logo { width: 240px; height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .hamburger { display: flex; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-logo { width: 200px; height: 200px; order: -1; }
  .hero-buttons { justify-content: center; }
  .hero p { margin: 0 auto 36px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
