/* =========================================================
   SAL 360 — page.css
   Stili condivisi per le pagine secondarie (contatti, faq, chi-siamo,
   servizi-aggiuntivi, sorveglianza-sanitaria, pagine legali).
   Estende style.css. Carica DOPO style.css.
   ========================================================= */

/* ===== Page hero (compatto, sotto l'header) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .breadcrumb {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.page-hero .breadcrumb a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(28, 51, 95, 0.25);
  text-underline-offset: 3px;
}
.page-hero .breadcrumb a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--blue);
  max-width: 18ch;
}
.page-hero .lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 62ch;
}

/* ===== Form helpers ===== */
.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}
.cta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}
.cta-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(97, 140, 190, 0.18);
}
.form-microcopy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== Channels (3 colonne contatti) ===== */
.channels {
  padding: 64px 0;
  background: #fff;
}
.channels h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 32px;
  color: var(--blue);
}
.channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .channels-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.channel-card {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.channel-card:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.channel-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.channel-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--blue);
}
.channel-main {
  font-size: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1.2;
}
.channel-main a { color: var(--blue); text-decoration: none; }
.channel-main a:hover { color: var(--blue-deep); text-decoration: underline; }
.channel-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 6px;
}
.channel-note {
  color: var(--muted) !important;
  font-size: 14px !important;
  margin-top: 8px;
}

/* ===== Map section ===== */
.map-section {
  padding: 64px 0;
  background: var(--blue-bg);
}
.map-section h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 16px;
  color: var(--blue);
}
.lede-soft {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 32px;
}
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  background: #fff;
}
.maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 8px;
}
@media (min-width: 880px) {
  .maps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.map-block { display: flex; flex-direction: column; }
.map-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.map-block .map-wrap { margin-bottom: 12px; }
.map-block .map-addr {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.005em;
}
.address-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .address-cards { grid-template-columns: repeat(3, 1fr); }
}
.address-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.address-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-light);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}
.address-card p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.legal-strip {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ===== Response times ===== */
.response-times {
  padding: 64px 0;
  background: #fff;
}
.response-times h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 32px;
  color: var(--blue);
}
.response-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .response-grid { grid-template-columns: repeat(3, 1fr); }
}
.response-card {
  background: var(--bg-tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.response-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.response-main {
  font-size: 22px;
  font-family: 'Montserrat', sans-serif;
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1.2;
}
.response-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== Next steps (numbered list) ===== */
.next-steps {
  padding: 64px 0;
  background: var(--blue-bg);
}
.next-steps h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 32px;
  color: var(--blue);
  max-width: 22ch;
}
.steps-list {
  display: grid;
  gap: 20px;
}
.steps-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--line);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
}
.steps-list h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--blue);
}
.steps-list p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Existing customer box ===== */
.existing-customer {
  padding: 56px 0 80px;
  background: #fff;
}
.existing-box {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.existing-box h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--blue);
  margin-bottom: 12px;
}
.existing-box > p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 70ch;
}
.existing-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.existing-list li {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.existing-list a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(28, 51, 95, 0.25);
}
.existing-list a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }

/* ===== FAQ list (pagina dedicata) ===== */
.faq-page {
  padding: 56px 0 80px;
  background: #fff;
}
.faq-page-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 980px) {
  .faq-page-grid { grid-template-columns: 280px 1fr; gap: 64px; }
}
.faq-cat-nav { position: sticky; top: 90px; align-self: start; }
.faq-cat-nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}
.faq-cat-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background 0.15s;
}
.faq-cat-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.faq-category {
  margin-bottom: 48px;
}
.faq-category > h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--blue);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ===== Generic content blocks ===== */
.content-block {
  padding: 56px 0;
}
.content-block.alt { background: var(--bg-tint); }
.content-block h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--blue);
  margin-bottom: 16px;
  max-width: 22ch;
}
.content-block h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--blue);
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-block p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 70ch;
  margin-bottom: 14px;
}
.content-block ul {
  margin: 14px 0 18px 0;
  list-style: none;
  padding-left: 0;
}
.content-block ul li {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 28px;
  margin-bottom: 8px;
  position: relative;
}
.content-block ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.content-block strong { color: var(--ink); }

/* ===== Card grid generico (servizi, valori) ===== */
.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.feature-card h3 {
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Pagine legali ===== */
.legal-page {
  padding: 56px 0 80px;
  background: #fff;
}
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--blue);
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 18px;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p,
.legal-content li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
}
.legal-content ol {
  list-style: decimal;
  padding-left: 22px;
}
.legal-content strong { color: var(--ink); }
.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(28, 51, 95, 0.25);
}
.legal-content a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }

.legal-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.legal-notice {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--bg-warning);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}

/* ===== CTA ribbon (riutilizzabile in fondo alle pagine) ===== */
.cta-ribbon {
  background: var(--blue);
  color: #fff;
  padding: 48px 0;
}
.cta-ribbon-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-ribbon-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; }
}
.cta-ribbon h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
  line-height: 1.2;
  max-width: 28ch;
}
.cta-ribbon p { color: rgba(255,255,255,0.85); font-size: 16px; margin-top: 6px; }
.cta-ribbon .btn-primary {
  background: var(--accent);
  color: #fff;
}
.cta-ribbon .btn-primary:hover { background: #DB7B26; }
.cta-ribbon-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-ribbon .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.cta-ribbon .btn-secondary:hover { border-color: #fff; }

/* ===== Mobile menu fix per pagine secondarie ===== */
@media (max-width: 980px) {
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 34px; }
  .channels, .map-section, .response-times, .next-steps, .existing-customer { padding: 48px 0; }
}

/* ===== Modal Area riservata (login placeholder) ===== */
.ar-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ar-modal.open { display: flex; animation: arFadeIn 0.18s ease-out; }
@keyframes arFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ar-dialog {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: arPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes arPopIn { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ar-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0;
  width: 36px; height: 36px;
  font-size: 26px; line-height: 1; color: var(--muted);
  cursor: pointer;
}
.ar-close:hover { color: var(--ink); }
.ar-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 14px;
}
.ar-dialog h3 {
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 6px;
}
.ar-dialog p.ar-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.5;
}
.ar-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 12px 0 6px;
  letter-spacing: 0.01em;
}
.ar-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.ar-form input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(97, 140, 190, 0.18);
}
.ar-form button {
  margin-top: 18px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.ar-form button:hover { background: var(--blue-deep); }
.ar-help {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.ar-help a { color: var(--blue); text-decoration: underline; }
.ar-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-warning);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.ar-msg.show { display: block; }
body.ar-open { overflow: hidden; }
@media (max-width: 480px) {
  .ar-dialog { padding: 26px 22px 22px; }
}
