@media screen and (min-width: 1024px) {

    body {
    zoom: 0.67;
}

/* --- CARD GRID PRINCIPALE --- */
/* CARD GRID PRINCIPALE - PIU GRANDI */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 38px;
    margin: 38px auto 0 auto;
    max-width: 1400px;
    padding: 0 2vw;
}
.card {
    background: linear-gradient(120deg, #f8fafc 70%, #e9ecef 100%);
    border-radius: 22px;
    box-shadow: 0 2px 16px #babde4aa;
    padding: 48px 24px 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.35s, box-shadow 0.35s;
    position: relative;
    min-height: 180px;
    font-size: 1.18em;
    overflow: hidden;
    z-index: 1;
}
.card-title {
    font-size: 1.7em;
    color: #0b174e;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.card-desc {
    font-size: 1.13em;
    color: #333;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.35s, max-height 0.35s;
    pointer-events: none;
    text-align: center;
}
.card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px #021b50bb;
}

/* Espansione card su overlay */
.card-overlay {
    display: none;
    position: sticky;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(218, 219, 238, 0.18);
    z-index: 1000;
    transition: background 0.3s;
}
.card-overlay.active {
    display: block;
}
.card.expanded {
    position: fixed !important;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.04);
    width: 90vw;
    max-width: 600px;
    height: auto;
    min-height: 320px;
    background: linear-gradient(120deg, #f8fafc 80%, #e9ecef 100%);
    box-shadow: 0 12px 48px #040a5844, 0 2px 16px #030257cc;
    z-index: 2000;
    padding: 54px 32px 38px 32px;
    cursor: default;
    overflow-y: auto;
    border-radius: 28px;
    transition: all 0.45s cubic-bezier(.23,1.02,.32,1);
}
.card.expanded .card-title {
    font-size: 2.2em;
    margin-bottom: 24px;
}
.card.expanded .card-desc {
    opacity: 1;
    max-height: 400px;
    margin-top: 24px;
    pointer-events: auto;
    font-size: 1.18em;
}
body.no-scroll {
    overflow: hidden;
}

/* Banner marketing scorrevole */
.marketing-text {
    color: #bcd9ff;
    font-size: 18px;
    font-family: Georgia;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #0000002e;
    text-align: center;
}

/* Barra menu paralleli */
.dropdown-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;

    margin-bottom: 8px;
    position: relative;
    z-index: 100;
}

/* Dropdown menu */
.dropdown-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    margin-top: 18px;
    margin-bottom: 8px;
    position: relative;
    z-index: 100;
}
.dropbtn {
    background: linear-gradient(90deg, #2a3c5c 60%, #3c4b6b 100%);
    color: #b8cfff;
    padding: 8px 22px;
    font-size: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family:'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 1px 6px #3866411a;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.dropbtn:hover {
    background: linear-gradient(90deg, #363f5a 60%, #2d365e 120%);
    color: #22223B;
    box-shadow: 0 4px 18px #3866412e;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 150px;
    max-width: 180px;
    box-shadow: 0 4px 18px #3866411a;
    border-radius: 16px;
    z-index: 99999;
    padding: 8px 0 8px 0;
    border: 1.2px solid #d3d7ff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.dropdown-content a {
    color: #4064c7;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 15px;
    border-bottom: 1px solid #dad8f3;
    border-radius: 10px;
    transition: background 0.16s, color 0.16s;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background: #c7d3f5;
    color: #22223B;
}
.dropbtn:hover + .dropdown-content,
.dropbtn:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
    pointer-events: auto;
}


/* Box */
.intesta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: 1000;
    padding: 32px 0 18px 0;
    margin-bottom: 12px;
    background: #1b263b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px #3866411a;
    box-sizing: border-box;
}

.principale {
    position: fixed;
    width: 85%;
    left: 0%;
    height: 60%;
    top: 30%;
    overflow: auto;
    background: #e0e1dd;
    padding: 32px 32px 24px 32px;
    box-sizing: border-box;
}

.secondario {
    position: fixed;
    width: 15%;
    height: 60%;
    right: 0%;
    left: 85%;
    top: 30%;
    overflow: auto;
    background: #415a77;
    padding: 20px 16px 24px 16px;
    box-sizing: border-box;
}

.pie {
    position: fixed;
    width: 100%;
    height: 10%;
    right: 0%;
    left: 0%;
    bottom: 0;
    background: #778da9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paragrafi e link */
.h1 {
    font: 38pt times new roman;
    color: #F7F7F7;
    text-align: center;
}

a:link {
    font: 16pt arial narrow;
    color: #c9d4ec;
    text-align: center;
    text-decoration: none;
}

a:visited {
    font: 16pt arial narrow;
    color: #1b3169;
    text-align: center;
    text-decoration: none;
}

/* Colore testo pie */
.text {
    color: #ffffff;
    font: 16pt arial narrow;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    position: static;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Colore testo h1 (intestazione) */
.text1 {
    color: #FFF;
    font: 50pt times new roman;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    position: static;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 16px;
}

/* Colore testo box laterale dx */
.text2 {
    color: #ffffff;
    font: 20pt serif;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    position: static;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 16px;
}

/* Colore testo */
.text3 {
    font: 20pt arial narrow;
    color: #ffffff;
    text-align: center;
    padding-top: 3%;
}

.text4 {
    color: #010c49;
    font: 25pt georgia;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.text5 {
    color: #5e718d;
    font: 20pt  serif;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    position: static;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 26px;
}

.text6 {
    color: #5e718d;
    font: 18pt  serif;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    position: static;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Valore in pixel per la curvatura immagini */
img {
  border-radius: 15px; 
}

}