/* ======================================
   Fuhrmann Global — Italy Page Styles
   Page-specific; always load after base.css.
   Based on the germany.css template.
   ====================================== */

/* ===== Section intro (left-aligned on country pages) ===== */
.section-intro { margin-bottom: 3.5rem; }

/* ===== Page hero (static single image) ===== */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 52vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--headline);
}

@media (min-width: 768px) {
  .page-hero { min-height: 62vh; }
}

.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-image { animation: none; }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(15, 31, 61, 0.65) 0%,
      rgba(15, 31, 61, 0.30) 45%,
      rgba(15, 31, 61, 0.05) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(15, 31, 61, 0.42) 0%,
      rgba(15, 31, 61, 0.10) 22%,
      rgba(15, 31, 61, 0.28) 52%,
      rgba(15, 31, 61, 0.90) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 3rem;
}

@media (min-width: 768px) {
  .page-hero-content { padding: 0 0 4.5rem; }
}

.page-hero-content .eyebrow {
  color: #C49B5C;
  margin-bottom: 1rem;
}

.page-hero-content h1 {
  color: var(--bg);
  max-width: 20ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.page-hero-content h1 em {
  color: #E8C794;
  font-style: italic;
  font-weight: 400;
}

.page-hero-content .lead {
  color: rgba(250, 247, 242, 0.92);
  max-width: 48ch;
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}

/* ===== Breadcrumb ===== */
.page-breadcrumb {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.breadcrumb-inner a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-inner a:hover { color: var(--accent); }

.breadcrumb-sep { color: var(--border-strong); }

/* ===== Country intro / Overview ===== */
.country-intro {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .country-intro { padding: 7rem 0 6rem; }
}

.country-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .country-intro-grid {
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.intro-stat-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stat-item {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--headline);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ===== Pathways ===== */
.pathways-section { background: var(--bg-alt); }

.pathway-block {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.pathway-block:last-child { margin-bottom: 0; }

.pathway-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .pathway-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pathway-code {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pathway-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  white-space: normal;
}

.pathway-block h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }

@media (min-width: 768px) {
  .pathway-block h3 { font-size: 1.75rem; }
}

.pathway-block p { max-width: 70ch; }

.eligibility-callout {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--border-strong);
}

.eligibility-callout-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.65rem;
  display: block;
}

.eligibility-callout p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 0;
  max-width: 66ch;
}

/* ===== Documents ===== */
.documents-section { background: var(--bg); }

.documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .documents-grid { grid-template-columns: 1fr 1fr; }
}

.doc-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.doc-list { list-style: none; padding: 0; margin: 0; }

.doc-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.doc-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.6em;
}

.doc-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  font-size: 0.9375rem;
  color: var(--text-soft);
  font-style: italic;
  max-width: 66ch;
  border-left: 3px solid var(--border-strong);
}

.doc-note p { margin-bottom: 0; max-width: 100%; }

/* ===== Timeline ===== */
.timeline-section { background: var(--bg-alt); }

.timeline { margin-top: 0.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.4375rem;
  top: 3.25rem;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item:last-child::before { display: none; }

.timeline-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--headline);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-body { padding-top: 0.25rem; }

.timeline-duration {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--headline);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .timeline-body h4 { font-size: 1.375rem; }
}

.timeline-body p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== What we handle ===== */
.handle-section { background: var(--bg); }

.handle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 600px) {
  .handle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .handle-grid { grid-template-columns: repeat(3, 1fr); }
}

.handle-item {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.handle-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--headline);
  margin-bottom: 0.5rem;
}

.handle-item p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 0;
  max-width: 100%;
  line-height: 1.55;
}

/* ===== CTA section (country page: left-aligned) ===== */
.cta-section p { max-width: 52ch; }

/* ===== Other country links ===== */
.other-countries {
  background: var(--bg-alt);
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.other-countries-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.75rem;
  display: block;
}

.other-countries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .other-countries-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.country-link-card {
  display: block;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.country-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.country-link-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--headline);
  margin-bottom: 0.4rem;
}

.country-link-summary {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}
