:root {
    --primary-color: #0047cc;
    --primary-hover: #0036a3;
    --accent-color: #00b36b;
    --text-main: #1a1a24;
    --text-light: #5a5a6a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --transition-speed: 0.3s;
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   HEADER E NAVIGAZIONE
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo-img {
    width: 220px; 
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.desktop-nav {
    margin-left: 30px; 
    margin-right: auto; 
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed);
    white-space: nowrap; /* Prevent wrap su voci di menu lunghe */
}

.desktop-nav a:not(.partner-link):hover,
.desktop-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.desktop-nav a.partner-link {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    border-bottom: none;
}

.desktop-nav a.partner-link:hover {
    background-color: #00995a;
    color: white;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toll-free-cool {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.tf-icon {
    background: var(--accent-color);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 179, 107, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 179, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 179, 107, 0); }
}

.tf-text {
    display: flex;
    flex-direction: column;
}

.tf-text .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.tf-text .number {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

.btn-area-clienti {
    background: linear-gradient(135deg, var(--primary-color), #00d1ff);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 71, 204, 0.3);
    border: none;
    cursor: pointer;
}

.btn-area-clienti:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 204, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    background: var(--bg-white);
    position: fixed;
    top: 110px;
    width: 100%;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a.active {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.mobile-nav a.partner-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 10px;
    border-left: none;
}

.mobile-nav a.partner-link:hover {
    background-color: #00995a;
    color: white;
}

/* ==========================================================================
   PULSANTI GLOBALI
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
    border: 2px solid;
}

.btn-outline.blue {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline.blue:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline.green {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline.green:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ==========================================================================
   SEZIONI E COMPONENTI
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 110px;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    color: white;
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide h2 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.slide p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.slide-no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f5c 100%);
    justify-content: center;
}

.slide-no-image .slide-content {
    max-width: 800px;
    margin: 0 auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: white;
    color: var(--text-main);
}

.prev { left: 30px; }
.next { right: 30px; }

.slider-progress-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    width: 300px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: white;
    transition: none; 
}

.progress-track.active .progress-fill {
    width: 100%;
    transition: width 6000ms linear;
}

.progress-track.passed .progress-fill {
    width: 100%;
    transition: none;
}

/* Quick Actions */
.quick-actions-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -50px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

.qa-item {
    background: var(--bg-white);
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
}

.qa-item:hover {
    background: var(--primary-color);
    color: white;
}

.qa-item i {
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
    transition: 0.3s;
}

.qa-item:hover i {
    color: white;
}

.qa-item span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Offerte in evidenza */
.section-offers {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.flex-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0 0 0;
}

.offer-tag {
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    text-transform: uppercase;
}

.offer-tag.green-tag { background: #dcfce7; color: var(--accent-color); }
.offer-tag.orange-tag { background: #fef3c7; color: #d97706; }
.offer-tag.white-tag { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }

.view-all-link {
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.view-all-link:hover { text-decoration: underline; }

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.offers-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 850px;
    margin: 0 auto;
}

.offer-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-speed);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Classe per simulare l'effetto hover via JavaScript */
.offer-card.simulated-hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.offer-card.simulated-hover .offer-icon-box i {
    transform: scale(1.15);
}

.offer-icon-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 75px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.offer-icon-box i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offer-card:hover .offer-icon-box i {
    transform: scale(1.15);
}

.offer-icon-box.luce-casa,
.offer-icon-box.gas-casa { 
    color: var(--accent-color); 
    background-color: #ecfdf3; 
}

.offer-icon-box.luce-azienda,
.offer-icon-box.gas-azienda { 
    color: var(--primary-color); 
    background-color: #eef4ff; 
}

.offer-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-body .btn-primary {
    margin-top: auto !important; 
}

.offer-body h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 15px 0 10px;
}

.offer-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    min-height: 45px;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 20px 0;
    line-height: 1.1;
}

.offer-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.offer-features {
    list-style: none;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.offer-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-features i {
    color: var(--accent-color);
}

/* Services */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon svg {
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .card-icon svg {
    transform: scale(1.15);
}

.service-card h4 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    text-decoration: underline;
}

/* Report Form Section */
.report-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #002d80);
    color: white;
}

.report-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.report-text h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.report-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.report-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Righe con due campi affiancati: su schermi stretti diventano una colonna */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row.form-row-1-2 {
    grid-template-columns: 1fr 2fr;
}

@media (max-width: 600px) {
    .form-row,
    .form-row.form-row-1-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Messaggio di errore e suggerimento sotto il singolo campo */
.field-msg {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #b3261e;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.field-hint button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

/* Il messaggio del consenso privacy va a capo sotto casella ed etichetta */
.form-group.form-check {
    flex-wrap: wrap;
}

.form-group.form-check .field-msg {
    flex-basis: 100%;
    margin-top: 0;
}

/* Esito invio form e campi con errore */
.form-control.field-error {
    border-color: #d93025;
}

input[type="checkbox"].field-error {
    outline: 2px solid #d93025;
}

.form-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.form-status ul {
    margin: 8px 0 0 18px;
    font-weight: 400;
}

.form-status.success {
    background: #e6f7ef;
    color: #00794a;
}

.form-status.error {
    background: #fdecea;
    color: #b3261e;
}

/* Campo anti-spam: nascosto agli utenti, visibile solo ai bot */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Utilities */
.utilities-section {
    padding: 80px 0 30px; /* Ridotto il padding inferiore da 80px a 40px */
}

.utilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.utility-box {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.utility-box.box-blue {
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 71, 204, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 71, 204, 0.04) 0%, transparent 40%);
}

.utility-box.box-green {
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 179, 107, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 179, 107, 0.04) 0%, transparent 40%);
}

.utility-box.box-blue:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 71, 204, 0.1);
    transform: translateY(-5px);
}

.utility-box.box-green:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 179, 107, 0.1);
    transform: translateY(-5px);
}

.utility-icon {
    margin-bottom: 24px;
}

.utility-icon svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.utility-box:hover .utility-icon svg {
    transform: scale(1.15);
}

.utility-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.utility-content p {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--text-light);
}


/* FAQ */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pro-footer {
    background-color: #293857; /* blu scuro del logo Gibbs */
    color: #e2e8f0;
}

.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    margin-bottom: 60px;
}

.footer-contact-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1;
    min-width: 280px;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-btn-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-btn:hover .contact-btn-icon {
    background: var(--accent-color);
}

.contact-btn-text {
    display: flex;
    flex-direction: column;
}

.contact-btn-text .contact-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-btn-text .contact-value {
    color: white;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-logo-img {
    width: 250px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.certifications {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-links h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.footer-location svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-location span {
    color: #94a3b8;
    font-size: 14px;
    display: block;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.footer-links ul li::before {
    content: '➔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    color: #94a3b8;
    font-size: 14px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    line-height: 1.4;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    display: inline-block;
    padding: 10px 0;
}

.legal-links a:hover {
    color: white;
}

/* ==========================================================================
   PAGINA CONTATTI / PAGINE INTERNE
   ========================================================================== */
.page-hero {
    margin-top: 110px;
    height: 40vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-info-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-page-form {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-text-block h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.contact-text-block p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-block {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVITÀ)
   ========================================================================== */
@media (max-width: 1150px) {
    .desktop-nav { display: none; }
    .toll-free-cool { display: none; }
    .mobile-menu-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .utilities-grid { grid-template-columns: 1fr; }
    .slide h2 { font-size: 40px; }
    .offers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container { height: 90px; }
    .header-logo-img { width: 170px; }
    .btn-area-clienti { padding: 10px 16px; font-size: 13px; }
    .quick-actions { grid-template-columns: 1fr; margin: 0; }
    .quick-actions-wrapper { margin-top: -30px; }
    .flex-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .offers-grid { grid-template-columns: 1fr; }
    .offers-grid-2 { grid-template-columns: 1fr; }
    .report-container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact-bar { flex-direction: column; text-align: center; }
    .contact-btn { width: 100%; justify-content: flex-start; }
    .bottom-flex { flex-direction: column; text-align: center; gap: 20px; align-items: center; }
    .legal-links a { margin: 0 10px; display: inline-block; margin-bottom: 10px; }
    .slide-content { padding: 0 20px; text-align: center; }
    .certifications { justify-content: center; }
    .footer-brand { text-align: center; }
    .footer-brand p { margin: 0 auto 30px; text-align: center; }
    .footer-logo-img { margin: 0 auto 20px; display: block; width: 200px; }
    .slider-progress-container { width: 80%; }
    
    .page-hero {
        margin-top: 90px;
        height: 30vh;
        min-height: 280px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .contact-page-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-block {
        padding: 25px;
    }
}

/* ==========================================================================
   PAGINA MODULISTICA
   ========================================================================== */
.pdf-category-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.pdf-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pdf-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-speed);
}

.pdf-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pdf-icon {
    font-size: 40px;
    color: #e74c3c; /* Colore rosso icona PDF */
    margin-right: 20px;
    flex-shrink: 0;
}

.pdf-info {
    flex-grow: 1;
}

.pdf-info h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.3;
}

.pdf-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.pdf-action {
    margin-left: 20px;
    flex-shrink: 0;
}

.pdf-action .btn-outline {
    padding: 8px 16px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pdf-list {
        grid-template-columns: 1fr;
    }
    .pdf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .pdf-action {
        margin-left: 0;
        width: 100%;
    }
    .pdf-action .btn-outline {
        display: block;
        text-align: center;
    }
}


/* Trova questa regola e modificala così */
.section-evidence {
    padding-top: 50px; /* Aumentato leggermente per estetica col fascione */
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--primary-color), #002d80); /* Fascione come report-section */
}

/* Aggiungi queste per rendere i testi dell'header leggibili sullo sfondo scuro */
.section-evidence .section-header h3 {
    color: white;
}

.section-evidence .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Layout Grid e Box Istituzionali --- */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.evidence-card {
    grid-column: span 2;
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    border: none;
    display: flex;
    flex-direction: column; /* Necessario per l'allineamento dei bottoni */
    height: 100%;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color); /* Bordo superiore colorato */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Ombra più marcata */
}

.evidence-card.wide {
    grid-column: span 3;
}

/* --- Icone Grandi con Sfondo --- */
.evidence-icon {
    font-size: 38px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
    background: var(--bg-light);
}

/* --- Gestione Testo e Footer (Allineamento Bottoni) --- */
.evidence-body {
    flex-grow: 1; /* Spinge il footer sempre in fondo */
}

.evidence-body h4 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.evidence-body p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.evidence-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.evidence-link {
    padding: 10px 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.evidence-link.download { color: var(--accent-color); }

/* --- Varianti Colore --- */
.card-green { border-top-color: #00b36b; }
.card-green .evidence-icon { color: #00b36b; background: #e6f7f0; }

.card-amber { border-top-color: #f39c12; }
.card-amber .evidence-icon { color: #f39c12; background: #fef5e7; }

.card-blue { border-top-color: #00d1ff; }
.card-blue .evidence-icon { color: #00d1ff; background: #e6faff; }

.card-indigo { border-top-color: #0047cc; }
.card-indigo .evidence-icon { color: #0047cc; background: #eef4ff; }

.card-red { border-top-color: #e74c3c; }
.card-red .evidence-icon { color: #e74c3c; background: #fdedec; }

.evidence-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* --- Responsività --- */
@media (max-width: 1024px) {
    .evidence-grid { grid-template-columns: repeat(2, 1fr); }
    .evidence-card, .evidence-card.wide { grid-column: span 1; }
}

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

/* Multi-step Form Styles */
.form-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.step-dot {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    opacity: 0.5;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap; /* Evita che il testo "1. Quando" vada su due righe su mobile */
    padding: 0 5px;
}

.step-dot.active {
    color: var(--primary-color);
    opacity: 1;
    position: relative;
}

.step-dot.active::after {
    content: '';
    position: absolute;
    bottom: -17px; /* Allineato col border-bottom del contenitore */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px 4px 0 0;
}

.step-dot.completed {
    color: var(--accent-color);
    opacity: 1;
}

#summary-content p {
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}
#summary-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
#summary-content strong {
    color: var(--primary-color);
}

/* ==========================================================================
   FOOTER: PULSANTE CONTATTI (stesso stile del pulsante Area Clienti)
   ========================================================================== */
.footer-links .btn-footer-contatti {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 26px;
    margin-bottom: 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), #00d1ff);
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 71, 204, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-links .btn-footer-contatti:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 209, 255, 0.35);
}

.footer-links .btn-footer-contatti:focus-visible {
    outline: 2px solid #00d1ff;
    outline-offset: 3px;
}

.btn-footer-contatti .btn-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-footer-contatti:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVITÀ: TELEFONI PICCOLI E AREE DI TOCCO
   ========================================================================== */

/* Caselle dei consensi privacy più grandi e facili da toccare */
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 480px) {
    /* Form segnalazioni truffe: più spazio utile e passaggi leggibili */
    .report-form-wrapper { padding: 24px 18px; }
    .contact-form-block { padding: 22px 18px; }
    .service-card { padding: 30px 24px; }
    .step-dot { font-size: 11.5px; padding: 0 2px; }
    .step-dot.active::after { width: 28px; }
    .report-text h3 { font-size: 28px; }
    .report-text p { font-size: 16px; }
}

@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .header-actions { gap: 12px; }
    .header-logo-img { width: 140px; }
}

@media (max-width: 360px) {
    /* Sui telefoni più stretti il pulsante Area Clienti diventa solo icona */
    .btn-area-clienti { padding: 0; width: 42px; height: 42px; justify-content: center; }
    .btn-area-clienti .btn-label { display: none; }
}

/* ==========================================================================
   PULSANTE "TORNA SU"
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 900;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #00d1ff);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 71, 204, 0.35);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top i {
    position: relative;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .back-to-top.visible:hover {
        box-shadow: 0 8px 26px rgba(0, 209, 255, 0.45);
        transform: translateY(-3px);
    }

    .back-to-top:hover i {
        transform: translateY(-2px);
    }
}

.back-to-top:active {
    transform: scale(0.94);
}

.back-to-top:focus-visible {
    outline: 3px solid #00d1ff;
    outline-offset: 3px;
}

/* Anello di avanzamento della lettura */
.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top-ring circle {
    fill: none;
    stroke-width: 3;
}

.back-to-top-ring .ring-track {
    stroke: rgba(255, 255, 255, 0.25);
}

.back-to-top-ring .ring-progress {
    stroke: white;
    stroke-linecap: round;
    stroke-dasharray: 150.8; /* circonferenza: 2 × π × 24 */
    stroke-dashoffset: 150.8;
}

/* Spazio a destra nella riga finale del footer, così il pulsante non copre i link legali */
@media (min-width: 769px) {
    .footer-bottom .bottom-flex { padding-right: 100px; }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top i {
        transition: none;
    }
}

@media print {
    .back-to-top { display: none !important; }
}


/* ==========================================================================
   AREA CLIENTI: istruzioni app (prima nell'intestazione della pagina)
   ========================================================================== */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

/* ==========================================================================
   IMMAGINI DI TESTATA (attributo data-hero, generato da site_hero() in include/site.php)
   Mobile: versione 960 px; da 961 px in su: versione 1920 px.
   ========================================================================== */
[data-hero] {
    background-color: #0b1a3a;
    background-image: var(--hero-overlay, none), var(--hero-sm, none);
    background-size: cover;
    background-position: center;
}

@media (min-width: 961px) {
    [data-hero] {
        background-image: var(--hero-overlay, none), var(--hero-lg, none);
    }
}

/* ==========================================================================
   VERSIONE LEGGERA (classe "lite" su <html>, impostata da include/head.php)
   ========================================================================== */

/* Caratteri del dispositivo al posto di Inter (non scaricato) */
html.lite body,
html.lite input,
html.lite select,
html.lite textarea,
html.lite button,
html.lite .form-control {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Testate: solo sfumatura sul colore del brand, nessuna foto */
html.lite [data-hero] {
    background-color: #0b2a6b;
    background-image: var(--hero-overlay, none) !important; /* la foto non viene scaricata */
}

/* Nessuna animazione o transizione */
html.lite *,
html.lite *::before,
html.lite *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Pannello nel footer */
.lite-panel {
    margin-top: 28px;
    max-width: 320px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.lite-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lite-panel-title {
    color: white;
    font-weight: 700;
    font-size: 15px;
}

.lite-panel-title i {
    color: #cbd5e1; /* colore neutro: nessun richiamo "green" (guida ARTE) */
    margin-right: 6px;
}

.lite-panel-desc {
    margin: 8px 0 0 !important;
    max-width: none !important;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: left !important;
}

.lite-panel-weight {
    margin: 8px 0 0 !important;
    font-size: 12px;
    color: #cbd5e1;
    text-align: left !important;
}

.lite-panel-weight strong {
    color: white;
}

/* Interruttore */
.lite-switch {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.25s ease;
}

.lite-switch::before {
    /* area di tocco più ampia del disegno */
    content: '';
    position: absolute;
    inset: -8px;
}

.lite-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.lite-switch[aria-checked="true"] {
    background: var(--accent-color);
}

.lite-switch[aria-checked="true"] .lite-switch-knob {
    transform: translateX(20px);
}

.lite-switch:focus-visible {
    outline: 2px solid #00d1ff;
    outline-offset: 3px;
}

.lite-switch:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 768px) {
    .lite-panel {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Chi ha chiesto al sistema meno animazioni non vede movimenti superflui, anche in versione normale */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide-content,
    .offer-card,
    .service-card {
        transition: none !important;
    }
}

/* ==========================================================================
   PAGINE LEGALI (privacy.php, condizioni.php)
   ========================================================================== */
.page-hero-compact {
    height: auto;
    min-height: 0;
    padding: 70px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f5c 100%);
}

.page-hero-compact h1 { font-size: 40px; }

.legal-section {
    padding: 60px 0 90px;
    background-color: var(--bg-light);
}

.legal-doc {
    max-width: 820px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
}

.legal-doc h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 36px 0 10px;
}

.legal-doc h2:first-child { margin-top: 0; }

.legal-doc p,
.legal-doc li { margin-bottom: 10px; overflow-wrap: anywhere; }

.legal-doc ul { padding-left: 20px; }

.legal-doc a { color: var(--primary-color); }

.legal-doc .legal-updated {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .page-hero-compact { padding: 50px 0 40px; }
    .page-hero-compact h1 { font-size: 30px; }
    .legal-section { padding: 40px 0 60px; }
    .legal-doc { font-size: 15px; }
}

/* ==========================================================================
   RICERCA & SVILUPPO (ricerca-sviluppo.php) - stile "laboratorio"
   Testata disegnata solo in CSS: nessuna immagine da scaricare.
   ========================================================================== */
.lab-hero {
    position: relative;
    margin-top: 110px;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 72% 50%, rgba(0, 110, 255, 0.28) 0%, rgba(0, 20, 60, 0.15) 35%, transparent 60%),
        #03060d;
}

.lab-hero-content { position: relative; z-index: 2; width: 100%; }

.lab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4da3ff;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.lab-hero h1 {
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.lab-hero p {
    max-width: 520px;
    font-size: 19px;
    line-height: 1.6;
    color: #a9b4c4;
}

.lab-steps-mini {
    margin-top: 26px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b7686;
}

.lab-gradient-text {
    background: linear-gradient(90deg, #2f8bff 0%, #4fc3f7 45%, #34c77b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sfera e orbite */
.lab-hero-visual {
    position: absolute;
    top: 50%;
    left: 72%;
    width: 0;
    height: 0;
    z-index: 1;
}

.lab-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    left: -150px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #d9f1ff 0%, #4fb2ff 18%, #0a7cff 45%, #0047cc 75%, #062f7a 100%);
    box-shadow: 0 0 120px rgba(10, 124, 255, 0.45), inset -20px -30px 60px rgba(0, 20, 80, 0.45);
    animation: lab-float 9s ease-in-out infinite;
}

.lab-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(79, 195, 247, 0.22);
}

.lab-orbit-1 { width: 640px; height: 220px; left: -320px; top: -110px; transform: rotate(-14deg); }
.lab-orbit-2 { width: 560px; height: 300px; left: -280px; top: -150px; transform: rotate(22deg); border-color: rgba(52, 199, 123, 0.18); }
.lab-orbit-3 { width: 820px; height: 820px; left: -410px; top: -410px; border-color: rgba(255, 255, 255, 0.05); }

.lab-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4fc3f7;
    box-shadow: 0 0 12px #4fc3f7;
}

.lab-dot-1 { left: 300px; top: -60px; }
.lab-dot-2 { left: -260px; top: 90px; background: #34c77b; box-shadow: 0 0 12px #34c77b; }
.lab-dot-3 { left: 150px; top: 230px; width: 7px; height: 7px; }

@keyframes lab-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .lab-orb { animation: none; }
}

/* Sezioni */
.lab-section { padding: 100px 0; background: #fff; }
.lab-section-alt { background: #f5f6f8; }
.lab-dark { background: #03060d; color: #fff; }

.lab-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.lab-dark .lab-label { color: #4da3ff; }

.lab-title {
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #1d1d1f;
}

.lab-dark .lab-title { color: #fff; }
.lab-title-muted { color: #86868b; }

.lab-head { margin-bottom: 50px; }
.lab-head-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

.lab-lead {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #8e99a8;
}

.lab-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
}

.lab-intro-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #515154;
    margin-bottom: 16px;
}

.lab-intro-text strong { color: #1d1d1f; }

/* Card */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 22px;
}

.lab-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 34px 30px 32px;
    border: 1px solid #ececf0;
}

.lab-section-alt .lab-card { border-color: transparent; }

.lab-card-num {
    position: absolute;
    top: 26px;
    right: 28px;
    font-size: 13px;
    font-weight: 700;
    color: #c7c7cc;
    letter-spacing: 1px;
}

.lab-card-icon {
    font-size: 28px;
    color: #0a7cff;
    margin-bottom: 26px;
}

.lab-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.lab-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #6e6e73;
}

.lab-card p strong { color: #1d1d1f; }

.lab-card-small .lab-card-icon { margin-bottom: 20px; }
.lab-card-small h3 { font-size: 19px; }

/* Ciclo in sei passaggi */
.lab-cycle {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    margin: 0;
    padding: 0;
}

.lab-cycle::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #2f8bff, #4fc3f7, #34c77b);
    opacity: 0.55;
}

.lab-cycle li { position: relative; text-align: center; }

.lab-step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #03060d;
    border: 2px solid #2f8bff;
    font-size: 20px;
    font-weight: 700;
    color: #4da3ff;
    margin-bottom: 20px;
}

.lab-cycle li:nth-child(4) .lab-step { border-color: #3cc0c9; color: #3cc0c9; }
.lab-cycle li:nth-child(5) .lab-step,
.lab-cycle li:nth-child(6) .lab-step { border-color: #34c77b; color: #34c77b; }

.lab-cycle h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.lab-cycle p { font-size: 14px; line-height: 1.55; color: #8e99a8; }

/* Architettura a livelli */
.lab-arch {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
}

.lab-arch-text p {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.7;
    color: #6e6e73;
}

.lab-stack { display: flex; flex-direction: column; gap: 16px; }

.lab-layer {
    position: relative;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 20px;
    padding: 20px 22px;
}

.lab-layer + .lab-layer::before {
    content: '';
    position: absolute;
    top: -17px;
    left: 50%;
    width: 2px;
    height: 16px;
    background: #d2d2d7;
}

.lab-layer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 12px;
}

.lab-layer-top {
    background: #03060d;
    border-color: #03060d;
    color: #fff;
    box-shadow: 0 18px 40px rgba(10, 124, 255, 0.22);
}

.lab-layer-top .lab-layer-label { color: #4fc3f7; margin-bottom: 4px; }
.lab-layer-top strong { font-size: 24px; font-weight: 800; }
.lab-layer-side { display: block; margin-top: 4px; font-size: 13px; color: #a1a1a6; }

.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.lab-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    background: #f5f6f8;
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
}

.lab-chips-icons span { font-weight: 600; }
.lab-chips-icons i { color: #0a7cff; }

/* Chiusura */
.lab-cta {
    padding: 110px 0;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(10, 124, 255, 0.35) 0%, rgba(52, 199, 123, 0.12) 30%, transparent 60%),
        #03060d;
}

.lab-cta h2 {
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

.lab-cta p {
    max-width: 620px;
    margin: 22px auto 0;
    font-size: 18px;
    line-height: 1.6;
    color: #a9b4c4;
}

.lab-cta-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.lab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.lab-btn-primary { background: #0a7cff; color: #fff; }
.lab-btn-primary:hover { background: #0062d6; transform: translateY(-2px); }
.lab-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.lab-btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* Riquadro "Innovazione" in home */
.home-lab {
    padding: 90px 0;
    color: #fff;
    background:
        radial-gradient(ellipse at 85% 50%, rgba(10, 124, 255, 0.3) 0%, transparent 55%),
        #03060d;
}

.home-lab-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 40px;
    align-items: center;
}

.home-lab h3 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin: 6px 0 16px;
}

.home-lab p {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.65;
    color: #a9b4c4;
}

@media (max-width: 960px) {
    .lab-hero { min-height: 0; padding: 90px 0 260px; }
    .lab-hero-visual { top: auto; bottom: 120px; left: 50%; }
    .lab-orb { width: 200px; height: 200px; left: -100px; top: -100px; }
    .lab-orbit-1 { width: 420px; height: 150px; left: -210px; top: -75px; }
    .lab-orbit-2 { width: 380px; height: 200px; left: -190px; top: -100px; }
    .lab-orbit-3 { width: 560px; height: 560px; left: -280px; top: -280px; }
    .lab-dot-1 { left: 190px; top: -40px; }
    .lab-dot-2 { left: -180px; top: 50px; }
    .lab-dot-3 { left: 90px; top: 110px; }
    .lab-intro, .lab-arch, .home-lab-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lab-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .lab-cycle::before { display: none; }
}

@media (max-width: 600px) {
    .lab-section { padding: 70px 0; }
    .lab-hero { padding: 60px 0 230px; }
    .lab-hero p { font-size: 17px; }
    .lab-cycle { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .lab-cycle li {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 16px;
        text-align: left;
        padding-bottom: 26px;
    }
    .lab-cycle li:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 25px;
        top: 52px;
        bottom: 0;
        width: 2px;
        background: rgba(79, 195, 247, 0.35);
    }
    .lab-step { width: 52px; height: 52px; font-size: 18px; margin: 0; grid-row: span 2; }
    .lab-cycle h3 { margin: 12px 0 4px; }
    .lab-cta { padding: 80px 0; }
    .lab-btn { width: 100%; justify-content: center; }
    .home-lab { padding: 70px 0; }
}

/* Versione leggera: niente bagliori né animazioni */
html.lite .lab-orb { box-shadow: none; }
html.lite .lab-dot { box-shadow: none; }

/* ==========================================================================
   LAVORA CON NOI (lavora-con-noi.php)
   ========================================================================== */
.jobs-section { padding: 80px 0; background: #fff; }
.jobs-section-alt { background: var(--bg-light); }

.jobs-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 40px;
}

.jobs-why-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.jobs-why-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.jobs-why-item p { font-size: 15px; line-height: 1.6; color: var(--text-light); }
.jobs-why-item a { color: var(--primary-color); font-weight: 600; }

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 24px;
}

.job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06); }

.job-card-icon { font-size: 30px; color: var(--primary-color); margin-bottom: 20px; }
.job-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.job-card p { flex: 1; font-size: 15px; line-height: 1.6; color: var(--text-light); margin-bottom: 22px; }

.job-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.job-card-link i { font-size: 13px; transition: transform 0.2s; }
.job-card-link:hover i { transform: translateX(4px); }

.jobs-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 28px;
    border: 1px dashed #cfd5df;
    border-radius: 14px;
}

.jobs-empty i { font-size: 30px; color: #9aa4b2; margin-bottom: 16px; }
.jobs-empty p { font-size: 16px; line-height: 1.6; color: var(--text-light); margin-bottom: 22px; }
.jobs-empty strong { color: var(--text-main); }

.jobs-list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }

.job-position {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.job-position h4 { font-size: 19px; margin-bottom: 6px; color: var(--text-main); }
.job-position p { font-size: 15px; color: var(--text-light); line-height: 1.55; }

.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; font-size: 14px !important; }
.job-meta i { color: var(--primary-color); margin-right: 4px; }

.jobs-form-wrap { max-width: 760px; margin: 0 auto; }
.jobs-form-wrap .section-header { margin-bottom: 36px; }

.jobs-form {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.jobs-form select.form-control { cursor: pointer; appearance: auto; background-color: #fff; }
.jobs-file { padding: 10px; cursor: pointer; }
.jobs-file-note { display: block; margin-top: 6px; font-size: 13px; color: var(--text-light); }

@media (max-width: 600px) {
    .jobs-section { padding: 60px 0; }
    .jobs-form { padding: 24px 18px; }
    .job-position { flex-direction: column; align-items: flex-start; }
}

/* Campi nascosti dei form (es. campi dei profili non scelti): prevale su display:grid/flex delle righe */
.custom-form [hidden] { display: none !important; }

/* Footer su blu del logo: testi secondari più chiari per una lettura comoda (contrasto oltre 6:1) */
.pro-footer .footer-brand p,
.pro-footer .footer-location span,
.pro-footer .footer-links a,
.pro-footer .footer-bottom,
.pro-footer .legal-links a,
.pro-footer .lite-panel-desc {
    color: #c3cddb;
}

/* ==========================================================================
   SLIDE DELLA HOME CON ILLUSTRAZIONE VETTORIALE (assets/illustrations/*.svg, inserite con site_illustration())
   Desktop: testo a sinistra, illustrazione a destra. Mobile: illustrazione più piccola sotto il testo.
   ========================================================================== */
.slide.slide-art {
    background:
        radial-gradient(circle at 78% 40%, rgba(83, 178, 227, 0.28) 0%, transparent 45%),
        linear-gradient(120deg, #1d2a47 0%, #293857 38%, #0047cc 100%);
}

.slide.slide-art-2 {
    background:
        radial-gradient(circle at 75% 35%, rgba(83, 178, 227, 0.28) 0%, transparent 45%),
        linear-gradient(120deg, #1d2a47 0%, #24407a 40%, #0a5bd6 100%);
}

.slide.slide-art-3 {
    background:
        radial-gradient(circle at 76% 38%, rgba(0, 209, 255, 0.22) 0%, transparent 45%),
        linear-gradient(120deg, #1d2a47 0%, #293857 38%, #0062e0 100%);
}

.slide-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 32px;
    width: 100%;
    padding-bottom: 56px; /* spazio per la barra di avanzamento */
}

.slide-split .slide-content { max-width: 560px; }

.slide-art-figure {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

.slide.active .slide-art-figure { opacity: 1; transform: none; }

.slide-art-figure svg {
    width: 100%;
    max-width: 620px;
    height: auto;
    max-height: calc(70vh - 40px);
}

.slide-art .btn-primary { background: #fff; color: var(--primary-color); }
.slide-art .btn-primary:hover { background: #e8f0ff; color: var(--primary-hover); }
.slide-art .btn-area-clienti { width: max-content; }

@media (max-width: 768px) {
    .hero-slider { min-height: 660px; } /* spazio per testo e illustrazione */
    .slide-split { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: center; padding-bottom: 96px; }
    .slide-split .slide-content { max-width: none; }
    .slide-art .btn-area-clienti { margin: 0 auto; }
    .slide-art-figure svg { max-width: 320px; max-height: 190px; }
}

@media (max-height: 620px) and (max-width: 768px) {
    .slide-art-figure { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .slide-art-figure { transition: none; }
}

/* ==========================================================================
   TESTATE DELLE PAGINE INTERNE CON ILLUSTRAZIONE (privati, aziende, pubblica amministrazione)
   Uso:  <section class="page-hero page-hero-art [page-hero-green|page-hero-amber]">
             <div class="container page-hero-split">
                 <div class="page-hero-text"><h1>...</h1><p>...</p></div>
                 <div class="page-hero-figure"><?= site_illustration('nome') ?></div>
   ========================================================================== */
.page-hero.page-hero-art {
    height: auto;
    min-height: 0;
    padding: 44px 0 36px;
    text-align: left;
    background:
        radial-gradient(circle at 76% 45%, rgba(83, 178, 227, 0.26) 0%, transparent 46%),
        linear-gradient(120deg, #1d2a47 0%, #293857 38%, #0047cc 100%);
}

.page-hero.page-hero-green {
    background:
        radial-gradient(circle at 76% 45%, rgba(0, 179, 107, 0.22) 0%, transparent 46%),
        linear-gradient(120deg, #1d2a47 0%, #293857 38%, #0a52c9 100%);
}

.page-hero.page-hero-amber {
    background:
        radial-gradient(circle at 76% 45%, rgba(243, 156, 18, 0.2) 0%, transparent 46%),
        linear-gradient(120deg, #1d2a47 0%, #293857 38%, #0a52c9 100%);
}

.page-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: 100%;
}

.page-hero-art .page-hero-text p { margin: 0; max-width: 540px; }

.page-hero-figure { animation: page-hero-in 0.9s ease both 0.15s; }

.page-hero-figure svg {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    max-height: 360px;
    margin-left: auto;
}

@keyframes page-hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .page-hero.page-hero-art { padding: 36px 0 24px; text-align: center; }
    .page-hero-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .page-hero-art .page-hero-text p { margin: 0 auto; }
    .page-hero-figure svg { max-width: 340px; max-height: 230px; margin: 0 auto; }
}

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

/* Telefoni molto stretti: illustrazione della slide più piccola, così il testo ha respiro */
@media (max-width: 360px) {
    .slide-art-figure svg { max-height: 150px; }
    .page-hero-figure svg { max-height: 200px; }
}

/* ==========================================================================
   CERTIFICAZIONI: footer e barra in home (sotto i riquadri rapidi)
   ========================================================================== */
.footer-links ul.footer-certs li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    color: #c3cddb;
}

.footer-links ul.footer-certs li::before { content: none; }
.footer-certs i { color: var(--accent-color); font-size: 16px; margin-top: 4px; }
.footer-certs span { line-height: 1.45; }
.footer-certs small { display: block; font-size: 12px; color: #aab8cc; letter-spacing: 0.2px; }

/* Riga delle certificazioni in fondo al riquadro dei tasti rapidi (home) */
.qa-certs {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    background: var(--bg-white);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 36px;
}

.qa-certs li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #293857;
    cursor: default;
}

.qa-certs i { font-size: 18px; color: var(--accent-color); }

/* In home le offerte arrivano subito dopo il riquadro: meno spazio vuoto */
.quick-actions-wrapper + .section-offers { padding-top: 64px; }

@media (max-width: 768px) {
    .qa-certs { gap: 10px 22px; padding: 14px 16px; }
    .qa-certs li { font-size: 13px; }
    .quick-actions-wrapper + .section-offers { padding-top: 48px; }
}

/* Footer: orari sotto le sedi */
.footer-links .footer-h5-gap { margin-top: 34px; }
.footer-links .btn-footer-contatti + .social-links { margin-top: 0; }

/* Testo per motori di ricerca e lettori di schermo, non visibile */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PANNELLO CONTATTI NELL'INTESTAZIONE (numero verde + freccia)
   ========================================================================== */
.contact-hub { position: relative; }
.contact-hub .toll-free-cool { padding-right: 8px; }
.tf-toggle {
    width: 28px; height: 28px;
    margin-left: -2px;
    border: 0; border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.tf-toggle:hover, .tf-toggle:focus-visible { background: #e6eefb; color: var(--primary-color); }
.tf-toggle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.tf-toggle i { font-size: 12px; transition: transform .25s ease; }

.contact-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 340px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(14, 30, 70, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 1001;
}
/* ponte invisibile tra riquadro e pannello, così il mouse non lo chiude passando nello spazio vuoto */
.contact-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
/* piccola punta verso la freccia */
.contact-panel::after {
    content: ""; position: absolute; top: -7px; right: 22px;
    width: 12px; height: 12px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}
.contact-hub.open .contact-panel {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.contact-hub.open .tf-toggle i { transform: rotate(180deg); }
@media (hover: hover) {
    .contact-hub:hover .contact-panel {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .2s ease, transform .2s ease, visibility 0s;
    }
    .contact-hub:hover .tf-toggle i { transform: rotate(180deg); }
}

.cp-title {
    margin: 2px 0 8px 10px;
    font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    color: var(--text-light);
}
.cp-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: background-color .2s ease;
}
a.cp-row:hover, a.cp-row:focus-visible { background: var(--bg-light); }
a.cp-row:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.cp-ico {
    flex: none;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #eef4ff; color: var(--primary-color);
    font-size: 15px;
}
.cp-ico-green { background: var(--accent-color); color: #fff; }
.cp-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cp-txt small { font-size: 12px; color: var(--text-light); font-weight: 500; }
.cp-txt strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cp-hours .cp-txt strong { font-size: 14px; }
.cp-links {
    display: flex; justify-content: space-between; gap: 10px;
    margin-top: 8px; padding: 12px 10px 2px;
    border-top: 1px solid var(--border-color);
}
.cp-links a {
    font-size: 13.5px; font-weight: 700;
    color: var(--primary-color); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.cp-links a i { font-size: 11px; transition: transform .2s ease; }
.cp-links a:hover i { transform: translateX(3px); }

/* Contatti nel menu del telefono */
.mobile-nav { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; }
.mobile-contacts { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.mc-title {
    margin: 0 0 12px;
    font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    color: var(--text-light);
}
.mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-nav .mc-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--text-main);
    font-weight: 700; font-size: 15px; line-height: 1.25;
}
.mobile-nav .mc-btn i { color: var(--primary-color); font-size: 17px; flex: none; }
.mobile-nav .mc-btn span { display: flex; flex-direction: column; min-width: 0; }
.mobile-nav .mc-btn small { font-size: 11.5px; font-weight: 500; color: var(--text-light); overflow-wrap: anywhere; }
.mobile-nav .mc-btn-call { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.mobile-nav .mc-btn-call i { color: #fff; }
.mobile-nav .mc-btn-call small { color: rgba(255, 255, 255, .88); }
.mc-hours { margin: 12px 0 4px; font-size: 13px; color: var(--text-light); line-height: 1.5; }
.mc-hours i { color: var(--accent-color); margin-right: 4px; }
.mobile-nav .mc-hours a { display: inline; padding: 0; border: 0; color: var(--primary-color); font-weight: 700; }
.mc-links { list-style: none; margin: 0; padding: 0; }
@media (max-width: 420px) {
    .mc-actions { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MENU DEL TELEFONO: a tutto schermo, icona ☰ che diventa ✕
   ========================================================================== */
.mobile-menu-toggle {
    background: none; border: 0;
    width: 42px; height: 42px; margin-right: -8px; padding: 0;
    align-items: center; justify-content: center;
    border-radius: 12px;
}
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.mobile-menu-toggle span { transition: transform .25s ease, opacity .2s ease; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    height: calc(100vh - 110px); height: calc(100dvh - 110px);
    max-height: none;
    padding: 8px 20px 32px;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border-color);
}
.mobile-nav.active { animation: mnav-in .22s ease; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.menu-open, html.menu-open body { overflow: hidden; }

/* voci con freccetta a destra */
.mobile-nav > ul > li > a:not(.partner-link),
.mobile-nav .mc-links a {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 17px;
    padding: 16px 2px;
}
.mobile-nav > ul > li > a:not(.partner-link)::after,
.mobile-nav .mc-links a::after {
    content: "";
    width: 8px; height: 8px; margin-right: 4px; flex: none;
    border-top: 2px solid #b9c4d6; border-right: 2px solid #b9c4d6;
    transform: rotate(45deg);
}
.mobile-nav a.active::after { border-color: var(--primary-color) !important; }
.mobile-nav > ul > li > a.active { padding-left: 12px; }
.mobile-nav a.partner-link { margin: 16px 0 4px; }

@media (max-width: 768px) {
    .mobile-nav { top: 90px; height: calc(100vh - 90px); height: calc(100dvh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-nav.active { animation: none; }
    .mobile-menu-toggle span { transition: none; }
}

/* ==========================================================================
   BARRA DEL GRUPPO sopra l'intestazione (solo computer, oltre 1150 px)
   ========================================================================== */
.group-bar { display: none; }
@media (min-width: 1151px) {
    .group-bar {
        display: block;
        height: 34px;
        background: #293857;
        color: #c3cddb;
        font-size: 13px;
    }
    .group-bar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .gb-group {
        display: inline-flex; align-items: center; gap: 10px;
        color: #c3cddb; text-decoration: none;
        white-space: nowrap;
    }
    .gb-group strong { color: #fff; font-weight: 700; }
    .gb-mark { width: 16px; height: 16px; flex: none; }
    .gb-areas { color: #8fa1bd; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .18); }
    .gb-group i { font-size: 10px; color: var(--accent-color); transition: transform .2s ease; }
    .gb-group:hover strong, .gb-group:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
    .gb-group:hover i { transform: translateX(3px); }
    .gb-links { display: flex; gap: 22px; }
    .gb-links a { color: #c3cddb; text-decoration: none; font-weight: 600; white-space: nowrap; }
    .gb-links a:hover, .gb-links a:focus-visible, .gb-links a.active { color: #fff; }
    .gb-links a.active { text-decoration: underline; text-decoration-color: var(--accent-color); text-underline-offset: 5px; text-decoration-thickness: 2px; }
    .group-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }

    /* l'intestazione è più alta di 34 px: il contenuto scende di conseguenza */
    .hero-slider, .page-hero, .lab-hero { margin-top: 144px; }
}
@media (min-width: 1151px) and (max-width: 1280px) {
    .gb-areas { display: none; }
    /* portatili: un po' più d'aria tra menu e numero verde */
    .desktop-nav ul { gap: 16px; }
    .header-actions { gap: 14px; }
    .header-logo-img { width: 170px; }
    .header-container { gap: 14px; }
    .desktop-nav a { font-size: 14px; }
    .desktop-nav a.partner-link { padding-left: 14px; padding-right: 14px; }
    .toll-free-cool { gap: 8px; padding-left: 6px; }
    .btn-area-clienti { padding: 12px 20px; }
}
.tf-text .number, .btn-area-clienti, .desktop-nav a { white-space: nowrap; }
.mobile-about { margin-top: 8px; }

/* In evidenza: punti elenco dentro una scheda (es. Bonus sociali) */
.evidence-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.evidence-points li {
    padding: 11px 14px;
    border-radius: 10px;
    background: #f3faf6;
    border-left: 3px solid #00b36b;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
}
.evidence-points strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--text-main); }

/* ==========================================================================
   MODULISTICA (moduli in download/)
   ========================================================================== */
.docs-section { padding: 56px 0 96px; background: var(--bg-light); }

/* tre passi */
.docs-steps {
    list-style: none; margin: 0 0 48px; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    counter-reset: docstep;
}
.docs-steps li {
    counter-increment: docstep;
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 14px; line-height: 1.5; color: var(--text-light);
}
.docs-steps strong { display: block; margin-bottom: 2px; font-size: 15px; color: var(--text-main); }
.docs-steps strong::before { content: counter(docstep) ". "; color: var(--primary-color); }
.docs-step-ico {
    flex: none; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #eef4ff; color: var(--primary-color); font-size: 17px;
}

/* luce | gas */
.docs-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.docs-group { display: grid; gap: 18px; }
.docs-group-title {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 4px;
    font-size: 24px; font-weight: 800; color: var(--text-main);
}
.docs-group-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.docs-group-luce .docs-group-ico { background: #fff4d6; color: #e8a200; }
.docs-group-gas .docs-group-ico { background: #e6eefb; color: var(--primary-color); }

.doc-card {
    display: flex; flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6ec; }
.docs-group-luce .doc-card { border-top: 4px solid #ffb703; }
.docs-group-gas .doc-card { border-top: 4px solid var(--primary-color); }
.doc-head { display: flex; align-items: center; gap: 14px; }
.doc-file {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fdedec; color: #e74c3c; font-size: 21px;
}
.doc-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-main); line-height: 1.3; }
.doc-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--text-light); }
.doc-desc { margin: 16px 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-light); }
.doc-tags { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-tags li {
    padding: 5px 11px; border-radius: 999px;
    background: var(--bg-light); border: 1px solid var(--border-color);
    font-size: 12.5px; font-weight: 600; color: var(--text-main);
}
.doc-btn {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px;
    background: var(--primary-color); color: #fff;
    font-weight: 700; font-size: 14.5px; text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.doc-btn:hover { background: #0039a6; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 71, 204, .25); }
.doc-btn:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.doc-btn-green { background: var(--accent-color); }
.doc-btn-green:hover { background: #00995a; box-shadow: 0 8px 20px rgba(0, 179, 107, .25); }
.doc-btn-ghost { background: #fff; color: var(--primary-color); border: 1px solid #c9d6ec; }
.doc-btn-ghost:hover { background: #eef4ff; box-shadow: none; }

/* altri documenti */
.docs-other-title { margin: 56px 0 18px; font-size: 22px; font-weight: 800; color: var(--text-main); }
.docs-other { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px;
    text-decoration: none; color: var(--text-light);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.doc-row:hover { border-color: #c9d6ec; box-shadow: var(--shadow-lg); }
.doc-row:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.doc-row-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; }
.doc-row-text strong { display: block; font-size: 16px; color: var(--text-main); }
.doc-row-go { color: var(--primary-color); font-size: 16px; }

/* aiuto */
.docs-help {
    margin-top: 40px;
    display: flex; align-items: center; gap: 18px;
    padding: 22px 26px;
    background: linear-gradient(120deg, #293857, #1c3a8a);
    border-radius: 20px;
    color: #c3cddb;
}
.docs-help-ico {
    flex: none; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 21px;
}
.docs-help-text { flex: 1; font-size: 14.5px; line-height: 1.5; }
.docs-help-text strong { display: block; font-size: 18px; color: #fff; margin-bottom: 2px; }
.docs-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.docs-help .doc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.docs-help .doc-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 900px) {
    .docs-steps, .docs-groups, .docs-other { grid-template-columns: 1fr; }
    .docs-groups { gap: 40px; }
    .docs-help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .docs-section { padding: 40px 0 72px; }
    .doc-card { padding: 20px; }
    .doc-btn { align-self: stretch; justify-content: center; }
    .docs-help-actions { width: 100%; flex-direction: column; }
    .docs-help-actions .doc-btn { justify-content: center; align-self: stretch; }
}

/* ==========================================================================
   OFFERTE (dati in include/offerte.php)
   ========================================================================== */
/* --- home: schede compatte --- */
.view-all-links { display: flex; gap: 24px; flex-wrap: wrap; }
.view-all-link i { font-size: 12px; margin-left: 4px; }
.section-offers .offer-icon-box { height: 128px; font-size: 56px; }
.section-offers .offer-body { padding: 26px 24px 26px; }
.offer-name { margin: 12px 0 8px !important; font-size: 21px !important; line-height: 1.2; }
.offer-price-line {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--bg-light);
    font-size: 15px; font-weight: 800; color: var(--text-main);
    line-height: 1.3;
}
.op-index { color: var(--primary-color); }
.op-plus { color: var(--text-light); font-weight: 600; margin: 0 2px; }
.section-offers .offer-desc { min-height: 0; margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.offer-points { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--border-color); display: grid; gap: 9px; }
.offer-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-main); line-height: 1.4; }
.offer-points i { color: var(--accent-color); font-size: 14px; margin-top: 2px; flex: none; }
.offer-cta { display: block; text-align: center; width: 100%; margin-top: auto; }

/* --- pagine Privati / Aziende: schede complete --- */
.offers-page { padding: 64px 0 96px; background: var(--bg-light); }
.offers-page-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.offers-page-head h2 { margin: 0 0 14px; font-size: 32px; font-weight: 800; color: var(--text-main); }
.offers-page-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-light); }
.offers-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1080px; margin: 0 auto; align-items: stretch; }

.offer-detail {
    display: flex; flex-direction: column;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(14, 30, 70, .06);
    scroll-margin-top: 170px;
}
.offer-detail.is-casa { border-top: 5px solid var(--accent-color); }
.offer-detail.is-business { border-top: 5px solid var(--primary-color); }
.offer-detail:target { box-shadow: 0 0 0 3px rgba(0, 71, 204, .25), 0 10px 30px rgba(14, 30, 70, .08); }

.od-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.od-ico {
    flex: none; width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.is-casa .od-ico { background: #ecfdf3; color: var(--accent-color); }
.is-business .od-ico { background: #eef4ff; color: var(--primary-color); }
.od-name { margin: 8px 0 2px; font-size: 26px; font-weight: 800; color: var(--text-main); line-height: 1.15; }
.od-target { margin: 0; font-size: 14px; color: var(--text-light); }

.od-price {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px; margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(120deg, #f5f8fd, #eef4ff);
    border: 1px solid #e3ecfa;
}
.is-casa .od-price { background: linear-gradient(120deg, #f3faf6, #ecfdf3); border-color: #d6f2e3; }
.od-price-label { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-light); }
.od-price-value { font-size: 28px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.od-price-note { font-size: 13.5px; font-weight: 600; color: var(--text-light); }

.od-intro { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: #44516b; }
.od-sub { margin: 12px 0 12px; font-size: 16px; font-weight: 800; color: var(--text-main); }
.od-benefits { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.od-benefits li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--text-main); }
.od-benefits i { flex: none; margin-top: 3px; color: var(--accent-color); font-size: 16px; }

.od-actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border-color); }
.od-cta { padding: 13px 26px; }
.od-call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-radius: 999px;
    border: 1px solid #c9d6ec; color: var(--primary-color);
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.od-call:hover { background: #eef4ff; }
.offers-page-note {
    max-width: 1080px; margin: 28px auto 0;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; line-height: 1.55; color: var(--text-light);
}
.offers-page-note i { color: var(--primary-color); margin-top: 3px; }
.offers-page-note a { color: var(--primary-color); font-weight: 700; text-decoration: none; white-space: nowrap; }
#main-contact-form { scroll-margin-top: 170px; }

@media (max-width: 900px) {
    .offers-detail-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 480px) {
    .offers-page { padding: 44px 0 72px; }
    .offers-page-head h2 { font-size: 26px; }
    .offer-detail { padding: 24px 20px; }
    .od-name { font-size: 22px; }
    .od-price-value { font-size: 23px; }
    .od-actions { flex-direction: column; align-items: stretch; }
    .od-cta, .od-call { justify-content: center; text-align: center; }
}
.op-spread { white-space: nowrap; }

/* ==========================================================================
   ENERGIA LIBERA (home) e COME FUNZIONA / SERVIZI INCLUSI (privati, aziende)
   ========================================================================== */
.brand-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--accent-color);
}
.brand-intro { max-width: 820px; margin-left: auto; margin-right: auto; }
.brand-intro h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; }
.brand-intro p { font-size: 17px; line-height: 1.65; max-width: 720px; margin-left: auto; margin-right: auto; }

.brand-pillars {
    list-style: none; margin: 0 0 56px; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border: 1px solid var(--border-color); border-radius: 18px;
    background: #fff;
}
.brand-pillars li {
    display: flex; flex-direction: column; gap: 6px;
    padding: 26px 26px 24px;
    font-size: 14.5px; line-height: 1.5; color: var(--text-light);
}
.brand-pillars li + li { border-left: 1px solid var(--border-color); }
.brand-pillars strong { font-size: 17px; color: var(--text-main); }
.bp-ico {
    width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #eef4ff; color: var(--primary-color); font-size: 19px;
}

.method-section { padding: 88px 0 96px; background: #fff; }
.method-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.method-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--text-main); line-height: 1.25; }
.method-head-2 { margin-top: 72px; }

.method-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    counter-reset: none;
}
.method-steps li {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    padding: 26px 24px;
    border-radius: 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    font-size: 14.5px; line-height: 1.55; color: var(--text-light);
}
.method-steps strong { font-size: 18px; color: var(--text-main); }
.ms-num {
    width: 38px; height: 38px; margin-bottom: 10px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-color); color: #fff; font-weight: 800; font-size: 16px;
}
/* filo che collega i passi */
.method-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 45px; right: -18px; width: 18px; height: 2px;
    background: #c9d6ec;
}

.service-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; max-width: 1000px; margin: 0 auto; }
.sp-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--border-color); }
.sp-item strong { display: block; margin-bottom: 4px; font-size: 17px; color: var(--text-main); }
.sp-item div > span { font-size: 14.5px; line-height: 1.55; color: var(--text-light); }
.sp-ico {
    flex: none; width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: #ecfdf3; color: var(--accent-color); font-size: 20px;
}
.method-cta { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.method-cta .btn-primary { padding: 15px 28px; }
.method-link { font-weight: 800; color: var(--primary-color); text-decoration: none; }
.method-link i { font-size: 12px; margin-left: 4px; transition: transform .2s ease; }
.method-link:hover i { transform: translateX(3px); }

@media (max-width: 1024px) {
    .brand-pillars { grid-template-columns: 1fr 1fr; }
    .brand-pillars li:nth-child(3) { border-left: 0; }
    .brand-pillars li:nth-child(n+3) { border-top: 1px solid var(--border-color); }
    .method-steps { grid-template-columns: 1fr 1fr; }
    .method-steps li::after { display: none; }
}
@media (max-width: 640px) {
    .brand-pillars { grid-template-columns: 1fr; }
    .brand-pillars li + li { border-left: 0; border-top: 1px solid var(--border-color); }
    .brand-pillars li { padding: 20px; }
    .method-section { padding: 64px 0 72px; }
    .method-steps, .service-points { grid-template-columns: 1fr; }
    .method-head-2 { margin-top: 56px; }
    .method-cta { flex-direction: column; gap: 18px; }
    .method-cta .btn-primary { width: 100%; text-align: center; }
}

/* ==========================================================================
   PUBBLICA AMMINISTRAZIONE
   ========================================================================== */
.pa-intro { padding: 80px 0 40px; background: #fff; }
.pa-intro-text { max-width: 860px; margin: 0 auto; text-align: center; }
.pa-intro-text h2 { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--text-main); line-height: 1.2; }
.pa-intro-text p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--text-light); }
.pa-intro-text strong { color: var(--text-main); }
.pa-trust {
    list-style: none; margin: 40px auto 0; padding: 0; max-width: 1000px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-light);
}
.pa-trust li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-size: 13px; line-height: 1.45; color: var(--text-light); }
.pa-trust li + li { border-left: 1px solid var(--border-color); }
.pa-trust-ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--primary-color); font-size: 18px;
    box-shadow: 0 2px 8px rgba(14, 30, 70, .06);
}
.pa-trust strong { display: block; font-size: 15px; color: var(--text-main); }

.pa-services { padding: 56px 0 88px; background: #fff; }
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pa-card {
    display: flex; flex-direction: column;
    padding: 30px 28px 28px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(14, 30, 70, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pa-card-blue { border-top: 5px solid var(--primary-color); }
.pa-card-green { border-top: 5px solid var(--accent-color); }
.pa-card-amber { border-top: 5px solid #f39c12; }
.pa-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pa-card-ico {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 25px;
}
.pa-card-blue .pa-card-ico { background: #eef4ff; color: var(--primary-color); }
.pa-card-green .pa-card-ico { background: #ecfdf3; color: var(--accent-color); }
.pa-card-amber .pa-card-ico { background: #fef5e7; color: #e08e0b; }
.pa-card-num { font-size: 34px; font-weight: 800; color: #e3e8f2; line-height: 1; }
.pa-card h3 { margin: 0 0 18px; font-size: 21px; font-weight: 800; color: var(--text-main); }
.pa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pa-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.55; color: #44516b; }
.pa-list i { flex: none; margin-top: 3px; color: var(--accent-color); font-size: 15px; }

.pa-method { background: var(--bg-light); }
.pa-method .method-steps li { background: #fff; }

.pa-group { padding: 88px 0; background: #fff; }
.pa-group-lead { margin: 14px auto 0; max-width: 640px; font-size: 16.5px; line-height: 1.6; color: var(--text-light); }
.pa-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.pa-partner {
    display: flex; flex-direction: column; gap: 16px;
    padding: 30px 32px;
    border: 1px solid var(--border-color); border-radius: 22px;
    background: linear-gradient(160deg, #ffffff 40%, #f5f8fd);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pa-partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9d6ec; }
.pa-partner:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.pa-partner-label { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-light); }
.pa-partner img { width: auto; max-width: 240px; height: 56px; object-fit: contain; object-position: left center; }
.pa-partner p { margin: 0; font-size: 15px; line-height: 1.6; color: #44516b; }
.pa-partner-go {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px;
    background: var(--primary-color); color: #fff;
    font-weight: 700; font-size: 14.5px;
    transition: background-color .2s ease;
}
.pa-partner:hover .pa-partner-go { background: #0039a6; }
.pa-partner-go i { font-size: 12px; }

.pa-cta-wrap { padding: 0 0 96px; background: #fff; }
.pa-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 36px 40px;
    border-radius: 24px;
    background: linear-gradient(120deg, #293857, #1c3a8a);
    color: #c3cddb;
}
.pa-cta h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.pa-cta p { margin: 0; font-size: 15.5px; line-height: 1.6; max-width: 620px; }
.pa-cta p a { color: #fff; font-weight: 700; }
.pa-cta-actions { display: flex; align-items: center; gap: 14px; flex: none; flex-wrap: wrap; }
.pa-cta .btn-primary { background: #fff; color: var(--primary-color); padding: 14px 26px; }
.pa-cta .btn-primary:hover { background: #eef4ff; }
.pa-cta-call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 20px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35); color: #fff;
    font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pa-cta-call:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 1024px) {
    .pa-grid { grid-template-columns: 1fr 1fr; }
    .pa-trust { grid-template-columns: 1fr; }
    .pa-trust li + li { border-left: 0; border-top: 1px solid var(--border-color); }
    .pa-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
    .pa-intro { padding: 56px 0 24px; }
    .pa-grid, .pa-partners { grid-template-columns: 1fr; }
    .pa-group { padding: 64px 0; }
    .pa-partner { padding: 24px; }
    .pa-cta { padding: 28px 24px; }
    .pa-cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .pa-cta-actions a { justify-content: center; text-align: center; }
}
.nowrap { white-space: nowrap; }
