/* ===== DILETTI — Brand Stylesheet ===== */

:root {
  /* Brand palette derived from logo */
  --primary:       #1A6B8A;
  --primary-dark:  #0F4C63;
  --primary-light: #8CB4C8;
  --accent:        #C8DCF0;
  --accent-soft:   #E8F1F8;
  --dark:          #1C2A33;
  --text:          #2D3B45;
  --text-light:    #5A6E7A;
  --gray:          #94A3AD;
  --light-gray:    #E9EEF2;
  --white:         #FFFFFF;
  --warm-white:    #FAFBFC;
  --danger:        #C0392B;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 6rem 0;
  --container-max: 1140px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

.lead { font-size: 1.25rem; color: var(--text-light); line-height: 1.8; }
.small-caps { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--primary); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(165deg, var(--warm-white) 0%, var(--accent-soft) 50%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(26,107,138,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero .small-caps { margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); }
.hero .lead { margin-bottom: 2.5rem; max-width: 600px; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,107,138,0.25); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: var(--section-pad); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .small-caps { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.bg-light { background: var(--warm-white); }
.bg-accent { background: var(--accent-soft); }

/* ===== SERVICE CARDS (homepage) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--primary-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; line-height: 1.6; }

/* ===== SERVICE DETAIL (services page) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.service-detail:last-child { border-bottom: none; }

@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; gap: 1.5rem; } }

.service-detail h3 { color: var(--primary); margin-bottom: 0.75rem; }
.service-detail .service-scope { color: var(--text-light); font-size: 0.95rem; }

.scope-list { list-style: none; padding: 0; }
.scope-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}
.scope-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  padding: 3rem 0;
  background: var(--dark);
  color: var(--white);
}

.trust-numbers {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trust-stat { text-align: center; }
.trust-stat .number { font-size: 2.5rem; font-weight: 800; color: var(--primary-light); }
.trust-stat .label { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ===== ABOUT TEASER ===== */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) { .about-teaser { grid-template-columns: 1fr; gap: 2rem; } }

.about-teaser h2 { margin-bottom: 1.25rem; }
.about-teaser .lead { margin-bottom: 1.5rem; }

.credentials-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.credentials-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.credentials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-white:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ===== ABOUT PAGE ===== */
.page-hero {
  padding: 9rem 0 4rem;
  background: linear-gradient(165deg, var(--warm-white) 0%, var(--accent-soft) 100%);
}

.page-hero .small-caps { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 640px; }

.timeline { max-width: 700px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-weight: 700; color: var(--primary); font-size: 0.95rem; padding-top: 0.15rem; }
.timeline-item h4 { margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) { .expertise-grid { grid-template-columns: 1fr; } }

.expertise-tag {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  border: 1px solid var(--accent);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { margin-bottom: 0.5rem; }
.contact-info p { color: var(--text-light); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .detail-text .label { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-detail .detail-text p { margin-bottom: 0; color: var(--text); }

.contact-form { background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius-lg); padding: 2.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--warm-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,138,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--gray);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 36px; margin-bottom: 0.75rem; filter: brightness(1.5); }
.footer-brand p { font-size: 0.85rem; max-width: 280px; }

.footer-links h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--gray); font-size: 0.9rem; line-height: 2; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== PRODUCTS SECTION ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.product-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.product-card .price-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.product-card ul {
  list-style: none;
  padding: 0;
  flex: 1;
}

.product-card ul li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--primary-light);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.blog-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.blog-card .read-more { font-size: 0.9rem; font-weight: 600; color: var(--primary); margin-top: auto; }

/* Article page */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-header {
  padding: 9rem 0 3rem;
  background: linear-gradient(165deg, var(--warm-white) 0%, var(--accent-soft) 100%);
}

.article-header .blog-tag { margin-bottom: 1rem; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 1rem; max-width: 760px; }
.article-header .lead { max-width: 680px; }

.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-meta .author { font-weight: 600; color: var(--text); }

.article-body {
  padding: 3rem 0 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary-dark);
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-body .callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.article-body .callout h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.article-cta {
  background: var(--warm-white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.article-cta h3 { margin-bottom: 0.75rem; }
.article-cta p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Lead magnet / newsletter */
.lead-magnet-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.lead-magnet-box h3 { color: var(--white); margin-bottom: 0.5rem; }
.lead-magnet-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

.lead-magnet-box .email-capture {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.lead-magnet-box input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.lead-magnet-box input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.lead-magnet-box input[type="email"]:focus { outline: none; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.15); }

@media (max-width: 500px) {
  .lead-magnet-box .email-capture { flex-direction: column; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
