/* Stili comuni ai tre siti. I colori arrivano dalle variabili --brand-* del tema. */
@font-face { font-family: "Quicksand"; font-weight: 500; font-display: swap; src: url("../fonts/quicksand-500.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-display: swap; src: url("../fonts/quicksand-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-700.woff2") format("woff2"); }

body { font-size: 1.0625rem; }
:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Barra superiore */
.topbar { background: var(--brand-1); color: #fff; font-size: .9rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Navigazione */
.site-nav { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.site-nav .navbar-brand img { height: 56px; width: auto; }
.site-nav .navbar-brand.wide img { height: 52px; }
.site-nav .brand-name { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--brand-1); font-size: 1.35rem; line-height: 1.1; }
.site-nav .brand-name small { display: block; font-weight: 500; font-size: .75rem; color: #555; }
.site-nav .nav-link { font-weight: 700; color: #333; }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link[aria-current="page"] { color: var(--brand-1); }
.site-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand-1); }
@media (max-width: 991.98px) { .site-nav .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand-1); padding-left: .75rem; } }

/* Hero con forme organiche (ispirate al logo del gruppo) */
.hero { position: relative; overflow: hidden; background: var(--brand-tint); padding: 5rem 0 4.5rem; }
.hero h1 { color: var(--brand-1); font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hero .lead { font-size: 1.25rem; max-width: 38rem; color: #333; }
.hero .blob { position: absolute; border-radius: 50%; opacity: .9; pointer-events: none; }
.hero .blob.b1 { width: 340px; height: 300px; right: -60px; top: -80px; background: var(--brand-2); border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; }
.hero .blob.b2 { width: 120px; height: 120px; right: 260px; top: 60px; background: var(--brand-3); }
.hero .blob.b3 { width: 260px; height: 200px; right: 80px; bottom: -90px; background: var(--brand-1); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; opacity: .85; }
@media (max-width: 767.98px) { .hero .blob { opacity: .25; } }
.page-hero { background: var(--brand-tint); padding: 3rem 0 2.5rem; border-bottom: 4px solid var(--brand-2); }
.page-hero h1 { color: var(--brand-1); margin: 0; }

section.block { padding: 4rem 0; }
section.block.alt { background: #f8f9fa; }
.section-title { color: var(--brand-1); margin-bottom: .5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; margin-top: .6rem; background: linear-gradient(90deg, var(--brand-2) 0 50%, var(--brand-3) 50% 100%); }

/* Card */
.card { border: 0; box-shadow: 0 4px 20px rgba(0,0,0,.07); border-radius: 1rem; transition: transform .15s, box-shadow .15s; }
.card:has(.stretched-link):hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.card .stretched-link { color: inherit; text-decoration: none; }
.card .stretched-link:hover { color: var(--brand-1); }
.service-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem; background: var(--brand-tint); color: var(--brand-1); margin-bottom: 1rem; }
.news-placeholder { height: 160px; display: grid; place-items: center; font-size: 3rem; color: var(--brand-1); background: var(--brand-tint); border-radius: 1rem 1rem 0 0; }
.news-card .card-img-top { height: 180px; object-fit: cover; }
.badge-cat { background: var(--brand-1); color: #fff; }
.empty-state { padding: 2rem; text-align: center; border: 2px dashed #ccc; border-radius: 1rem; color: #555; }
.job-meta li { margin-right: 1.25rem; color: #444; }
.event-box { background: var(--brand-tint); border-left: 5px solid var(--brand-1); padding: 1rem 1.25rem; border-radius: .5rem; margin: 1rem 0; }
.article-body, .lead-text { max-width: 46rem; }

/* 5x1000 */
.cta-5x1000 { background: var(--brand-1); color: #fff; border-radius: 1.5rem; padding: 2.5rem; position: relative; overflow: hidden; }
.cta-5x1000 .cf { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: .05em; background: #fff; color: var(--brand-1); display: inline-block; padding: .25rem 1rem; border-radius: .5rem; }
.cta-5x1000 .btn-light { color: var(--brand-1); }

/* Rete cooperative */
.rete-card img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.rete-card.current { outline: 3px solid var(--brand-2); }

/* Moduli */
.form-section { background: #fff; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.07); padding: 2rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:focus { outline: none; }

/* Footer */
.site-footer { background: #23262b; color: #d6d8db; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: #b9bdc2; }
.site-footer .footer-logo { background: #fff; padding: .5rem .75rem; border-radius: .5rem; display: inline-block; }
.site-footer .footer-logo img { height: 48px; width: auto; }

.doc-list a { text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
