/* Tema «Vicino di Casa Digitale» — colori e caratteri del sito originale */
@font-face { font-family: "PT Sans"; font-weight: 400; font-display: swap; src: url("../../../vendor/fonts/pt-sans-400.5fe660c3a23b.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-weight: 700; font-display: swap; src: url("../../../vendor/fonts/pt-sans-700.87a1556b696a.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../../../vendor/fonts/poppins-400.9212f6f9860f.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../../../vendor/fonts/poppins-600.72993dddf88a.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../../../vendor/fonts/poppins-700.25b0e113ca7c.woff2") format("woff2"); }

:root {
  --brand: #4b84cb;
  --brand-dark: #0b3a8d;
  --brand-link: #7fb0ea;
  --ink: #212529;
  --ink-2: #2e3857;
  --text-soft: rgba(255, 255, 255, .75);
  --font-body: "PT Sans", Helvetica, Arial, sans-serif;
  --font-head: "Poppins", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.8; color: var(--text-soft); background: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); color: #fff; text-wrap: balance; }
main a { color: var(--brand-link); }

/* Intestazione */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
.site-header .nav-link { font-weight: 700; color: var(--brand-dark); padding-inline: .9rem; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--brand); }

/* Sezioni */
.section { padding: 5rem 0; }
.section + .section { padding-top: 0; }
.section-raised { padding-top: 5rem !important; margin-bottom: 5rem; background: linear-gradient(90deg, var(--brand) 48%, var(--brand-dark) 100%); color: #fff; }
.section-raised .eyebrow { color: #fff; opacity: .85; }
.section-raised a { color: #fff; }
.section-head { max-width: 46rem; margin: 0 auto 3rem; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.section-title { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; margin-bottom: 1rem; }
.section-intro { font-size: 1.15rem; }

/* Apertura */
.hero { background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); }
.hero-title { font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.15; margin-bottom: 1.5rem; }
.lead-text { font-size: 1.15rem; }

/* Pulsanti */
.btn-brand { background: var(--brand); border: 2px solid var(--brand); color: #fff !important; font-weight: 700; border-radius: 100px; padding: .6rem 1.9rem; box-shadow: 0 8px 35px -6px rgba(77, 170, 242, .36); transition: color .3s, background-color .3s; }
.btn-brand:hover, .btn-brand:focus { background: #fff; color: var(--brand) !important; }
.btn-light-brand { background: #fff; color: #0c71c3; font-weight: 700; border-radius: 8px; padding: .6rem 2rem; }
.btn-light-brand:hover, .btn-light-brand:focus { background: #eaf2fb; color: #0c71c3; }

/* Schede */
.card-item { padding: 1.5rem 1rem; }
.card-icon { font-size: 3.5rem; line-height: 1; color: var(--brand); display: block; margin-bottom: 1rem; }
.card-title-up { font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }

/* Carosello di testi */
.text-carousel { border: 6px solid var(--brand); background: linear-gradient(90deg, var(--brand) 48%, var(--brand-dark) 100%); color: #fff; }
.slide-body { max-width: 50rem; margin: 0 auto; padding: 4rem 4.5rem 5rem; text-align: center; min-height: 22rem; display: flex; flex-direction: column; justify-content: center; }
.slide-title { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.text-carousel .carousel-control-prev, .text-carousel .carousel-control-next { width: 4rem; }
@media (max-width: 575.98px) { .slide-body { padding: 3rem 2.75rem 4.5rem; min-height: 30rem; } }

/* Form di contatto */
.contact-form .form-control { border: 0; border-radius: 8px; padding: .9rem 1rem; background: #fff; }
.contact-form .form-check-label { color: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Riquadri */
.callout-img { max-width: 280px; margin-top: 1rem; }

/* Domande frequenti */
.faq { max-width: 50rem; }
.faq-item { background: #f4f4f4; color: #444; border-radius: 30px; padding: 1.1rem 1.75rem; margin-bottom: 1rem; }
.faq-item[open] { background: #fff; }
.faq-item summary { font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #333; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-top: .75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--brand-dark); }

/* Piè di pagina */
.site-footer { background: #fff; color: #3a6fb3; padding: 3.5rem 0; }
.footer-icon { font-size: 3.25rem; line-height: 1; color: var(--brand-dark); }
.footer-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--brand-dark); margin: .75rem 0 .25rem; }
.site-footer a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
