/* ── ICARE SECONDARY PAGES — Enhanced Styles ── */
/* Appended to style.css — handles all pagine secondarie */

/* ─── PAGE LAYOUT ─── */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page header banner */
.page-header {
  background: linear-gradient(135deg, var(--testo) 0%, #0d2233 60%, #0a1e2e 100%);
  padding: 110px 2rem 52px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(0,119,182,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,119,182,0.10) 0%, transparent 60%);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,119,182,0.4), transparent);
}
.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: color var(--tr);
}
.page-back:hover { color: rgba(255,255,255,0.85); }
.page-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.page-tag {
  display: inline-block;
  background: rgba(0,119,182,0.25);
  border: 1px solid rgba(0,119,182,0.4);
  color: var(--blu-med);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.page-h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-lead {
  font-size: 15.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 580px;
}

/* ─── PAGE BODY ─── */
.page-body {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem 5rem;
}

/* ─── SECTION BLOCKS ─── */
.page-section {
  margin-bottom: 3rem;
}
.page-section:last-child { margin-bottom: 0; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blu);
  margin-bottom: 0.6rem;
}
.page-section h2 {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--testo);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-section h3 {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--testo);
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}
.page-section p {
  font-size: 15px;
  color: var(--grigio);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.page-section p:last-child { margin-bottom: 0; }

/* ─── DIVIDER ─── */
.page-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--blu-ch), rgba(0,119,182,0.05));
  margin: 2.5rem 0;
}

/* ─── INFO CARD ─── */
.info-panel {
  background: var(--crema);
  border: 1px solid rgba(0,119,182,0.12);
  border-left: 3px solid var(--blu);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
}
.info-panel p { margin: 0; font-size: 14.5px; }
.info-panel strong { color: var(--blu); }

/* ─── HIGHLIGHT BOX (CF, codice fiscale) ─── */
.highlight-box {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-sc) 100%);
  color: white;
  padding: 2rem 2.25rem;
  border-radius: var(--r);
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.highlight-box h2 {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.highlight-box .cf-num {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: white;
  font-family: var(--font-b);
}
.highlight-box p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ─── STEPS / OL LIST ─── */
.steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0,119,182,0.07);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blu-ch);
  color: var(--blu);
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.steps-list li span {
  font-size: 15px;
  color: var(--grigio);
  line-height: 1.65;
  padding-top: 3px;
}

/* ─── BULLET LIST ─── */
.page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.page-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  font-size: 14.5px;
  color: var(--grigio);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.page-list li:last-child { border-bottom: none; }
.page-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blu);
  flex-shrink: 0;
  margin-top: 9px;
}
.page-list li a { color: var(--blu); text-decoration: none; }
.page-list li a:hover { text-decoration: underline; }

/* ─── DOCUMENT LIST ─── */
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bianco);
  border: 1px solid rgba(0,119,182,0.1);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: var(--testo);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.doc-item:hover {
  border-color: var(--blu);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,119,182,0.08);
}
.doc-icon {
  width: 36px; height: 36px;
  background: var(--blu-ch);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { width: 18px; height: 18px; stroke: var(--blu); fill: none; stroke-width: 1.8; }
.doc-name { font-size: 14px; font-weight: 600; color: var(--testo); }
.doc-type { font-size: 11px; color: var(--grigio); margin-top: 1px; }
.doc-arrow { margin-left: auto; color: var(--blu); opacity: 0.4; }
.doc-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── CONTACT CTA ─── */
.contact-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--crema);
  border: 1px solid rgba(0,119,182,0.12);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.contact-cta-icon {
  width: 42px; height: 42px;
  background: var(--blu);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-cta-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 1.8; }
.contact-cta p { margin: 0; font-size: 13.5px; color: var(--grigio); }
.contact-cta a { color: var(--blu); font-weight: 600; text-decoration: none; }
.contact-cta a:hover { text-decoration: underline; }

/* ─── PRINCIPLE CARDS ─── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.principle-card {
  background: var(--bianco);
  border: 1px solid rgba(0,119,182,0.1);
  border-top: 3px solid var(--blu);
  border-radius: 0 0 var(--r) var(--r);
  padding: 1.25rem 1.5rem;
  transition: transform var(--tr), box-shadow var(--tr);
}
.principle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,119,182,0.08);
}
.principle-card p { font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ─── COOKIE TYPE BADGES ─── */
.cookie-type {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bianco);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.cookie-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.cookie-badge.tecnico { background: #E8F4FB; color: var(--blu); }
.cookie-badge.analitico { background: #EDF7F1; color: var(--verde); }
.cookie-badge.terze { background: #FFF5E6; color: #C06C00; }
.cookie-type h4 { font-size: 14px; font-weight: 600; color: var(--testo); margin-bottom: 3px; }
.cookie-type p { font-size: 13px; color: var(--grigio); line-height: 1.5; margin: 0; }

/* ─── BLOG CARD (blog.html) ─── */
.blog-article-card {
  background: var(--bianco);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r);
  margin-bottom: 1.25rem;
  text-decoration: none;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 180px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  position: relative;
  overflow: hidden;
}
.blog-article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blu);
  transition: height 0.35s ease;
  z-index: 2;
}
.blog-article-card:hover::before { height: 100%; }
.blog-article-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,119,182,0.09);
  border-color: rgba(0,119,182,0.2);
}

/* ─── CARD IMAGE ─── */
.blog-card-img {
  position: relative;
  overflow: hidden;
  background: var(--blu-ch);
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.blog-article-card:hover .blog-card-img img {
  transform: scale(1.05);
}
/* Placeholder gradient when no image is present */
.blog-card-img:not(:has(img)),
.blog-card-img:has(img[src=""]),
.blog-card-img.no-image {
  background: linear-gradient(135deg, var(--blu-ch) 0%, rgba(0,119,182,0.18) 100%);
}
/* Category color accent overlay */
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,119,182,0.15), transparent);
  pointer-events: none;
}

/* ─── CARD BODY ─── */
.blog-card-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-article-card h2 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--testo);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.blog-article-card p {
  font-size: 14px;
  color: var(--grigio);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.blog-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blu);
  background: var(--blu-ch);
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-date-s { font-size: 12px; color: rgba(94,110,122,0.6); }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blu);
  letter-spacing: 0.04em;
}
.blog-read-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--tr); }
.blog-article-card:hover .blog-read-more svg { transform: translateX(4px); }

/* Responsive: stack vertically on mobile */
@media (max-width: 600px) {
  .blog-article-card {
    grid-template-columns: 1fr;
    grid-template-rows: 160px auto;
  }
  .blog-card-img {
    width: 100%;
    height: 160px;
  }
  .blog-card-body {
    padding: 1.25rem 1.25rem;
  }
}

/* ─── NEWSLETTER FORM ─── */
.nl-form-wrap {
  background: var(--crema);
  border: 1px solid rgba(0,119,182,0.1);
  border-radius: var(--r);
  padding: 2rem;
  margin-top: 1.5rem;
}
.nl-form-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grigio);
  margin-bottom: 6px;
  margin-top: 1.25rem;
}
.nl-form-wrap label:first-child { margin-top: 0; }
.nl-form-wrap input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,119,182,0.2);
  border-radius: 6px;
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--testo);
  background: var(--bianco);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.nl-form-wrap input:focus {
  border-color: var(--blu);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
.nl-submit {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blu);
  color: white;
  border: none;
  padding: 13px 28px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.nl-submit:hover {
  background: var(--blu-sc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,119,182,0.3);
}
.nl-privacy-note {
  margin-top: 1.25rem;
  font-size: 12.5px;
  color: rgba(94,110,122,0.7);
  line-height: 1.6;
}

/* ─── THANK YOU PAGE ─── */
.thankyou-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 76px);
  padding: 3rem 2rem;
}
.ty-check {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #2E9E5B, #1a6e3c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(46,158,91,0.3);
}
.ty-check svg { width: 32px; height: 32px; stroke: white; fill: none; stroke-width: 2.5; }
.ty-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--testo);
  margin-bottom: 0.75rem;
}
.ty-lead { font-size: 16px; color: var(--grigio); max-width: 420px; line-height: 1.7; margin-bottom: 2rem; }

/* ─── ARTICLE PAGE ─── */
.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.article-content {
  color: var(--testo);
  line-height: 1.85;
  font-size: 16px;
}
.article-content h2 {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--testo);
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}
.article-content p { color: var(--grigio); margin-bottom: 1rem; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1.5rem 0; }
.article-aside {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--crema);
  border-radius: var(--r);
  border: 1px solid rgba(0,119,182,0.1);
  font-size: 14px;
  color: var(--grigio);
}
.article-aside strong { color: var(--blu); }

/* ─── FOOTER MINI (pagine secondarie) ─── */
.page-footer {
  background: var(--testo);
  padding: 1.5rem 2rem;
  text-align: center;
}
.page-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.pf-logo {
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.pf-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.pf-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color var(--tr); }
.pf-links a:hover { color: rgba(255,255,255,0.7); }
.pf-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 680px) {
  .page-header { padding: 100px 1.25rem 40px; }
  .page-body { padding: 2rem 1.25rem 4rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .page-footer-inner { flex-direction: column; text-align: center; }
  .pf-links { justify-content: center; }
}
