﻿/* =========================================================
   MANUALE APP RICORRENZE
   style.css
   Versione grafica professionale
   ========================================================= */

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

:root {
    --blu: #174a76;
    --blu-scuro: #0f3555;
    --verde: #00a651;
    --grigio-bg: #f4f7fa;
    --grigio-card: #ffffff;
    --grigio-bordo: #d9e2ec;
    --testo: #263238;
    --testo-soft: #5f6f7a;
    --ombra: 0 8px 24px rgba(15, 53, 85, 0.12);
    --raggio: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--grigio-bg);
    color: var(--testo);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   LAYOUT GENERALE
   ========================================================= */

#wrapper {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: calc(100vh - 70px);
    background: #ffffff;
    box-shadow: var(--ombra);
}


/* =========================================================
   HEADER
   ========================================================= */

#header {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 32px;
    padding: 24px 36px;
    background: #ffffff;
    border-bottom: 4px solid var(--blu);
}

.header-app {
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo-app {
    width: 120px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-title h1 {
    color: var(--blu);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.header-title h2 {
    color: #555;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 14px;
}

.header-links a,
.header-links a:visited {
    color: var(--blu);
    text-decoration: none;
    font-weight: 700;
}

.header-links a:hover {
    color: var(--verde);
    text-decoration: underline;
}

.header-info {
    color: var(--testo-soft);
    font-size: 13px;
}

.header-partner {
    border-left: 1px solid #d0d7de;
    padding-left: 28px;
}

.ida-text {
    margin-bottom: 12px;
    color: var(--blu);
}

.ida-text strong {
    font-size: 20px;
    font-weight: 900;
}

.ida-text span {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.logo-passepartout {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



/* ==========================================
   AZIENDA E LINK HEADER
   ========================================== */

.header-company{
    margin-top:10px;
    line-height:1.4;
}

.header-company strong{
    color:var(--blu);
    font-size:18px;
}

.header-company span{
    color:#666;
    font-size:15px;
    font-style:italic;
}

.header-links{
    margin-top:8px;
    margin-bottom:8px;
    font-size:15px;
}

.header-links a{
    color:var(--blu);
    text-decoration:none;
    font-weight:600;
}

.header-links a:hover{
    color:var(--verde);
    text-decoration:underline;
}

/* =========================================================
   SIDEBAR / INDICE
   ========================================================= */

#sidebar {
    background: #ffffff;
    border-right: 1px solid var(--grigio-bordo);
    min-height: 100%;
}

.menu-title {
    background: var(--blu);
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 18px 14px;
}

.menu {
    list-style: none;
    padding: 16px 0;
}

.menu li {
    border-bottom: 1px solid #edf1f5;
}

.menu li a {
    display: block;
    padding: 13px 24px;
    color: var(--testo);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.menu li a:hover,
.menu li a.menu-attivo {
    background: #eef6ff;
    color: var(--blu);
    border-left: 5px solid var(--verde);
    padding-left: 19px;
    font-weight: 700;
}

.menu li a:hover,
.menu li a.menu-attivo {
    background: #eef6ff;
    color: var(--blu);
    border-left: 5px solid var(--verde);
    padding-left: 19px;
    font-weight: 700;
}

/* =========================================================
   CASELLA RICERCA
   ========================================================= */

.search-box{
    padding:16px;
    border-bottom:1px solid #e4e8ec;
}

.search-box input{
    width:100%;
    padding:10px 12px;
    border:1px solid #cfd8dc;
    border-radius:6px;
    font-size:14px;
    margin-bottom:8px;
}

.search-box button{
    width:100%;
    padding:10px;
    border:none;
    border-radius:6px;
    background:var(--verde);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.search-box button:hover{
    background:var(--blu);
}

/* =========================================================
   CONTENUTO
   ========================================================= */

/* =========================================================
   CONTENUTO
   ========================================================= */

#content {
    padding: 46px 56px;
    background: #ffffff;
    min-width: 0;
}

section {
    margin-bottom: 54px;
}

h1,
h2,
h3 {
    color: var(--blu);
    line-height: 1.25;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 22px;
}

section h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 34px 0 18px;
    padding-left: 14px;
    border-left: 7px solid var(--verde);
}

section h3 {
    font-size: 22px;
    margin: 26px 0 12px;
}

p {
    margin-bottom: 16px;
    text-align: justify;
}
/* =========================================================
   CARD HOME
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 26px;
}

.card {
    background: var(--grigio-card);
    border: 1px solid var(--grigio-bordo);
    border-radius: var(--raggio);
    overflow: hidden;
    box-shadow: var(--ombra);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f3f6;
    border-bottom: 1px solid var(--grigio-bordo);
}

.card h3 {
    color: var(--blu);
    font-size: 22px;
    padding: 22px 24px 8px;
}

.card p {
    padding: 0 24px;
    flex: 1;
}

.btn {
    display: inline-block;
    margin: 18px 24px 24px;
    padding: 11px 20px;
    background: var(--blu);
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

/* =========================================================
   BOX INFORMATIVI
   ========================================================= */

.info,
.note,
.warning,
.support-box {
    margin: 24px 0;
    padding: 22px 24px;
    border-radius: var(--raggio);
    box-shadow: var(--ombra);
    background: #ffffff;
}

.info {
    border-left: 7px solid var(--verde);
    background: #f3fff7;
}

.note {
    border-left: 7px solid var(--blu);
    background: #f3f8ff;
}

.warning {
    border-left: 7px solid #f0a000;
    background: #fff8e8;
}

/* =========================================================
   FEATURE E WORKFLOW
   ========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature {
    background: #ffffff;
    border: 1px solid var(--grigio-bordo);
    border-left: 7px solid var(--verde);
    border-radius: var(--raggio);
    padding: 22px;
    box-shadow: var(--ombra);
}

.feature h3 {
    margin-top: 0;
    font-size: 20px;
}

.workflow-list {
    margin-left: 26px;
}

.workflow-list li {
    margin-bottom: 12px;
    padding-left: 6px;
}

/* =========================================================
   TABELLE
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0 34px;
    background: #ffffff;
    border: 1px solid var(--grigio-bordo);
    box-shadow: 0 4px 16px rgba(15, 53, 85, 0.06);
}

th {
    background: var(--blu);
    color: #ffffff;
    padding: 13px 14px;
    text-align: left;
    font-weight: 700;
}

td {
    padding: 12px 14px;
    border: 1px solid var(--grigio-bordo);
    vertical-align: top;
}

tr:nth-child(even) td {
    background: #f8fafc;
}

/* =========================================================
   FIGURE E IMMAGINI
   ========================================================= */

figure {
    margin: 30px auto;
    text-align: center;
}

figure {
    margin: 24px auto;
    text-align: center;
}

figure img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    max-height: 420px;
    height: auto;

    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);

    background: #fff;
}

figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}
figcaption {
    margin-top: 10px;
    color: var(--testo-soft);
    font-size: 14px;
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
}
/* =========================================================
   PRE, FLOWCHART E CODICE
   ========================================================= */

pre,
.flow {
    background: #1f2937;
    color: #f8fafc;
    padding: 22px;
    border-radius: var(--raggio);
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.55;
    margin: 26px 0;
    box-shadow: var(--ombra);
}

code {
    font-family: Consolas, "Courier New", monospace;
    background: #eef3f7;
    color: #c62828;
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================================================
   ELENCHI
   ========================================================= */

ul,
ol {
    margin: 16px 0 22px 28px;
}

li {
    margin-bottom: 8px;
}

/* =========================================================
   LINK
   ========================================================= */

a {
    color: var(--blu);
}

a:hover {
    color: var(--verde);
}

/* =========================================================
   SUPPORT BOX
   ========================================================= */

.support-box {
    background: linear-gradient(135deg, #174a76, #0f3555);
    color: #ffffff;
    text-align: center;
    font-size: 17px;
}

.support-box strong {
    font-size: 22px;
}

/* =========================================================
   FOOTER
   ========================================================= */

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 36px;
    background: var(--blu);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.45;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

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

.footer-right {
    text-align: right;
}

/* =========================================================
   PULSANTE TORNA IN ALTO
   ========================================================= */

#btnTop {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: var(--blu);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: var(--ombra);
    transition: .25s;
}

#btnTop:hover {
    background: var(--verde);
}

/* =========================================================
   EVIDENZIAZIONE MENU ATTIVO
   ========================================================= */

.menu-attivo {
    background: #eef6ff !important;
    border-left: 5px solid var(--verde) !important;
    color: var(--blu) !important;
    font-weight: 700;
}

/* =========================================================
   TOOLTIP
   ========================================================= */

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: rgba(15,53,85,.95);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1100px) {

    #wrapper {
        grid-template-columns: 1fr;
    }

    #sidebar {
        border-right: none;
        border-bottom: 1px solid var(--grigio-bordo);
    }

    #content {
        padding: 32px;
    }

    #header {
        flex-direction: column;
        text-align: center;
    }

    .cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    #footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

}

@media (max-width:700px) {

    body {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    section h2 {
        font-size: 24px;
    }

    #content {
        padding: 20px;
    }

    .menu li a {
        padding: 12px 18px;
    }

    .card h3 {
        font-size: 20px;
    }

}
/* ==========================================
   LINK FOOTER
   ========================================== */

#footer a,
#footer a:link,
#footer a:visited {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

#footer a:hover,
#footer a:active {
    color: #ffd54f !important;
    text-decoration: underline;
}
/* ==========================================
   LINK HEADER
   ========================================== */

.header-links {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.header-links a {
    color: var(--blu);
    text-decoration: none;
    font-weight: 600;
}

.header-links a:hover {
    color: var(--verde);
    text-decoration: underline;
}

/* ==========================================
   CORREZIONE SIDEBAR STANDARD
   ========================================== */

#sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--grigio-bordo);
}

#sidebar .menu-title {
    background: var(--blu) !important;
    color: #ffffff !important;
}

#sidebar .search-box {
    background: #ffffff !important;
}

#sidebar .menu li {
    border-bottom: 1px solid #edf1f5 !important;
}

#sidebar .menu li a {
    color: var(--testo) !important;
    background: #ffffff !important;
}

#sidebar .menu li a:hover,
#sidebar .menu li a.menu-attivo {
    background: #eef6ff !important;
    color: var(--blu) !important;
    border-left: 5px solid var(--verde) !important;
    padding-left: 19px !important;
    font-weight: 700 !important;
}

/* ==========================================
   CORREZIONE TESTO PULSANTI CARD
   ========================================== */

.card .btn,
.card .btn:link,
.card .btn:visited {
    color: #ffffff !important;
    background: var(--blu);
}

.card .btn:hover,
.card .btn:active {
    color: #ffffff !important;
    background: var(--verde);
}

/* ==========================================
   PULSANTI CARD HOME
   ========================================== */

.cards .card a.btn,
.cards .card a.btn:link,
.cards .card a.btn:visited,
.cards .card a.btn:hover,
.cards .card a.btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* RESET DEFINITIVO SIDEBAR */

#sidebar,
aside#sidebar {
    background: #ffffff !important;
}

#sidebar .menu,
#sidebar .menu li {
    background: #ffffff !important;
}

#sidebar .menu li a {
    display: block !important;
    background: #ffffff !important;
    color: #263238 !important;
    border-left: 0 !important;
}

#sidebar .menu li a:hover,
#sidebar .menu li a.menu-attivo {
    background: #eef6ff !important;
    color: #174a76 !important;
    border-left: 5px solid #00a651 !important;
}


/* ==========================================
   CTA CENTRALE HEADER
   ========================================== */

#header {
    grid-template-columns: 1fr 360px;
}

.header-cta {

    position: absolute;

    left: 52%;

    top: 50%;

    transform: translate(-51%, -50%);

    width: 320px;

    padding: 18px 18px;

    background: #f3fff7;

    border-left: 5px solid var(--verde);

    border-radius: 10px;

    box-shadow: 0 4px 14px rgba(15,53,85,.10);

    z-index: 10;

}

.cta-title {
    color: var(--blu);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-list {
    margin: 0 0 12px 18px;
    padding: 0;
    color: #263238;
    font-size: 13px;
    line-height: 1.45;
}

.cta-list li {
    margin-bottom: 3px;
}

.cta-button {
    display: inline-block;
    padding: 8px 14px;
    background: var(--verde);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.cta-button:hover {
    background: var(--blu);
}

/* ==========================================
   PULSANTI NAVIGAZIONE CAPITOLI
   ========================================== */

#content a.btn,
#content a.btn:link,
#content a.btn:visited,
#content a.btn:hover,
#content a.btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

#content a.btn:hover {
    background: var(--verde);
}

/* ==========================================
   MINI CARD APPENDICI HOME
   ========================================== */

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.mini-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--grigio-bordo);
    border-left: 6px solid var(--verde);
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15,53,85,.08);
    transition: .2s;
}

.mini-card strong {
    display: block;
    color: var(--blu);
    font-size: 17px;
    margin-bottom: 6px;
}

.mini-card span {
    display: block;
    color: #5f6f7a;
    font-size: 14px;
    line-height: 1.4;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,53,85,.14);
}

@media (max-width:900px) {
    .mini-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   EFFETTO HOVER CARD HOME
   ========================================== */

.card {
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.card:hover {

    transform: translateY(-6px);

    box-shadow: 0 14px 30px rgba(15,53,85,.18);

    border-color: var(--verde);

}

/* ZOOM LEGGERO IMMAGINI */

.card img {

    transition: transform .35s ease;

}

.card:hover img {

    transform: scale(1.03);

}


/* =========================================================
   CORREZIONI RESPONSIVE E ROBUSTEZZA
   ========================================================= */

#header {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.header-app,
.header-title,
.header-partner {
    min-width: 0;
}

.header-cta {
    max-width: min(320px, 34vw);
}

.header-title h1,
.header-title h2,
.cta-title,
.menu li a,
.btn {
    overflow-wrap: anywhere;
}

figure img.is-missing,
.card img.is-missing {
    object-fit: contain;
    padding: 18px;
    background: #f8fafc;
}

#overlayImmagine {
    padding: 18px;
}

@media (max-width: 1100px) {
    #header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .header-app {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-cta {
        position: static;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .header-partner {
        border-left: 0;
        padding-left: 0;
    }

    .logo-passepartout {
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    #header {
        padding: 22px 18px;
    }

    #content {
        padding: 24px 18px;
    }

    .hero h1 {
        font-size: 30px;
    }

    section h2 {
        font-size: 23px;
    }

    p {
        text-align: left;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .btn {
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================================
   HOME - HEADER COMMERCIALE
   ========================================================= */

.home-page #header {
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: stretch;
    min-height: 238px;
    padding: 30px 40px;
    background:
        radial-gradient(circle at 13% 18%, rgba(0, 166, 81, 0.13), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eef7ff 100%);
}

.home-page .header-app {
    position: relative;
    z-index: 1;
    gap: 30px;
}

.home-page .header-app::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 205px;
    height: 205px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 42%, rgba(0, 166, 81, 0.18) 43% 56%, rgba(23, 74, 118, 0.12) 57% 100%);
    box-shadow: 0 24px 58px rgba(15, 53, 85, 0.18);
}

.home-page .logo-app {
    position: relative;
    z-index: 2;
    width: 172px;
    max-width: 34vw;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 20px 38px rgba(15, 53, 85, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.home-page .header-title {
    position: relative;
    z-index: 2;
    align-self: center;
}

.home-page .header-title h1 {
    font-size: 40px;
}

.home-page .header-title h2 {
    font-size: 22px;
    color: #263238;
}

.home-page .header-partner {
    align-self: center;
    padding: 22px 22px 24px;
    border-left: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 44px rgba(15, 53, 85, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.home-page .logo-passepartout {
    width: 282px;
    filter: drop-shadow(0 10px 18px rgba(15, 53, 85, 0.16));
}

@media (max-width: 1100px) {
    .home-page #header {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-page .header-app::before {
        left: 50%;
        top: 0;
        transform: translate(-50%, -16%);
    }

    .home-page .header-partner {
        width: min(100%, 420px);
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .home-page .logo-app {
        width: 148px;
        max-width: 62vw;
    }

    .home-page .header-title h1 {
        font-size: 32px;
    }

    .home-page .header-title h2 {
        font-size: 19px;
    }
}

/* =========================================================
   HOME - TITOLO HEADER PIU COMPATTO
   ========================================================= */

.home-page .header-title h1 {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.08;
    max-width: 360px;
}

.home-page .header-title h2 {
    font-size: clamp(18px, 1.7vw, 21px);
    max-width: 380px;
}

@media (max-width: 1200px) {
    .home-page .header-title h1 {
        max-width: 330px;
    }
}

@media (max-width: 700px) {
    .home-page .header-title h1 {
        font-size: 30px;
        max-width: none;
    }
}

/* =========================================================
   HOME - LANDING PRODOTTO
   ========================================================= */

.home-page #header {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr) 340px;
    gap: 28px;
    align-items: stretch;
    min-height: 248px;
    padding: 30px 40px;
    background:
        radial-gradient(circle at 10% 22%, rgba(0, 166, 81, 0.16), transparent 29%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 56%, #edf7ff 100%);
}

.home-page .header-app {
    gap: 30px;
}

.home-page .logo-app {
    width: 176px;
    max-width: 34vw;
}

.home-page .header-title h1 {
    max-width: none;
    font-size: clamp(34px, 3.5vw, 46px);
    letter-spacing: 0;
}

.home-page .header-title h2 {
    max-width: 510px;
    color: #263238;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.32;
}

.home-page .header-info {
    max-width: 440px;
}

.home-page .header-cta {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    align-self: center;
    padding: 20px 20px 22px;
}

.home-page .header-partner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    align-self: stretch;
    padding: 22px;
    border-left: 1px solid rgba(23, 74, 118, 0.12);
    border-radius: 0;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page .ida-text {
    margin-bottom: 0;
}

.home-page .ida-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--verde);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .ida-text strong {
    display: block;
    color: var(--blu);
    font-size: 24px;
    line-height: 1.1;
}

.home-page .ida-text span:not(.ida-eyebrow) {
    color: #385160;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.home-page .ida-links {
    display: grid;
    gap: 5px;
    font-size: 14px;
}

.home-page .ida-links a {
    color: var(--blu);
    font-weight: 800;
    text-decoration: none;
}

.home-page .ida-links a:hover {
    color: var(--verde);
    text-decoration: underline;
}

.home-page .partner-logo-glass {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 18px 44px rgba(15, 53, 85, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.78) inset;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.home-page .logo-passepartout {
    width: 100%;
    max-width: 286px;
    filter: drop-shadow(0 10px 18px rgba(15, 53, 85, 0.14));
}

.home-page .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
    gap: 34px;
    align-items: center;
    padding: 36px;
    border: 1px solid #dbe8f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fcff 0%, #ffffff 52%, #f1fbf6 100%);
}

.home-page .hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--verde);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .landing-hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--blu);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.home-page .hero-lead {
    max-width: 760px;
    color: #3a4e5c;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-page .hero-actions .btn {
    margin: 0;
}

.home-page .btn-primary {
    background: var(--verde);
}

.home-page .btn-secondary {
    background: #ffffff;
    color: var(--blu) !important;
    border: 1px solid #c7d7e4;
}

.home-page .hero-proof {
    display: grid;
    gap: 14px;
}

.home-page .hero-proof div {
    padding: 18px 20px;
    border-left: 5px solid var(--verde);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 53, 85, 0.09);
}

.home-page .hero-proof strong,
.home-page .hero-proof span {
    display: block;
}

.home-page .hero-proof strong {
    color: var(--blu);
    font-size: 17px;
}

.home-page .hero-proof span {
    color: #536876;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 1250px) {
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .home-page .header-cta {
        grid-column: 1 / -1;
        max-width: 620px;
        justify-self: center;
    }
}

@media (max-width: 900px) {
    .home-page #header,
    .home-page .landing-hero {
        grid-template-columns: 1fr;
    }

    .home-page .header-partner {
        width: min(100%, 420px);
        margin: 0 auto;
        border-left: 0;
        text-align: center;
    }

    .home-page .header-app {
        justify-content: center;
        text-align: center;
    }

    .home-page .header-info,
    .home-page .header-title h2 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .home-page #header,
    .home-page .landing-hero {
        padding: 24px 18px;
    }

    .home-page .logo-app {
        width: 148px;
        max-width: 62vw;
    }

    .home-page .landing-hero h1 {
        font-size: 32px;
    }

    .home-page .hero-lead {
        font-size: 16px;
    }
}
/* =========================================================
   HOME - CORREZIONI CTA E TITOLO HERO
   ========================================================= */

.home-page .landing-hero h1 {
    max-width: 680px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.12;
}

.home-page #content .hero-actions a.btn-secondary,
.home-page #content .hero-actions a.btn-secondary:link,
.home-page #content .hero-actions a.btn-secondary:visited {
    color: var(--blu) !important;
    background: #ffffff !important;
    border: 1px solid #c7d7e4;
}

.home-page #content .hero-actions a.btn-secondary:hover,
.home-page #content .hero-actions a.btn-secondary:active {
    color: #ffffff !important;
    background: var(--blu) !important;
    border-color: var(--blu);
}

@media (max-width: 700px) {
    .home-page .landing-hero h1 {
        font-size: 28px;
    }
}

/* =========================================================
   HOME - HEADER COMPATTO E BLOCCO I.D.A. GLASS
   ========================================================= */

.home-page #header {
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 22px;
    row-gap: 16px;
    align-items: center;
}

.home-page .header-app {
    grid-column: 1;
    grid-row: 1;
}

.home-page .header-cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(100%, 560px);
    margin-left: clamp(0px, 14vw, 205px);
    padding: 16px 18px;
}

.home-page .header-partner {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    gap: 12px;
    padding: 0;
    border-left: 0;
}

.home-page .ida-glass {
    display: block;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 18px 42px rgba(15, 53, 85, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.78) inset;
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.home-page .ida-eyebrow {
    margin-bottom: 5px;
    color: var(--verde);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .ida-text strong {
    color: var(--blu);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.home-page .ida-location {
    display: block;
    margin-top: 7px;
    color: #163d60;
    font-size: 16px;
    font-weight: 850;
}

.home-page .ida-subtitle {
    display: block;
    margin-top: 7px;
    color: #536876;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.home-page .ida-links {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(23, 74, 118, 0.14);
    font-size: 14px;
}

.home-page .ida-links a {
    color: var(--blu);
    font-weight: 850;
    text-decoration: none;
}

.home-page .ida-links a:hover {
    color: var(--verde);
    text-decoration: underline;
}

.home-page .partner-logo-glass {
    padding: 14px 16px;
}

@media (max-width: 1250px) {
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .home-page .header-cta {
        grid-column: 1;
        max-width: 560px;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .home-page #header {
        grid-template-columns: 1fr;
    }

    .home-page .header-app,
    .home-page .header-cta,
    .home-page .header-partner {
        grid-column: 1;
        grid-row: auto;
    }

    .home-page .header-cta {
        margin-left: auto;
        margin-right: auto;
    }

    .home-page .header-partner {
        width: min(100%, 430px);
    }
}

/* =========================================================
   HOME - DEMO BUTTON GLASS FORTE
   ========================================================= */

.home-page .cta-button,
.home-page #content .hero-actions a.btn-primary {
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(0, 166, 81, 0.92), rgba(23, 74, 118, 0.86)) !important;
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow:
        0 16px 34px rgba(0, 166, 81, 0.26),
        0 8px 18px rgba(15, 53, 85, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    text-transform: none;
    letter-spacing: 0;
}

.home-page .cta-button::before,
.home-page #content .hero-actions a.btn-primary::before {
    content: "";
    position: absolute;
    inset: 1px auto auto 1px;
    width: calc(100% - 2px);
    height: 48%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.home-page .cta-button:hover,
.home-page #content .hero-actions a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 42px rgba(0, 166, 81, 0.32),
        0 10px 22px rgba(15, 53, 85, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

/* =========================================================
   HOME - TITOLO HERO E DEMO BUTTON LEGGIBILI
   ========================================================= */

.home-page .landing-hero h1 {
    max-width: 620px;
    font-size: clamp(24px, 2.45vw, 34px);
    line-height: 1.18;
}

.home-page .cta-button,
.home-page #content .hero-actions a.btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00a651 0%, #047a45 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow:
        0 14px 28px rgba(0, 166, 81, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.home-page .cta-button::before,
.home-page #content .hero-actions a.btn-primary::before {
    opacity: 0.35;
}

@media (max-width: 700px) {
    .home-page .landing-hero h1 {
        font-size: 26px;
    }
}

/* =========================================================
   HOME - HEADER PIU COMPATTO E BLU PIU LEGGERO
   ========================================================= */

.home-page #header {
    min-height: 190px;
    padding: 22px 38px 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 18px;
    row-gap: 10px;
}

.home-page .header-app::before {
    width: 168px;
    height: 168px;
    left: -10px;
    opacity: 0.72;
}

.home-page .logo-app {
    width: 145px;
    padding: 9px;
    border-radius: 18px;
    box-shadow:
        0 14px 28px rgba(15, 53, 85, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.home-page .header-title h1 {
    color: #1f6fa8;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.05;
}

.home-page .header-title h2 {
    max-width: 470px;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.3;
}

.home-page .header-info {
    font-size: 12px;
}

.home-page .header-cta {
    width: min(100%, 520px);
    margin-left: clamp(0px, 11vw, 176px);
    padding: 14px 16px;
    border-radius: 9px;
}

.home-page .cta-title {
    color: #1f6fa8;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 7px;
}

.home-page .cta-list {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.36;
}

.home-page .cta-button {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.home-page .header-partner {
    gap: 10px;
}

.home-page .ida-glass {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow:
        0 12px 28px rgba(15, 53, 85, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.home-page .ida-eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
}

.home-page .ida-text strong {
    color: #1f6fa8;
    font-size: 26px;
    line-height: 1;
}

.home-page .ida-location {
    margin-top: 6px;
    color: #2d5876;
    font-size: 13px;
}

.home-page .ida-subtitle {
    margin-top: 6px;
    font-size: 12px;
}

.home-page .ida-links {
    margin-top: 9px;
    padding-top: 8px;
    gap: 2px;
    font-size: 12px;
}

.home-page .ida-links a {
    color: #1f6fa8;
}

.home-page .partner-logo-glass {
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow:
        0 12px 28px rgba(15, 53, 85, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.home-page .logo-passepartout {
    max-width: 252px;
}

@media (max-width: 900px) {
    .home-page #header {
        min-height: 0;
        padding: 24px 18px;
    }

    .home-page .header-cta {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   HOME - HEADER ANCORA PIU COMPATTO E TONI PIU CHIARI
   ========================================================= */

.home-page #header {
    min-height: 164px;
    padding: 16px 38px 18px;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 14px;
    row-gap: 6px;
}

.home-page .header-app {
    gap: 20px;
}

.home-page .header-app::before {
    width: 142px;
    height: 142px;
    left: -2px;
    opacity: 0.54;
}

.home-page .logo-app {
    width: 126px;
    padding: 8px;
    border-radius: 16px;
}

.home-page .header-title h1 {
    color: #2b82bb;
    font-size: clamp(27px, 2.45vw, 36px);
}

.home-page .header-title h2 {
    max-width: 460px;
    font-size: clamp(19px, 1.65vw, 24px);
    line-height: 1.18;
}

.home-page .header-info {
    margin-top: 10px;
    font-size: 11px;
}

.home-page .header-cta {
    width: min(100%, 500px);
    margin-left: clamp(0px, 10vw, 164px);
    padding: 12px 14px;
}

.home-page .cta-title {
    color: #2b82bb;
    font-size: 14px;
}

.home-page .cta-list {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.3;
}

.home-page .cta-button {
    padding: 6px 11px;
    font-size: 11px;
}

.home-page .header-partner {
    gap: 8px;
}

.home-page .ida-glass {
    padding: 12px 14px;
    border-radius: 12px;
}

.home-page .ida-eyebrow {
    font-size: 9px;
}

.home-page .ida-text strong {
    color: #2b82bb;
    font-size: 23px;
}

.home-page .ida-location {
    margin-top: 5px;
    font-size: 12px;
}

.home-page .ida-subtitle {
    margin-top: 5px;
    font-size: 11px;
}

.home-page .ida-links {
    margin-top: 7px;
    padding-top: 7px;
    font-size: 11px;
}

.home-page .ida-links a {
    color: #2b82bb;
}

.home-page .partner-logo-glass {
    padding: 8px 10px;
    border-radius: 12px;
}

.home-page .logo-passepartout {
    max-width: 228px;
}

@media (max-width: 900px) {
    .home-page #header {
        padding: 20px 16px;
    }

    .home-page .header-title h2 {
        font-size: 19px;
    }

    .home-page .header-cta {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   HOME - RIFINITURA FINALE HEADER COMPATTO
   ========================================================= */

.home-page #header {
    min-height: 150px;
    padding-top: 14px;
    padding-bottom: 16px;
}

.home-page .header-title h1 {
    color: #3a92c8;
}

.home-page .header-title h2 {
    max-width: 580px;
    font-size: clamp(22px, 1.9vw, 28px);
    line-height: 1.12;
}

.home-page .ida-text strong,
.home-page .ida-links a {
    color: #3a92c8;
}

.home-page .header-info {
    margin-top: 8px;
}

.home-page .header-cta {
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-page .ida-glass {
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-page .partner-logo-glass {
    padding-top: 7px;
    padding-bottom: 7px;
}

@media (max-width: 900px) {
    .home-page #header {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .home-page .header-title h2 {
        font-size: 22px;
    }
}

/* =========================================================
   HEADER SLIM UNIFICATO SU TUTTE LE PAGINE
   ========================================================= */

#header,
.home-page #header {
    min-height: 118px;
    padding: 16px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px) 292px;
    align-items: center;
    column-gap: 22px;
    row-gap: 10px;
    background: linear-gradient(90deg, #ffffff 0%, #f4fbff 52%, #ffffff 100%);
}

.header-app,
.home-page .header-app {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-app::before,
.home-page .header-app::before {
    display: none;
}

.logo-app,
.home-page .logo-app {
    width: 106px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.header-title h1,
.home-page .header-title h1 {
    color: #2f83b9;
    font-size: clamp(30px, 2.45vw, 38px);
    line-height: 1;
    margin: 0 0 6px;
}

.header-title h2,
.home-page .header-title h2 {
    max-width: 640px;
    color: #263238;
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.18;
    margin: 0;
}

.header-info,
.home-page .header-info {
    margin-top: 10px;
    color: #5d6f7b;
    font-size: 12px;
}

.header-cta,
.home-page .header-cta {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    transform: none;
    align-self: center;
    border-radius: 10px;
    background: rgba(239, 253, 246, 0.72);
    border-left: 4px solid #00a651;
    box-shadow: 0 10px 22px rgba(15, 53, 85, 0.08);
}

.cta-title,
.home-page .cta-title {
    color: #2f83b9;
    font-size: 12px;
    line-height: 1.25;
    margin: 0 0 7px;
}

.cta-list,
.home-page .cta-list {
    display: none;
}

.cta-button,
.home-page .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    border-radius: 6px;
    white-space: nowrap;
}

.header-partner,
.home-page .header-partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    padding-left: 22px;
    border-left: 1px solid #d7e0e7;
}

.ida-glass,
.home-page .ida-glass {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ida-eyebrow,
.home-page .ida-eyebrow,
.ida-subtitle,
.home-page .ida-subtitle {
    display: none;
}

.ida-text strong,
.home-page .ida-text strong {
    color: #2f83b9;
    font-size: 19px;
    line-height: 1;
}

.ida-location,
.home-page .ida-location {
    margin-top: 7px;
    color: #174a76;
    font-size: 13px;
    font-weight: 800;
}

.ida-links,
.home-page .ida-links {
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
    gap: 1px;
    font-size: 12px;
}

.ida-links a,
.home-page .ida-links a {
    color: #2f83b9;
}

.partner-logo-glass,
.home-page .partner-logo-glass {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.logo-passepartout,
.home-page .logo-passepartout {
    width: 238px;
    max-width: 100%;
    filter: none;
}

@media (max-width: 1100px) {
    #header,
    .home-page #header {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .header-app,
    .home-page .header-app,
    .header-partner,
    .home-page .header-partner {
        justify-content: center;
        text-align: center;
    }

    .header-cta,
    .home-page .header-cta {
        width: min(100%, 430px);
        justify-self: center;
    }

    .header-partner,
    .home-page .header-partner {
        padding-left: 0;
        border-left: 0;
    }
}

/* =========================================================
   HEADER SLIM FISSO - RIDUZIONE FINALE
   ========================================================= */

#header,
.home-page #header {
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    padding: 10px 34px;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 308px) 272px;
    column-gap: 18px;
    row-gap: 0;
    overflow: hidden;
}

.header-info,
.home-page .header-info {
    display: none;
}

.logo-app,
.home-page .logo-app {
    width: 92px;
    flex: 0 0 auto;
}

.header-app,
.home-page .header-app {
    gap: 20px;
    min-width: 0;
}

.header-title,
.home-page .header-title {
    min-width: 0;
}

.header-title h1,
.home-page .header-title h1 {
    font-size: clamp(28px, 2.15vw, 34px);
    margin-bottom: 5px;
}

.header-title h2,
.home-page .header-title h2 {
    max-width: 620px;
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.14;
}

.header-cta,
.home-page .header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 10px;
}

.cta-title,
.home-page .cta-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.18;
}

.cta-button,
.home-page .cta-button {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 6px 9px;
    font-size: 10px;
}

.header-partner,
.home-page .header-partner {
    gap: 5px;
    padding-left: 18px;
}

.ida-text strong,
.home-page .ida-text strong {
    font-size: 17px;
}

.ida-location,
.home-page .ida-location {
    margin-top: 5px;
    font-size: 12px;
}

.ida-links,
.home-page .ida-links {
    margin-top: 4px;
    font-size: 11px;
}

.logo-passepartout,
.home-page .logo-passepartout {
    width: 210px;
}

@media (max-width: 1100px) {
    #header,
    .home-page #header {
        height: auto;
        max-height: none;
        min-height: 0;
        padding: 16px 18px;
        overflow: visible;
    }
}

/* =========================================================
   HEADER SLIM - LOGO PASSEPARTOUT SEMPRE VISIBILE
   ========================================================= */

#header,
.home-page #header {
    grid-template-columns: minmax(0, 1fr) minmax(198px, 288px) 368px;
}

.header-partner,
.home-page .header-partner {
    display: grid;
    grid-template-columns: minmax(116px, 1fr) 188px;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ida-text,
.home-page .ida-text {
    min-width: 0;
}

.ida-text strong,
.home-page .ida-text strong {
    font-size: 16px;
}

.ida-location,
.home-page .ida-location {
    font-size: 11px;
    line-height: 1.15;
}

.ida-links,
.home-page .ida-links {
    display: none;
}

.partner-logo-glass,
.home-page .partner-logo-glass {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.logo-passepartout,
.home-page .logo-passepartout {
    display: block;
    width: 184px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1250px) {
    #header,
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 248px 326px;
        column-gap: 14px;
    }

    .header-partner,
    .home-page .header-partner {
        grid-template-columns: minmax(96px, 1fr) 168px;
        gap: 9px;
    }

    .logo-passepartout,
    .home-page .logo-passepartout {
        width: 166px;
    }
}

/* =========================================================
   HEADER FISSO CON DEMO NEL TITOLO
   ========================================================= */

#header,
.home-page #header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 8px 24px rgba(15, 53, 85, 0.10);
}

.header-title-row,
.home-page .header-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-title-row h2,
.home-page .header-title-row h2 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 440px;
    line-height: 1.08;
}

.title-demo-button,
.title-demo-button:link,
.title-demo-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #00a651 0%, #047a45 100%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 7px;
    box-shadow:
        0 12px 24px rgba(0, 166, 81, 0.24),
        0 1px 0 rgba(255, 255, 255, 0.52) inset;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.title-demo-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(0, 166, 81, 0.30),
        0 1px 0 rgba(255, 255, 255, 0.58) inset;
}

.header-cta,
.home-page .header-cta {
    min-height: 44px;
    padding: 7px 10px;
}

.header-cta .cta-button,
.home-page .header-cta .cta-button {
    display: none;
}

.cta-title,
.home-page .cta-title {
    font-size: 11px;
    line-height: 1.2;
}

html {
    scroll-padding-top: 118px;
}

@media (max-width: 1250px) {
    .header-title-row,
    .home-page .header-title-row {
        gap: 10px;
    }

    .header-title-row h2,
    .home-page .header-title-row h2 {
        max-width: 360px;
        font-size: 15px;
    }

    .title-demo-button {
        padding: 6px 9px;
        font-size: 10px;
    }
}

@media (max-width: 1100px) {
    #header,
    .home-page #header {
        position: static;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .header-title-row,
    .home-page .header-title-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    html {
        scroll-padding-top: 0;
    }
}

/* =========================================================
   HEADER FISSO - BLOCCO DESTRO RAFFINATO
   ========================================================= */

#header,
.home-page #header {
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    padding: 10px 48px 10px 34px;
    grid-template-columns: minmax(0, 1fr) 560px;
    column-gap: 28px;
}

.header-cta,
.home-page .header-cta {
    display: none;
}

.header-app,
.home-page .header-app {
    min-width: 0;
}

.header-title-row,
.home-page .header-title-row {
    gap: 18px;
}

.header-title-row h2,
.home-page .header-title-row h2 {
    max-width: 430px;
    font-size: clamp(17px, 1.28vw, 20px);
    line-height: 1.08;
}

.title-demo-button,
.title-demo-button:link,
.title-demo-button:visited {
    min-height: 36px;
    padding: 9px 17px;
    border-radius: 9px;
    font-size: 12px;
    box-shadow:
        0 16px 30px rgba(0, 166, 81, 0.30),
        0 8px 16px rgba(15, 53, 85, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

.header-partner,
.home-page .header-partner {
    grid-column: 2;
    display: grid;
    grid-template-columns: 220px 300px;
    align-items: center;
    justify-content: end;
    gap: 18px;
    padding-left: 0;
    border-left: 0;
}

.ida-text,
.home-page .ida-text {
    justify-self: end;
    width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow:
        0 14px 30px rgba(15, 53, 85, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.ida-text strong,
.home-page .ida-text strong {
    color: #2f83b9;
    font-size: 20px;
    line-height: 1;
}

.ida-location,
.home-page .ida-location {
    margin-top: 5px;
    color: #174a76;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.ida-links,
.home-page .ida-links {
    display: flex;
    margin-top: 5px;
    padding-top: 0;
    border-top: 0;
    gap: 1px;
    font-size: 11px;
    line-height: 1.15;
}

.ida-links a,
.home-page .ida-links a {
    color: #2f83b9;
    font-weight: 900;
}

.partner-logo-glass,
.home-page .partner-logo-glass {
    justify-self: end;
    width: 300px;
    min-height: 74px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 20px 42px rgba(15, 53, 85, 0.18),
        0 8px 18px rgba(15, 53, 85, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.logo-passepartout,
.home-page .logo-passepartout {
    width: 268px;
    max-width: 100%;
}

html {
    scroll-padding-top: 126px;
}

@media (max-width: 1250px) {
    #header,
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 480px;
        column-gap: 18px;
        padding-right: 28px;
    }

    .header-partner,
    .home-page .header-partner {
        grid-template-columns: 188px 260px;
        gap: 14px;
    }

    .ida-text,
    .home-page .ida-text {
        width: 188px;
    }

    .partner-logo-glass,
    .home-page .partner-logo-glass {
        width: 260px;
    }

    .logo-passepartout,
    .home-page .logo-passepartout {
        width: 230px;
    }
}

/* =========================================================
   HEADER - CARD I.D.A. PIU LEGGIBILE
   ========================================================= */

#header,
.home-page #header {
    grid-template-columns: minmax(0, 1fr) 650px;
}

.header-partner,
.home-page .header-partner {
    grid-template-columns: 292px 300px;
    gap: 20px;
    justify-content: start;
}

.ida-text,
.home-page .ida-text {
    justify-self: start;
    width: 292px;
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 18px 38px rgba(15, 53, 85, 0.15),
        0 7px 18px rgba(15, 53, 85, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.84) inset;
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.ida-text strong,
.home-page .ida-text strong {
    font-size: 21px;
}

.ida-location,
.home-page .ida-location {
    font-size: 12px;
}

.ida-links,
.home-page .ida-links {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 6px;
    gap: 2px;
    font-size: 12px;
}

.ida-links a,
.home-page .ida-links a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1250px) {
    #header,
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 570px;
    }

    .header-partner,
    .home-page .header-partner {
        grid-template-columns: 260px 270px;
        gap: 14px;
    }

    .ida-text,
    .home-page .ida-text {
        width: 260px;
    }

    .partner-logo-glass,
    .home-page .partner-logo-glass {
        width: 270px;
    }
}

/* =========================================================
   HEADER - NORMALIZZAZIONE FINALE CARD E DEMO
   ========================================================= */

#header,
.home-page #header {
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    grid-template-columns: minmax(0, 1fr) 560px;
    column-gap: 24px;
    overflow: hidden;
}

.header-partner,
.home-page .header-partner {
    grid-template-columns: 236px 300px;
    gap: 18px;
    justify-content: end;
}

.ida-text,
.home-page .ida-text {
    width: 236px;
    min-height: 68px;
    padding: 9px 11px;
    overflow: hidden;
}

.ida-text strong,
.home-page .ida-text strong {
    font-size: 18px;
}

.ida-location,
.home-page .ida-location {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.1;
}

.ida-links,
.home-page .ida-links {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 5px;
    gap: 1px;
    font-size: 10.5px;
    line-height: 1.08;
}

.ida-links a,
.home-page .ida-links a {
    display: block;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.partner-logo-glass,
.home-page .partner-logo-glass {
    width: 300px;
}

.logo-passepartout,
.home-page .logo-passepartout {
    width: 268px;
}

.home-page .landing-hero .hero-actions .btn-primary {
    display: none;
}

@media (max-width: 1250px) {
    #header,
    .home-page #header {
        grid-template-columns: minmax(0, 1fr) 500px;
        column-gap: 16px;
    }

    .header-partner,
    .home-page .header-partner {
        grid-template-columns: 218px 260px;
        gap: 12px;
    }

    .ida-text,
    .home-page .ida-text {
        width: 218px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .partner-logo-glass,
    .home-page .partner-logo-glass {
        width: 260px;
    }

    .logo-passepartout,
    .home-page .logo-passepartout {
        width: 230px;
    }
}

/* =========================================================
   HEADER - STESSA RESA HOME SU TUTTE LE PAGINE
   ========================================================= */

#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    grid-template-columns: minmax(0, 1fr) 560px !important;
    align-items: center !important;
    column-gap: 24px !important;
    row-gap: 0 !important;
    padding: 10px 34px !important;
    overflow: hidden !important;
}

#header .header-app {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    min-width: 0 !important;
    text-align: left !important;
}

#header .header-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
}

#header .header-cta {
    display: none !important;
}

#header .header-partner {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: 236px 300px !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 18px !important;
    padding-left: 0 !important;
    border-left: 0 !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
}

#header .ida-eyebrow,
#header .ida-subtitle {
    display: none !important;
}

#header .ida-text {
    justify-self: start !important;
    width: 236px !important;
    min-height: 68px !important;
    max-height: 88px !important;
    padding: 9px 11px !important;
    overflow: hidden !important;
}

#header .ida-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1px !important;
    margin-top: 5px !important;
    font-size: 10.5px !important;
    line-height: 1.08 !important;
}

#header .partner-logo-glass {
    justify-self: end !important;
    width: 300px !important;
}

#header .logo-passepartout {
    width: 268px !important;
}

@media (max-width: 1250px) {
    #header {
        grid-template-columns: minmax(0, 1fr) 500px !important;
        column-gap: 16px !important;
        padding-right: 28px !important;
    }

    #header .header-partner {
        grid-template-columns: 218px 260px !important;
        gap: 12px !important;
    }

    #header .ida-text {
        width: 218px !important;
    }

    #header .partner-logo-glass {
        width: 260px !important;
    }

    #header .logo-passepartout {
        width: 230px !important;
    }
}

@media (max-width: 1100px) {
    #header {
        grid-template-columns: minmax(0, 1fr) 470px !important;
        height: 112px !important;
        min-height: 112px !important;
        max-height: 112px !important;
        padding: 10px 20px !important;
        overflow: hidden !important;
    }

    #header .header-partner {
        grid-template-columns: 206px 244px !important;
        gap: 10px !important;
    }

    #header .ida-text {
        width: 206px !important;
        padding: 8px 10px !important;
    }

    #header .partner-logo-glass {
        width: 244px !important;
    }

    #header .logo-passepartout {
        width: 216px !important;
    }
}

/* =========================================================
   HOME - HERO MANUALE COMPATTA
   ========================================================= */

.home-page .landing-hero {
    min-height: 0;
    padding: 28px 34px;
    gap: 28px;
    align-items: center;
}

.home-page .hero-kicker {
    margin-bottom: 8px;
    font-size: 12px;
}

.home-page .landing-hero h1 {
    max-width: 650px;
    margin-bottom: 14px;
    font-size: clamp(28px, 2.55vw, 38px);
    line-height: 1.12;
}

.home-page .hero-lead {
    max-width: 670px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.55;
}

.home-page .hero-actions {
    display: none;
}

.home-page .hero-proof {
    gap: 12px;
}

.home-page .hero-proof div {
    padding: 14px 18px;
    border-radius: 9px;
}

.home-page .hero-proof strong {
    font-size: 15px;
}

.home-page .hero-proof span {
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .home-page .landing-hero {
        padding: 22px 18px;
    }
}

/* =========================================================
   HEADER - DEMO DUE RIGHE E CONTATTI PIU LEGGIBILI
   ========================================================= */

#header .title-demo-button,
#header .title-demo-button:link,
#header .title-demo-button:visited {
    width: 138px !important;
    min-height: 46px !important;
    padding: 8px 14px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    white-space: normal !important;
}

#header .title-demo-button::first-line {
    line-height: 1.05;
}

#header .ida-location {
    color: #2f83b9 !important;
}

#header .ida-links {
    gap: 4px !important;
    margin-top: 6px !important;
    line-height: 1.12 !important;
}

#header .ida-links a + a {
    margin-top: 2px !important;
}

@media (max-width: 1250px) {
    #header .title-demo-button,
    #header .title-demo-button:link,
    #header .title-demo-button:visited {
        width: 128px !important;
        min-height: 44px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   HEADER - DEMO PIU VISIBILE E SOTTOTITOLO BLU
   ========================================================= */

#header .header-title-row h2 {
    color: #2f83b9 !important;
    font-weight: 900 !important;
}

#header .title-demo-button,
#header .title-demo-button:link,
#header .title-demo-button:visited {
    width: 168px !important;
    min-height: 52px !important;
    padding: 10px 18px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    line-height: 1.12 !important;
    box-shadow:
        0 18px 34px rgba(0, 166, 81, 0.34),
        0 10px 20px rgba(15, 53, 85, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.68) inset !important;
}

@media (max-width: 1250px) {
    #header .title-demo-button,
    #header .title-demo-button:link,
    #header .title-demo-button:visited {
        width: 150px !important;
        min-height: 48px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   HEADER - DEMO PREMIUM GLASS
   ========================================================= */

#header .header-title-row {
    gap: 24px !important;
}

#header .header-title-row h2 {
    max-width: 500px !important;
}

#header .title-demo-button,
#header .title-demo-button:link,
#header .title-demo-button:visited {
    width: 198px !important;
    min-height: 74px !important;
    padding: 12px 22px !important;
    border-radius: 18px !important;
    color: #ffffff !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 36%),
        linear-gradient(135deg, rgba(0, 184, 92, 0.96) 0%, rgba(0, 139, 77, 0.98) 54%, rgba(30, 126, 174, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
        0 22px 42px rgba(0, 166, 81, 0.35),
        0 12px 24px rgba(15, 53, 85, 0.20),
        0 2px 0 rgba(255, 255, 255, 0.65) inset,
        0 -18px 38px rgba(0, 92, 55, 0.18) inset !important;
    backdrop-filter: blur(18px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(185%) !important;
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 55, 35, 0.34) !important;
}

#header .title-demo-button:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 26px 50px rgba(0, 166, 81, 0.42),
        0 14px 28px rgba(15, 53, 85, 0.24),
        0 2px 0 rgba(255, 255, 255, 0.72) inset,
        0 -18px 38px rgba(0, 92, 55, 0.18) inset !important;
}

@media (max-width: 1250px) {
    #header .header-title-row {
        gap: 16px !important;
    }

    #header .header-title-row h2 {
        max-width: 390px !important;
    }

    #header .title-demo-button,
    #header .title-demo-button:link,
    #header .title-demo-button:visited {
        width: 176px !important;
        min-height: 66px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   HEADER - DEMO ALZATA E MENU COLORATO
   ========================================================= */

#header .header-title-row {
    align-items: flex-start !important;
}

#header .title-demo-button,
#header .title-demo-button:link,
#header .title-demo-button:visited {
    align-self: flex-start !important;
    margin-top: -4px !important;
}

#sidebar .menu li a,
aside#sidebar .menu li a {
    color: #2f83b9 !important;
    font-weight: 800 !important;
}

#sidebar .menu li a:hover,
#sidebar .menu li a.menu-attivo,
aside#sidebar .menu li a:hover,
aside#sidebar .menu li a.menu-attivo {
    color: #00a651 !important;
    background: rgba(47, 131, 185, 0.09) !important;
    border-left: 5px solid #00a651 !important;
}

/* =========================================================
   HEADER - DEMO ANCORA PIU IN ALTO
   ========================================================= */

#header .title-demo-button,
#header .title-demo-button:link,
#header .title-demo-button:visited {
    min-height: 66px !important;
    height: 66px !important;
    margin-top: -14px !important;
    transform: translateY(-8px) !important;
}

#header .title-demo-button:hover {
    transform: translateY(-10px) !important;
}

@media (max-width: 1250px) {
    #header .title-demo-button,
    #header .title-demo-button:link,
    #header .title-demo-button:visited {
        min-height: 60px !important;
        height: 60px !important;
        margin-top: -12px !important;
        transform: translateY(-7px) !important;
    }
}

/* HEADER - CARD I.D.A. PAGINE INTERNE NON TAGLIATA */
body:not(.home-page) #header .header-partner {
  align-items: center !important;
}

body:not(.home-page) #header .ida-text {
  box-sizing: border-box !important;
  width: 236px !important;
  min-height: 82px !important;
  height: 82px !important;
  max-height: 82px !important;
  padding: 7px 11px !important;
  align-self: center !important;
  overflow: hidden !important;
}

body:not(.home-page) #header .ida-text strong {
  display: block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #2f83b9 !important;
}

body:not(.home-page) #header .ida-location {
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.05 !important;
  color: #2f83b9 !important;
  white-space: nowrap !important;
}

body:not(.home-page) #header .ida-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1px !important;
  margin-top: 4px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
}

body:not(.home-page) #header .ida-links a {
  display: block !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

@media (max-width: 1250px) {
  body:not(.home-page) #header .ida-text {
    width: 218px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 7px 10px !important;
  }

  body:not(.home-page) #header .ida-text strong {
    font-size: 17px !important;
  }

  body:not(.home-page) #header .ida-location {
    font-size: 10.5px !important;
  }

  body:not(.home-page) #header .ida-links {
    font-size: 9.8px !important;
  }
}
/* =========================================================
   SIDEBAR FISSA DURANTE LO SCORRIMENTO
   ========================================================= */

#sidebar,
aside#sidebar {
    position: sticky !important;
    top: 112px !important;
    align-self: start !important;
    height: calc(100vh - 112px) !important;
    max-height: calc(100vh - 112px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 131, 185, 0.45) rgba(47, 131, 185, 0.08);
}

#sidebar::-webkit-scrollbar,
aside#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track,
aside#sidebar::-webkit-scrollbar-track {
    background: rgba(47, 131, 185, 0.08);
}

#sidebar::-webkit-scrollbar-thumb,
aside#sidebar::-webkit-scrollbar-thumb {
    background: rgba(47, 131, 185, 0.45);
    border-radius: 999px;
}

#sidebar .menu,
aside#sidebar .menu {
    padding-bottom: 22px !important;
}

@media (max-width: 1100px) {
    #sidebar,
    aside#sidebar {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
/* =========================================================
   SIDEBAR FIXED DEFINITIVA DESKTOP
   ========================================================= */

@media (min-width: 1101px) {
    #wrapper {
        grid-template-columns: 320px minmax(0, 1fr) !important;
    }

    #sidebar,
    aside#sidebar {
        position: fixed !important;
        top: 112px !important;
        left: max(0px, calc((100vw - 1500px) / 2)) !important;
        width: 320px !important;
        height: calc(100vh - 112px) !important;
        max-height: calc(100vh - 112px) !important;
        z-index: 900 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        border-right: 1px solid var(--grigio-bordo) !important;
        box-shadow: 10px 0 22px rgba(15, 53, 85, 0.06) !important;
    }

    #content {
        grid-column: 2 !important;
    }

    #footer {
        grid-column: 1 / -1 !important;
    }
}
/* =========================================================
   HEADER - CARD I.D.A. INTERNE UGUALE ALLA HOME
   ========================================================= */

body:not(.home-page) #header .header-partner {
    align-items: center !important;
}

body:not(.home-page) #header .ida-text {
    box-sizing: border-box !important;
    justify-self: start !important;
    align-self: center !important;
    width: 236px !important;
    height: auto !important;
    min-height: 68px !important;
    max-height: 88px !important;
    padding: 9px 11px !important;
    overflow: hidden !important;
}

body:not(.home-page) #header .ida-text strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #2f83b9 !important;
}

body:not(.home-page) #header .ida-location {
    display: block !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    color: #2f83b9 !important;
    white-space: nowrap !important;
}

body:not(.home-page) #header .ida-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    margin-top: 6px !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
}

body:not(.home-page) #header .ida-links a {
    display: block !important;
    max-width: 100% !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

body:not(.home-page) #header .ida-links a + a {
    margin-top: 2px !important;
}

@media (max-width: 1250px) {
    body:not(.home-page) #header .ida-text {
        width: 218px !important;
        height: auto !important;
        min-height: 68px !important;
        max-height: 88px !important;
        padding: 9px 10px !important;
    }

    body:not(.home-page) #header .ida-text strong {
        font-size: 18px !important;
    }

    body:not(.home-page) #header .ida-location {
        font-size: 11px !important;
    }

    body:not(.home-page) #header .ida-links {
        gap: 4px !important;
        font-size: 10.5px !important;
        line-height: 1.12 !important;
    }
}
/* =========================================================
   MIGLIORIE COMMERCIALI E BOX SEZIONE
   ========================================================= */

.commercial-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 34px;
}

.commercial-strip > div,
.section-summary {
    border: 1px solid rgba(47, 131, 185, 0.18);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(239,248,244,0.82));
    box-shadow: 0 12px 28px rgba(15, 53, 85, 0.08);
}

.commercial-strip > div {
    padding: 18px 18px 16px;
}

.commercial-strip span {
    display: block;
    margin-bottom: 6px;
    color: #00a651;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commercial-strip strong {
    display: block;
    color: #2f83b9;
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.commercial-strip p {
    margin: 0;
    color: #405563;
    font-size: 14px;
    line-height: 1.5;
}

.section-summary {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-left: 5px solid #00a651;
}

.section-summary h2 {
    margin: 0 0 10px;
    color: #2f83b9;
    font-size: 21px;
}

.section-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 22px;
    margin: 0;
    padding-left: 18px;
}

.section-summary li {
    color: #405563;
    font-weight: 650;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .commercial-strip,
    .section-summary ul {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   NOTA POSIZIONAMENTO PASSEPARTOUT
   ========================================================= */

.positioning-note {
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid rgba(47, 131, 185, 0.20);
    border-left: 5px solid #2f83b9;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(244,249,252,0.92));
    box-shadow: 0 10px 24px rgba(15, 53, 85, 0.07);
}

.positioning-note strong {
    display: block;
    color: #2f83b9;
    font-size: 16px;
    margin-bottom: 5px;
}

.positioning-note p {
    margin: 0;
    color: #405563;
    font-size: 14px;
    line-height: 1.5;
}
/* =========================================================
   FOCUS SCADENZE EXTRA
   ========================================================= */

.extra-focus,
.extra-clarity-box {
    border: 1px solid rgba(0, 166, 81, 0.22);
    border-left: 5px solid #00a651;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(236,249,242,0.90));
    box-shadow: 0 14px 30px rgba(15, 53, 85, 0.08);
}

.extra-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
    margin: 0 0 34px;
    padding: 22px 24px;
}

.extra-focus-copy span {
    display: block;
    margin-bottom: 8px;
    color: #00a651;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.extra-focus h2 {
    margin: 0 0 10px;
    color: #2f83b9;
    font-size: 25px;
    line-height: 1.18;
}

.extra-focus p,
.extra-clarity-box p {
    margin: 0;
    color: #405563;
    line-height: 1.55;
}

.extra-focus-list {
    padding: 16px 18px;
    border-radius: 9px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(47, 131, 185, 0.14);
}

.extra-focus-list strong,
.extra-clarity-box strong {
    display: block;
    margin-bottom: 8px;
    color: #174a76;
    font-size: 17px;
}

.extra-focus-list ul {
    margin: 0;
    padding-left: 18px;
}

.extra-focus-list li {
    margin-bottom: 5px;
    color: #405563;
    font-weight: 650;
    line-height: 1.35;
}

.extra-clarity-box {
    margin: 18px 0 22px;
    padding: 17px 20px;
}

@media (max-width: 900px) {
    .extra-focus {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}
/* =========================================================
   CARD HOME - IMMAGINI INTERE E STABILI
   ========================================================= */

.home-page .cards .card img,
.cards .card img {
    width: 100% !important;
    height: 150px !important;
    padding: 14px 18px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: linear-gradient(145deg, #ffffff, #f4f8fb) !important;
    border-bottom: 1px solid var(--grigio-bordo) !important;
    transform: none !important;
}

.home-page .cards .card:hover img,
.cards .card:hover img {
    transform: none !important;
}

@media (max-width: 700px) {
    .home-page .cards .card img,
    .cards .card img {
        height: 135px !important;
        padding: 12px 16px !important;
    }
}
/* =========================================================
   FOCUS SCADENZE FISCALI
   ========================================================= */

.fiscal-hero .hero-kicker {
    color: #00a651;
}

.fiscal-focus {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}

.fiscal-focus > div {
    padding: 18px 18px 16px;
    border: 1px solid rgba(47, 131, 185, 0.18);
    border-left: 5px solid #2f83b9;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(242,248,252,0.92));
    box-shadow: 0 12px 28px rgba(15, 53, 85, 0.08);
}

.fiscal-focus span {
    display: block;
    margin-bottom: 6px;
    color: #00a651;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fiscal-focus strong {
    display: block;
    color: #2f83b9;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.fiscal-focus p,
.fiscal-detail p {
    color: #405563;
    line-height: 1.55;
}

.fiscal-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.fiscal-examples span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(47, 131, 185, 0.09);
    color: #174a76;
    font-size: 13px;
    font-weight: 800;
}

.card.fiscal-card {
    border-color: rgba(0, 166, 81, 0.28);
}

.card.fiscal-card h3 {
    color: #2f83b9;
}

@media (max-width: 900px) {
    .fiscal-focus {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   HOME - RISALTO SCADENZE FISCALI
   ========================================================= */

.fiscal-home-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 24px;
    align-items: center;
    margin: 0 0 34px;
    padding: 24px 26px;
    border: 1px solid rgba(47, 131, 185, 0.22);
    border-left: 6px solid #2f83b9;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(238,248,243,0.92));
    box-shadow: 0 16px 34px rgba(15, 53, 85, 0.10);
}

.fiscal-home-highlight span {
    display: block;
    margin-bottom: 8px;
    color: #00a651;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fiscal-home-highlight h2 {
    margin: 0 0 10px;
    color: #2f83b9;
    font-size: 28px;
    line-height: 1.18;
}

.fiscal-home-highlight p {
    margin: 0 0 16px;
    color: #405563;
    line-height: 1.55;
}

.fiscal-home-highlight img,
.fiscal-hero-image {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 53, 85, 0.12);
}

.fiscal-hero-image {
    display: block;
    max-width: 520px;
    margin: 0 0 22px;
}

@media (max-width: 900px) {
    .fiscal-home-highlight {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* =========================================================
   HOME - SEZIONE COMMERCIALE
   ========================================================= */

.commercial-home {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 34px;
    padding: 26px;
    border: 1px solid rgba(47, 131, 185, 0.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 250, 255, 0.72)),
        radial-gradient(circle at 20% 15%, rgba(0, 166, 81, 0.12), transparent 32%);
    box-shadow: 0 20px 46px rgba(15, 53, 85, 0.12);
}

.commercial-home-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.commercial-home-copy span {
    display: block;
    margin-bottom: 8px;
    color: #00a651;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commercial-home-copy h2 {
    margin: 0 0 12px;
    color: #2f83b9;
    font-size: 30px;
    line-height: 1.16;
}

.commercial-home-copy p {
    margin: 0 0 18px;
    color: #405563;
    font-size: 16px;
    line-height: 1.58;
}

.commercial-demo {
    margin-left: 0;
    background: linear-gradient(135deg, #09ad62, #2f83b9) !important;
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(0, 166, 81, 0.24);
}

.commercial-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.commercial-points article {
    min-height: 136px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 53, 85, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(160%);
}

.commercial-points strong {
    display: block;
    margin-bottom: 8px;
    color: #174a76;
    font-size: 18px;
}

.commercial-points p {
    margin: 0;
    color: #405563;
    font-size: 14px;
    line-height: 1.48;
    text-align: left;
}

@media (max-width: 980px) {
    .commercial-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .commercial-home {
        padding: 20px;
    }

    .commercial-points {
        grid-template-columns: 1fr;
    }

    .commercial-home-copy h2 {
        font-size: 25px;
    }
}
/* MENU - VOCE SCADENZE FISCALI */
#sidebar .menu li a.menu-fiscal,
aside#sidebar .menu li a.menu-fiscal {
    color: var(--blu) !important;
    background: transparent !important;
    font-weight: 700 !important;
    border-left: 0 !important;
    padding-left: 24px !important;
}

#sidebar .menu li a.menu-fiscal:hover,
#sidebar .menu li a.menu-fiscal.menu-attivo,
aside#sidebar .menu li a.menu-fiscal:hover,
aside#sidebar .menu li a.menu-fiscal.menu-attivo {
    color: #00a651 !important;
    background: rgba(0, 166, 81, 0.13) !important;
    border-left: 5px solid rgba(0, 166, 81, 0.65) !important;
    padding-left: 19px !important;
    font-weight: 900 !important;
}

/* =========================================================
   PRIVACY PAGE
   ========================================================= */

.privacy-page h1 {
    margin-bottom: 18px;
}

.privacy-page h2 {
    margin-top: 30px;
}

.privacy-page .info p {
    margin-bottom: 0;
}

#footer .footer-center a {
    display: inline-block;
    margin-top: 3px;
    font-weight: 800;
}
/* =========================================================
   PULSANTE TORNA SU - NON COPRE IL FOOTER
   ========================================================= */

#btnTop {
    right: 28px !important;
    bottom: 96px !important;
    width: 58px !important;
    height: 58px !important;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00a651, #2f83b9) !important;
    color: #ffffff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    box-shadow: 0 14px 34px rgba(15, 53, 85, 0.34) !important;
    opacity: 0.96 !important;
}

#btnTop:hover {
    background: linear-gradient(135deg, #2f83b9, #00a651) !important;
    transform: translateY(-3px) !important;
    opacity: 1 !important;
}

#footer {
    padding-right: 112px !important;
}

@media (max-width: 900px) {
    #btnTop {
        right: 18px !important;
        bottom: 88px !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
    }

    #footer {
        padding-right: 36px !important;
        padding-bottom: 82px !important;
    }
}

/* =========================================================
   FOOTER - NON DEVE SOVRAPPORSI AL CONTENUTO
   ========================================================= */

#content {
    padding-bottom: 72px !important;
}

#footer {
    position: static !important;
    inset: auto !important;
    clear: both !important;
    grid-column: 1 / -1 !important;
    align-self: end !important;
    width: 100% !important;
    margin-top: 0 !important;
    z-index: 1 !important;
}

@media (min-width: 1101px) {
    #wrapper {
        align-items: stretch !important;
    }

    #content {
        grid-column: 2 !important;
        min-height: calc(100vh - 112px) !important;
    }
}

@media print {
    #content {
        padding-bottom: 0 !important;
    }

    #footer {
        position: static !important;
        page-break-inside: avoid !important;
    }
}

/* =========================================================
   LAYOUT FINALE - FOOTER SEMPRE DOPO IL CONTENUTO
   ========================================================= */

html,
body {
    min-height: 100% !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
}

#wrapper {
    flex: 1 0 auto !important;
    overflow: visible !important;
}

#content {
    padding-bottom: 96px !important;
}

#footer {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    clear: both !important;
    width: min(1500px, 100%) !important;
    margin: 0 auto !important;
    z-index: 1 !important;
}

@media (min-width: 1101px) {
    #wrapper {
        grid-template-columns: 320px minmax(0, 1fr) !important;
    }

    #content {
        grid-column: 2 !important;
    }
}

@media print {
    body {
        display: block !important;
    }

    #content {
        padding-bottom: 0 !important;
    }

    #footer {
        position: static !important;
        width: 100% !important;
        page-break-inside: avoid !important;
    }
}

/* =========================================================
   CORREZIONE MENU APPENDICI E SCORRIMENTO SIDEBAR
   ========================================================= */

@media (min-width: 1101px) {
    #sidebar,
    aside#sidebar {
        top: 104px !important;
        height: calc(100vh - 104px) !important;
        max-height: calc(100vh - 104px) !important;
        padding-bottom: 96px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    #sidebar .menu,
    aside#sidebar .menu {
        padding-top: 10px !important;
        padding-bottom: 150px !important;
    }

    #sidebar .menu li a,
    aside#sidebar .menu li a {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    #sidebar .menu li a:hover,
    #sidebar .menu li a.menu-attivo,
    aside#sidebar .menu li a:hover,
    aside#sidebar .menu li a.menu-attivo {
        padding-left: 19px !important;
    }
}

/* =========================================================
   PASSSTORE - PRIME STESURE APP I.D.A.
   ========================================================= */

.ida-app-suite {
    margin: 0 0 34px;
    padding: 26px;
    border: 1px solid rgba(47, 131, 185, 0.22);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(236,248,244,0.88)),
        radial-gradient(circle at 92% 16%, rgba(0,166,81,0.10), transparent 38%);
    box-shadow: 0 14px 34px rgba(15, 53, 85, 0.09);
}

.suite-heading {
    max-width: 920px;
    margin-bottom: 22px;
}

.suite-heading span,
.app-hero-panel .hero-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #007f5b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.suite-heading h2,
.app-hero-panel h1 {
    color: var(--blu-scuro);
    line-height: 1.12;
}

.suite-heading h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.suite-heading p,
.app-hero-panel .hero-lead {
    margin: 0;
    color: #405563;
    text-align: left;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.suite-card,
.app-value-grid article,
.app-section,
.app-highlight {
    border: 1px solid rgba(47, 131, 185, 0.20);
    border-radius: 10px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 24px rgba(15, 53, 85, 0.07);
}

.suite-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 22px;
}

.suite-card h3 {
    margin: 12px 0 10px;
    color: var(--blu);
    font-size: 22px;
}

.suite-card p {
    flex: 1;
    margin: 0;
    color: #405563;
    text-align: left;
}

.suite-card .btn {
    margin: 20px 0 0;
    align-self: flex-start;
}

.suite-badge {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.suite-badge.ricorrenze {
    background: #1976a8;
}

.suite-badge.magazzino {
    background: #00a651;
}

.suite-badge.contabilita {
    background: #d45a42;
}

.app-page #content {
    padding-top: 34px;
}

.app-hero-panel {
    margin: 0 0 28px;
    padding: 34px;
    border: 1px solid rgba(47, 131, 185, 0.22);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(15, 53, 85, 0.10);
}

.app-hero-magazzino {
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(231,248,239,0.90));
}

.app-hero-contabilita {
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,239,236,0.90));
}

.app-hero-panel h1 {
    margin: 0 0 14px;
    font-size: 40px;
}

.app-hero-panel .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.app-hero-panel .hero-actions .btn {
    margin: 0;
}

.app-hero-panel .btn-secondary {
    background: #ffffff;
    color: var(--blu);
    border: 1px solid rgba(23, 74, 118, 0.28);
}

.app-hero-panel .btn-secondary:hover {
    color: #ffffff;
    background: var(--blu);
}

.app-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.app-value-grid article {
    padding: 20px;
}

.app-value-grid span {
    display: block;
    margin-bottom: 8px;
    color: #007f5b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-value-grid h3 {
    margin: 0 0 8px;
    color: var(--blu);
    font-size: 20px;
}

.app-value-grid p {
    margin: 0;
    color: #405563;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.app-section,
.app-highlight {
    margin-bottom: 28px;
    padding: 26px;
}

.app-section h2,
.app-highlight h2 {
    margin-top: 0;
    color: var(--blu-scuro);
}

.app-check-list {
    margin: 0;
    padding-left: 22px;
}

.app-check-list li {
    margin-bottom: 9px;
    color: #405563;
    font-weight: 650;
}

.app-highlight {
    border-left: 6px solid #00a651;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,250,255,0.92));
}

.app-highlight p {
    text-align: left;
}

.app-highlight .btn {
    margin-left: 0;
}

@media (max-width: 1100px) {
    .suite-grid,
    .app-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-hero-panel h1 {
        font-size: 34px;
    }
}

@media (max-width: 760px) {
    .suite-grid,
    .app-value-grid {
        grid-template-columns: 1fr;
    }

    .ida-app-suite,
    .app-hero-panel,
    .app-section,
    .app-highlight {
        padding: 20px;
    }

    .app-hero-panel h1 {
        font-size: 28px;
    }
}

/* =========================================================
   SIDEBAR IN COLONNA - NESSUNA SOVRAPPOSIZIONE AL CONTENUTO
   ========================================================= */

@media (min-width: 1101px) {
    #wrapper {
        display: grid !important;
        grid-template-columns: 320px minmax(0, 1fr) !important;
        align-items: start !important;
    }

    #header {
        grid-column: 1 / -1 !important;
    }

    #sidebar,
    aside#sidebar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 10 !important;
        box-shadow: none !important;
    }

    #content {
        grid-column: 2 !important;
        min-width: 0 !important;
        width: auto !important;
        margin-left: 0 !important;
    }

    #footer {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    #sidebar .menu,
    aside#sidebar .menu {
        padding-bottom: 80px !important;
    }
}

/* =========================================================
   PULSANTE FINE PAGINA - TORNA SU
   ========================================================= */

.page-end-actions {
    display: flex;
    justify-content: center;
    margin: 34px 0 18px;
}

.back-top-link,
.back-top-link:link,
.back-top-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid rgba(0, 166, 81, 0.35);
    border-radius: 999px;
    background: linear-gradient(135deg, #00a651, #2f83b9);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(15, 53, 85, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.back-top-link span {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    line-height: 1;
    font-size: 15px;
}

.back-top-link:hover,
.back-top-link:active {
    color: #ffffff !important;
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 16px 34px rgba(15, 53, 85, 0.26);
}

@media (max-width: 1100px) {
    #sidebar,
    aside#sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* =========================================================
   SIDEBAR ANCORATA SENZA SOVRAPPOSIZIONI
   ========================================================= */

@media (min-width: 1101px) {
    #wrapper {
        display: grid !important;
        grid-template-columns: 320px minmax(0, 1fr) !important;
        max-width: 1500px !important;
        margin: 0 auto !important;
        align-items: start !important;
    }

    #header {
        grid-column: 1 / -1 !important;
    }

    #sidebar,
    aside#sidebar {
        position: sticky !important;
        top: 0 !important;
        width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: start !important;
        grid-column: 1 !important;
        z-index: 20 !important;
        background: #ffffff !important;
        border-right: 1px solid var(--grigio-bordo) !important;
        box-shadow: 10px 0 22px rgba(15, 53, 85, 0.08) !important;
    }

    #content {
        grid-column: 2 !important;
        min-width: 0 !important;
        width: auto !important;
        margin-left: 0 !important;
    }

    #footer {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-right: 36px !important;
    }

    #sidebar .menu,
    aside#sidebar .menu {
        padding-bottom: 110px !important;
    }
}

