/* ========== LAYOUT: INDEX ========== */
.section-padding { padding: 80px 0; }
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(33,181,203,0.35); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #21B5CB 0%, #479FD8 35%, #004259 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(166,222,239,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,66,89,0.3) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--light-blue); }
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,181,203,0.1);
  border-radius: 14px;
  color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== WHY CHOOSE US ========== */
.why-section { background: linear-gradient(135deg, rgba(166,222,239,0.15) 0%, rgba(240,247,250,1) 100%); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-block {
  text-align: center;
  padding: 32px 20px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}
.feature-block p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== DOCUMENTE TIPIZATE ========== */
.documente-section {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 50%, var(--bg) 100%);
}

/* -- Document Category Cards Grid -- */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* -- Category Card (static) -- */
.doc-category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.doc-category-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,181,203,0.3);
}
.doc-category-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.doc-category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,181,203,0.1);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.doc-category-icon svg {
  width: 24px;
  height: 24px;
}
.doc-category-top h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.doc-card-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.doc-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.doc-card-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.doc-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.doc-card-list li strong {
  color: var(--primary);
  font-weight: 600;
}
.doc-card-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
  margin-top: auto;
}
.doc-card-cta:hover {
  color: var(--accent-dark);
}

/* -- Section CTA -- */
.doc-cta {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(33,181,203,0.08) 0%, rgba(0,66,89,0.05) 100%);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.doc-cta p {
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}

/* -- FAQ Sub-section -- */
.doc-faq {
  max-width: 800px;
  margin: 0 auto;
}
.doc-faq-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 24px;
}
.doc-faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,66,89,0.05);
  overflow: hidden;
}
.doc-faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.doc-faq-item summary::-webkit-details-marker {
  display: none;
}
.doc-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.doc-faq-item[open] summary::after {
  content: '\2212';
}
.doc-faq-item summary:hover {
  background: rgba(33,181,203,0.03);
}
.doc-faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== ABOUT / TRUST ========== */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.about-section .about-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.about-section .section-title {
  color: #fff;
}
.about-section .about-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(33,181,203,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}
.contact-item span,
.contact-item a {
  font-size: 14px;
  color: var(--text-light);
}
.contact-item a:hover { color: var(--accent); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .section-padding { padding: 60px 0; }
  .doc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .about-section { padding: 72px 0; }
  .trust-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { min-height: 280px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .trust-stats { flex-direction: column; gap: 24px; }
  .stat-number { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
}
