/* ═══════════════════════════════════════════════
   drgeraci.it — Stile principale
   Palette: Teal #005F63, Slate #2C3E50, White
   Font: Lora (titoli) + Inter (corpo)
═══════════════════════════════════════════════ */

:root {
  --teal:       #005F63;
  --teal-light: #E0F2F2;
  --teal-med:   #007A7F;
  --teal-dark:  #004045;
  --slate:      #2C3E50;
  --gray-bg:    #F4F5F6;
  --gray-mid:   #E8EAEC;
  --gray-text:  #6B7280;
  --white:      #FFFFFF;
  --radius:     12px;
  --shadow:     0 2px 20px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
}

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

/* ─── HEADER ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--teal);
  line-height: 1.2;
}
.logo-spec {
  font-size: 12px;
  color: var(--gray-text);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
nav a:hover { color: var(--teal); }

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--teal-dark) !important; }

/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary.large { padding: 18px 36px; font-size: 17px; }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-med) 100%);
  padding: 100px 0 80px;
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-pre {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  opacity: 0.9;
}

.hero-sub {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary { background: var(--white); color: var(--teal); }
.hero .btn-primary:hover { background: var(--teal-light); }
.hero .btn-secondary { border-color: rgba(255,255,255,0.6); color: var(--white); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.section-teal .btn-secondary {
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
}

.section-teal .btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: rgba(255,255,255,0.95);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(4px);
}

.card-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.card-desc { font-size: 13px; opacity: 0.8; }

/* ─── SECTIONS ───────────────────────────────── */
.section-white { padding: 90px 0; background: var(--white); }
.section-gray  { padding: 90px 0; background: var(--gray-bg); }
.section-teal  { padding: 90px 0; background: var(--teal); color: var(--white); }

.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-tag.light { color: rgba(255,255,255,0.7); }

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--slate);
}
h2.light { color: var(--white); }

.section-intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 48px;
  opacity: 0.9;
}

/* ─── CHI SONO ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.col-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #4A5568;
  margin-bottom: 16px;
}

.competenze { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.comp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.comp-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-placeholder {
  background: var(--teal-light);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  border: 2px solid rgba(0,95,99,0.12);
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(0,95,99,0.2);
}
.profile-name {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 6px;
}
.profile-title {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 12px;
}
.profile-location { font-size: 14px; color: var(--slate); }

/* ─── STEPS GRID ─────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Lora', serif;
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}
.step-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ─── TARGET CHIPS ───────────────────────────── */
.target-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.target-label {
  font-size: 14px;
  opacity: 0.7;
  white-space: nowrap;
}
.target-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── CTA SECTION ────────────────────────────── */
.cta-section { text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-desc {
  font-size: 17px;
  color: var(--gray-text);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-box {
  background: var(--teal-light);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-note {
  font-size: 14px;
  color: var(--gray-text);
}
.cta-fine {
  font-size: 13px;
  color: var(--gray-text);
}

/* ─── CONTATTI ───────────────────────────────── */
.contatti-inner { text-align: left; }
.contatti-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.contatto-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cont-icon { font-size: 24px; margin-top: 2px; }
.contatto-item strong { display: block; font-size: 14px; color: var(--gray-text); margin-bottom: 2px; }
.contatto-item p, .contatto-item a {
  font-size: 16px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.contatto-item a:hover { color: var(--teal); }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { line-height: 1.6; }
.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-right a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-right a:hover { color: var(--white); }

/* ─── HERO HEADLINE ROTAZIONE ───────────────── */
.hero-headline-wrapper {
  min-height: 140px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--white);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-headline em {
  font-style: italic;
  opacity: 1;
  color: var(--white);
}

/* ─── BADGE ILSA ─────────────────────────────── */
.badge-ilsa {
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── COLLABORAZIONI ─────────────────────────── */
.collab-inner { }
.collab-intro {
  font-size: 17px;
  color: var(--gray-text);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.collab-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.collab-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.collab-icon {
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--teal);
}
.collab-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 10px;
}
.collab-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
}
.collab-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.collab-cta p {
  font-size: 16px;
  color: var(--slate);
  font-weight: 500;
}

/* ─── FOOTER ILSA ────────────────────────────── */
.footer-ilsa {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
  display: block;
}
.footer-ilsa a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.footer-ilsa a:hover { color: var(--white); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .col-visual { order: -1; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .hero-headline-wrapper { min-height: 160px; }
}

@media (max-width: 600px) {
  nav a:not(.btn-nav) { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
/* ─── NAV MOBILE ─────────────────────────────── */

.nav-toggle {
  display: none;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  border: none;
  font-size: 18px;
}

/* Desktop: nav normale */
@media (min-width: 601px) {
  .main-nav {
    display: flex;
  }
}

/* Mobile: nav nascosto di default + hamburger */
@media (max-width: 600px) {
  nav a:not(.btn-nav) {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav.is-open {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-mid);
    padding: 12px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav.is-open a {
    display: block;
  }
}
/* ─── BLOG / ARTICOLI ─────────────────────────── */

.logo-link {
  text-decoration: none;
  color: inherit;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.blog-title {
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
}

.blog-title a {
  color: var(--slate);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--teal);
}

.blog-excerpt {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}

.pill-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.pill-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* ─── HEADER TEAL ARTICOLI ───────────────────── */

.articles-hero {
  padding: 72px 0 40px;
}

.articles-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}

.articles-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

.light-label {
  color: rgba(255, 255, 255, 0.85);
}

.light-help {
  color: rgba(255, 255, 255, 0.75);
}

/* ─── SEARCH ─────────────────────────────────── */

.search-box-wrap {
  margin-top: 26px;
  max-width: 720px;
}

.search-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: var(--white);
}

.section-teal .search-input {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section-teal .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 95, 99, 0.16);
}

.section-teal .search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.search-help,
.no-results {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 8px;
}

.no-results {
  margin-top: 24px;
}

/* ─── PAGINE ARTICOLO ────────────────────────── */

.article-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 70%, var(--teal-med) 100%);
  color: #ffffff;
  padding: 64px 0 36px;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-title-main {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin: 16px 0 12px;
  color: #ffffff;
}

.article-lead {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
}

.article-page {
  padding: 42px 0 80px;
}

.article-page .article-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 26px;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: var(--slate);
}

.article-page .article-content p,
.article-page .article-content li {
  font-size: 17px;
  line-height: 1.9;
  color: #4a5568;
}

.article-page .article-content p {
  margin-bottom: 18px;
}

.article-page .article-content ul,
.article-page .article-content ol {
  margin: 0 0 20px 22px;
}

.article-page .article-content li {
  margin-bottom: 10px;
}

.article-page .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.article-page .article-content thead {
  background: var(--teal-light);
}

.article-page .article-content th,
.article-page .article-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-mid);
  vertical-align: top;
}

.article-page .article-content th {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

.article-page .article-content td {
  font-size: 15px;
  color: var(--slate);
  min-width: 180px;
}

.article-page .article-content tr:last-child td {
  border-bottom: none;
}

.article-bottom-nav {
  margin-top: 36px;
}

/* ─── FOOTER SOCIAL / SOCIAL LINKS ───────────── */

.footer-social {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-social span:first-child {
  font-weight: 600;
  margin-right: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.section-white .social-link {
  color: var(--teal);
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.section-white .social-link:hover {
  color: var(--teal-dark);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1;
}

/* ─── PICCOLI AGGIUSTAMENTI ──────────────────── */

.blog-card .btn-secondary {
  margin-top: auto;
  width: fit-content;
}

.blog-card .pill {
  margin-bottom: 4px;
}

/* ─── RESPONSIVE BLOG ────────────────────────── */

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

  .article-hero {
    padding: 52px 0 28px;
  }

  .article-title-main {
    font-size: 32px;
  }

  .article-lead {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .blog-card {
    padding: 22px;
  }

  .blog-title {
    font-size: 20px;
  }

  .article-page .article-content p,
  .article-page .article-content li {
    font-size: 16px;
    line-height: 1.85;
  }

  .footer-social {
    gap: 8px;
  }
}
.section-teal a.btn-secondary,
.section-teal .btn-secondary,
.section-teal .btn-secondary:visited {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.85) !important;
  background: transparent !important;
}

.section-teal a.btn-secondary:hover,
.section-teal .btn-secondary:hover,
.section-teal a.btn-secondary:focus,
.section-teal .btn-secondary:focus {
  color: #ffffff !important;
  background: rgba(255,255,255,0.14) !important;
  border-color: #ffffff !important;
}
/* ─── RIFERIMENTI ARTICOLO ───────────────────── */

.article-references {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-mid);
  background: transparent;
}

.article-references h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--slate);
}

.article-references ol {
  margin: 0 0 0 22px;
  padding: 0;
}

.article-references li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 12px;
}