/* ===== VARIABLES ===== */
:root {
    --text-color: #141414;
    --heading-bar: #ffffff;
    --bg-color: #ffffff;
    --bg-color-2: #ffffff;
    --bg-color-3: #f8f8fa;
    --primary-color: #fff;
    --primary-bg: #000;
    --link-color: #0051ff;
    --brand-signature-blue: #0057ff;
    --border-color-1: #ebecf2;
    --cube-depth: 60px;
    --cursive: 'Whisper', 'sans-serif';
}

/* Ensure consistent h1 rendering across browsers */
:where(h1) {
    margin-block: 0.67em; font-size: 2em;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 18px;
    height: 14px;
    cursor: pointer;
    z-index: 10000;
}

.burger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Semi-transparent white overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    flex-direction: column;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.mobile-menu li {
    padding: 15px 0;
}

.mobile-menu li a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

/* Burger Menu Animation */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    opacity: 0;
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 1;
    transform: translateY(-2px) rotate(0deg);
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ===== POPUP STYLES ===== */
/* ===== MC-ICO STYLES ===== */
/* ===== MC-ICO-PARALLEL STYLES ===== */
/* ===== LIST STYLES ===== */
/* ===== BODY STYLES ===== */
/* ===== BASE STYLES ===== */
*, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

*, html {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background: var(--bg-color);
}
body.page-presentazione{
    
background-color: #fffdfe;
}
ul {
    list-style: none;
    display: flex;
    position: relative;
    max-width: 90%;
    width: fit-content;
    min-width: fit-content;
    width: fit-content;
    justify-content: space-between;
    flex-direction: row;
}

ul:nth-of-type(2) {
    overflow: hidden;
    overflow-x: auto;
    padding: 0 10px;
}

ul li {
    padding: 10px;
    font-size: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1;
    padding-top: 5px;
}

ul li a {
    font-weight: 500;
    text-decoration: unset;
    letter-spacing: -0.2px;
    color: var(--text-color);
    cursor: pointer;
    transition: color .33s ease
}

ul li a:hover {
    color: var(--link-color)
}

ul li a mc-ico {
    cursor: pointer;
}

ul li a mc-ico:hover mc-ico-parallel:after {
    background-color: var(--link-color);
}

ul li a mc-ico:hover mc-ico-parallel:before {
    background-color: var(--link-color);
}

ul li a mc-ico:hover:after {
    background-color: var(--link-color);
}

ul li a mc-ico:hover:before {
    background-color: var(--link-color);
}

nav.table-of-contents{
    display:flex;
    background-color: var(--bg-color-3);
    padding: 10px;
    border-radius: 16px;
    margin: 0 auto;
    margin-bottom: 25px;
}
nav.table-of-contents h2{
    display:none;
}
nav.table-of-contents ul li{
    margin:0;
    padding: 0 15px;
}
nav.table-of-contents ul li li{
    margin-left:5px;
}
.brand-signature {
    color: var(--brand-signature-blue);
}

.beneficio-numero.deep-black-gradient {
    /* Gradiente verticale dal grigio antracite al nero puro */
    background: linear-gradient(180deg, #2c2c2c 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Un leggero "padding" interno per evitare che il gradiente venga tagliato */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.metallic-gradient {
    /* 1. Il Gradiente Metallico */
    background: linear-gradient(145deg, #888 0%, /* Highlight superiore */ #4a4a4a 25%, /* Tono medio scuro */ #1a1a1a 50%, /* Corpo principale quasi nero */ #2c2c2c 75%, #444 100% /* Leggero riflesso inferiore */ );
    /* 2. Preparazione per l'Animazione */
    background-size: 200% 200%;
    background-position: 80% 50%;
    /* Posizione iniziale del gradiente */
    transition: background-position 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Transizione fluida */
    /* 3. Applicazione del Gradiente al Testo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    /* Ombra molto sottile */
}

/* 5. L'Animazione del Riflesso all'Hover */
.beneficio-item:hover .metallic-gradient {
    background-position: 20% 50%;
    /* Sposta il gradiente per creare l'effetto "sheen" */
}

.precious-metal-gradient {
    /* Gradiente che simula un metallo nobile e luminoso (argento/platino) */
    background: linear-gradient(145deg, #ffffff 0%, /* Riflesso quasi bianco puro */ #d8d8d8 25%, /* Tono argento chiaro */ #b0b0b0 50%, /* Corpo principale del metallo */ #c0c0c0 75%, #f0f0f0 100% /* Leggero riflesso inferiore */);
    background-size: 200% 200%;
    background-position: 80% 50%;
    transition: background-position 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 10px;
    font-weight: 400;
    /* La tua idea in azione */
    -webkit-text-stroke-width: 4px;
    -webkit-text-stroke-color: #c7c7c700;
    /* O il colore che preferisci */
    /* La magia per non "soffocare" il font */
    paint-order: stroke fill;
}

/* Animazione all'hover sul titolo (o su un contenitore) */
.home:hover .precious-metal-gradient {
    background-position: 20% 50%;
}

.deep-black-gradient {
    /* Gradiente verticale dal grigio antracite al nero puro */
    background: linear-gradient(180deg, #2c2c2c 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Un leggero "padding" interno per evitare che il gradiente venga tagliato */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Stile per il testo multicolore "premium" */
.multicolor-gradient {
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    /* Necessario per far funzionare il background-clip */
}

/* NUOVO: Stile "Inchiostro Vivo" per la parola "Umano" */
.living-ink {
    /* Gradiente sottilissimo dal grigio scuro al nero */
    background: linear-gradient(180deg, #333333 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-right: 10px;
}

mc-ico-parallel:before {
    content: '';
    border-color: transparent;
    margin-top: 3px;
    margin-left: 14px;
    padding: 0;
    background-color: #000;
    width: 6px;
    height: 6px;
    margin-top: 1px;
    margin-right: 3px;
    float: left;
    border-radius: 100%;
    transition: all ease 0.4s;
}

/* ===== BUTTON AND BLOCK STYLES ===== */
a.button {
    text-decoration: unset;
    padding: 4px 15px;
    border-radius: 100px;
    margin: 10px;
    line-height: 1;
    width: fit-content;
    display: inline-block;
    font-size: 20px;
    text-align: center;
    border: solid 1px var(--link-color);
    color: var(--link-color);
    padding-left: 5px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all ease .5s;
}

a.button span {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.active mc-ico-parallel:after {
    animation: bounce1 0.33s 2.66s 2 linear;
    background-color: var(--deep-black);
}

block.what {
    padding: 0 10vw;
    text-align: center;
    max-width: 1200px;
}

mc-ico-parallel:after {
    content: '';
    position: absolute;
    padding: 0px 10px;
    border: solid 2px var(--button-color);
    margin-left: -13px;
    border: solid 1px transparent;
    margin-top: -8px;
    transition: all ease 0.33s;
    transform: rotate(150deg);
    height: 3px;
    background-color: #00e0ae;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-bottom: none;
    /* background-color: #212121; */
    transition: all ease 0.33s;
    box-shadow: 0px 0px 0px var(--white);
}

mc-ico {
    display: block;
    float: right;
    width: auto;
    padding-top: 10px;
    padding-right: 10px;
    margin-top: 25px;
    margin-left: 25px;
    transform: scale(0.7) translate(10px, -3px);
    transition: all ease 0.33s;
    position: relative;
    margin: 0 auto;
    float: left;
    /* width: 100%; */
    top: unset;
    opacity: 1;
    padding: 25px 15px;
    z-index: 100;
    padding-left: 0;
    transform: scale(0.7) translate(0px, 10px);
    margin-top: calc(var(--small-spacing) / 1.3);
    margin-top: 0;
    margin-bottom: 0;
    will-change: transform;
}

mc-ico.active {
    opacity: 1;
    width: 33px;
    transform: scale(1.5);
    top: calc(50vh - 167px);
}

mc-ico.active.check:before, mc-ico.active.check:after, mc-ico.active.check mc-ico-parallel:before, mc-ico.active.check mc-ico-parallel:after {
    background-color: var(--green);
    opacity: 0;
}

mc-ico[back_mode] mc-ico-parallel:after {
    margin-top: -17px;
    padding: 0 16px;
    margin-left: -24px;
    height: 3px;
}

mc-ico[back_mode] mc-ico-parallel:before {
    display: none;
}

mc-ico[back_mode] mc-ico-parallel {
    float: left;
}

mc-ico[back_mode]:before {
    display: none;
}

mc-ico[back_mode]:after {
    margin-top: 4px;
    height: 4px;
    margin-left: -24px;
}

mc-ico:after {
    content: '';
    position: absolute;
    padding: 0px 16px;
    border: solid 2px var(--button-color);
    margin-left: -47px;
    border: solid 0px var(--bg-color);
    margin-top: -13px;
    transition: all ease 0.33s;
    transform: rotate(38deg) translate(0, 0);
    height: 5px;
    background-color: #ff006f;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-top: none;
    /* background-color: #212121; */
    border-bottom: none;
    animation-iteration-count: 3;
}

mc-ico:before {
    content: ' ';
    line-height: 50px;
    border-color: transparent;
    margin-top: 3px;
    padding: 0;
    background-color: var(--net-blue-color);
    width: 10px;
    height: 10px;
    margin-top: 0px;
    float: left;
    border-radius: 100%;
    background-color: #000;
    margin-right: -4px;
    transition: all ease 0.33s;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--net-color-1);
    animation: net-eye 3s 0.1s ease-in-out 1;
    /* box-shadow: 0px 3px 19px var(--net-color-4); */
}

popup {
    font-weight: 600;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    height: 250px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: var(--bg-color-2);
    overflow: hidden;
}

popup desktop {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: block;
    border-radius: 10px;
}

popup mobile {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 10px;
}

popup desktop cover {
    background: transparent;
    width: 100%;
    height: 100%;
    display: block;
}

popup actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: right;
    padding: 10px 20px;
}

/* ===== HEADING STYLES ===== */
heading {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    z-index: 1000;
    background-color: rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: blur;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 100000;
    border-bottom: solid 1px rgb(245 245 245);
}

heading-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px;
}

/* ===== SECTION STYLES ===== */
section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 95vh;
    flex-direction: column;
}

section.home {
    z-index: 100;
    position: relative;
    display: flex;
    padding-top: 120px;
}

section.home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Altezza della sfumatura */
    /* background: linear-gradient(to bottom, rgb(254 254 254 / 0%), #fbfbfb 100%); */
    pointer-events: none;
    /* Rende il gradiente non cliccabile */
    /* border-bottom: solid 1px #f5f5f5; */
}

/* ===== TYPOGRAPHY AND CTA STYLES ===== */
h1 {
    font-size: clamp(60px, 10vw, 120px);
    text-align: center;
    font-weight: 800;
    line-height: 1;
}

h1 span {
}

h1 span:nth-of-type(3) {
    align-content: space-between;
    display: inline;
}

h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 20px;
}

h2 span {
    font-family: var(--cursive);
    font-weight: 900;
    font-style: normal;
    font-size: clamp(30px, 2vw, 30px);
    letter-spacing: 2px;
}

span span {
    font-family: var(--cursive);
    font-weight: 600;
    font-style: normal;
}

/* Il contenitore della CTA deve avere un posizionamento relativo 
   per fare da "ancora" al popover assoluto. */
block.cta {
    position: relative;
    margin-top: 120px;
}

.avatar-popover {
    /* Posizionamento assoluto sopra il pulsante */
    position: absolute;
    bottom: 100%;
    /* Si posiziona appena sopra il bordo superiore del contenitore */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
    /* Spazio tra il popover e il pulsante */
    /* Stile del contenitore del popover */
    width: fit-content;
    /* Larghezza del popover */
    height: 100px;
    /* Altezza del popover */
    background-color: rgb(255 255 255 / 66%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Ombra professionale */
    border: 1px solid #f0f0f0;
    /* Stato iniziale (nascosto) */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Transizione fluida */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-right: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    will-change: blur;
}

.avatar-popover h6 {
    font-size: 18px;
    margin-left: -10px;
}

/* Stile dell'immagine WebP all'interno */
.avatar-popover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Assicura che l'immagine riempia il contenitore senza distorsioni */
    object-position: bottom;
}

/* Azione all'hover sul pulsante */
a.button:hover .avatar-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Sale alla sua posizione finale */
    padding-top: 10px;
}

/* ===== ICON STYLES ===== */
ico {
    display: inline-block;
    vertical-align: middle;
    width: fit-content;
    width: 30px;
    height: 30px;
}

.button ico {
    margin-right: 0;
    /* background-color: var(--primary-bg); */
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
}

.button ico:after {
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}

ico[sami]:after {
    background-image: url('./ico/sami-2.svg');
    animation: rotate 2s ease infinite;
    filter: invert(1);
    -webkit-filter: invert(1);
}

ico[sprout]:after {
    background-image: url('./ico/sprout.svg');
}

ico[star]:after {
    background-image: url('./ico/star.svg');
}

/* ===== NARRATIVE SECTION STYLES ===== */
.narrative-section.bridge-section {
    position: relative;
    /* Necessario per posizionare il testo sopra lo sfondo */
    min-height: fit-content;
    display: flex;
    align-items: center;
    /* Centra il testo verticalmente */
    justify-content: center;
    color: #fff;
    /* Testo bianco per contrasto con lo sfondo scuro */
    padding-top: 0;
    padding-bottom: 0;
}

.bridge-visual-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Esempio con immagine: */
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.7);
}

/* Assicurati che il contenuto testuale stia sopra lo sfondo visuale */
.bridge-section .section-content {
    position: relative;
    z-index: 2;
    max-width: fit-content;
}

.bridge-title {
    color: var(--text-color);
    font-size: clamp(20px, 3vw, 30px);
    max-width: fit-content;
    margin: 25px;
    padding-bottom: 10px;
    font-weight: 500;
}

.bridge-title span {
    font-size: clamp(28px, 3vw, 40px);
    font-family: var(--cursive);
    font-weight: 400;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--brand-signature-blue);
    paint-order: stroke fill;
}

/* ===== STILI PER LE NUOVE SEZIONI NARRATIVE ===== */
/* Stile base per le nuove sezioni */
.narrative-section {
    padding: 100px 20px;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Inizialmente invisibile per l'animazione */
    transform: translateY(30px);
    /* Spostato in basso per l'animazione */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    box-sizing: border-box;
}

.narrative-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    width: 100%;
    max-width: 1130px;
}

.section-title {
    font-size: clamp(20px, 2.5vw, 33px);
    text-align: center;
    margin: 0 auto;
    margin-bottom: 40px;
    margin-top: 20px;
    font-weight: 600;
    max-width: fit-content;
    line-height: 1;
}

.section-title b {
    font-weight: 800;
}

.section-description {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
    max-width: 888px;
    margin: 0 auto 55px auto;
}

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

/* Sezione 1: Confronto */
.confronto {
    display: flex;
    gap: 30px;
}

.scenario {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    transform-style: preserve-3d;
}

.scenario p {
    font-size: clamp(14px, 2vw, 16px);
}

.scenario h4 {
    margin-bottom: 15px;
    font-size: clamp(20px, 2.5vw, 28px);
}

.scenario h4 span {
    font-family: var(--cursive);
    font-style: normal;
    font-weight: 400;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--brand-signature-blue);
    paint-order: stroke fill;
}

.scenario.active {
    background: linear-gradient(0deg, rgb(240 241 246), rgb(255 255 255));
    color: var(--text-color);
    border-color: #e0e0e0;
}

.scenario.active h4 {
    color: var(--text-color);
}

/* Sezione 2: Flusso Visual */
.flusso-visual {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    color: #888;
}

.flusso-visual span {
    color: var(--text-color);
    margin: 0 15px;
}

.flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    opacity: 0.5;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flow-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.flow-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.6s ease;
    /* Stile Vetro/Metallo di base */
    background: transparent;
    border: 0px solid #e0e0e0;
    box-shadow: none;
}

.flow-step.is-active .flow-icon {
    /* border-color: rgba(0,0,0,0.3); */
    transform: scale(1.05);
    opacity: 1;
}

.flow-icon ico {
    width: 23px;
    height: 23px;
    opacity: 0.6;
    transition: opacity 0.6s ease;
}

.flow-step.is-active .flow-icon ico {
    opacity: 1;
}

.flow-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    padding: 3px;
    /* Lo spessore del nostro anello */
    /* 1. Applichiamo il gradiente come sfondo */
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    /* 2. Creiamo una maschera per "bucare" il centro e creare l'anello */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    /* 3. Animazione */
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: spin 1.2s linear infinite;
    animation-play-state: paused;
}

.flow-step.is-active .flow-icon {
    border-color: transparent;
    transform: scale(1.05);
}

.flow-step.is-active .flow-icon::before {
    opacity: 1;
    animation-play-state: running;
    /* L'animazione parte */
}

.flow-label {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    text-align: center;
    transition: color 0.6s ease;
    min-height: 40px;
}

.flow-step.is-active .flow-label {
    color: #000;
}

/* Connettore Sequenziale */
.flow-connector {
    width: 150px;
    height: 4px;
    border-radius: 4px;
    position: relative;
    background-color: #e0e0e0;
    /* La base della linea */
    margin-bottom: 44px;
}

.flow-connector .connector-line-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    /* Usiamo il nostro gradiente metallico scuro per coerenza */
    background: linear-gradient(90deg, #888, #444, #111);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

.flow-connector.is-drawing .connector-line-animated {
    transform: scaleX(1);
    /* Si "disegna" al 100% */
}

.flow-step.is-active .flow-icon::before {
    opacity: 1;
    animation-play-state: running;
    /* L'animazione parte */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Definizioni per le nuove icone del flusso */
ico[user]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

ico[chart]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'%3E%3C/path%3E%3Cpath d='M18.7 8a2 2 0 0 1-2 2H13V3a2 2 0 0 1 2-2h1.7a2 2 0 0 1 2 2v5z'%3E%3C/path%3E%3Cpath d='M8 18a2 2 0 0 1-2 2H3V11a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v7z'%3E%3C/path%3E%3C/svg%3E");
}

ico[calendar-check]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3Cpath d='m9 16 2 2 4-4'%3E%3C/path%3E%3C/svg%3E");
}

/* Sezione 3: Case Study */
.case-study-card {
    display: flex;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.case-study-content, .case-study-benefici {
    padding: 40px;
    flex: 1;
    font-size: clamp(14px, 2vw, 18px);
}

.case-study-benefici {
    background-color: #e9eaf0;
}

.case-study-benefici h4 {
    font-size: 22px;
    margin-bottom: 20px;
}

.benefici-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefici-lista li {
    font-size: 17px;
    padding: 0;
    font-weight: 500;
}

.benefici-lista li::before {
    margin-right: 10px;
}

/* Sezione 5: Final CTA */
.final-cta {
    background-color: #f5f5f7;
    color: var(--bg-color);
    min-height: 40vh;
    padding: 100px 20px;
    max-width: 1130px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    margin-bottom: 120px;
}

.final-cta .section-title, .final-cta p {
    color: var(--text-color);
}

.final-cta p {
    font-size: clamp(14px, 2vw, 18px);
    max-width: 784px;
    margin: 0 auto 30px auto;
}

.final-cta .button {
    background-color: var(--link-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-top: 30px;
    width: fit-content;
    cursor: pointer;
}

/* ===== PERFEZIONAMENTI VISIVI E ANIMAZIONI ===== */
/* Sezione 1: Placeholder per GIF animata */
.scenario-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: transparent;
    /* Colore base del placeholder */
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
    /* Per inserire la tua GIF, decommenta e modifica la riga seguente */
    /* background-image: url('path/to/your/gif.gif'); */
    background-size: cover;
    background-position: center;
}

.scenario.active .scenario-visual {
    border: solid 10px var(--border-color-1);
}

.scenario.active .scenario-visual img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom;
}

.placeholder-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    animation: subtle-pulse 2.5s ease-in-out infinite;
    display: none;
}

.scenario.active .placeholder-icon {
    /* Qui potresti mettere un'icona SVG del tuo logo per l'AI */
    animation-name: subtle-pulse-ai;
}

.scroll-incentive {
    animation: breathe 2.5s ease-in-out infinite;
}

/* Sezione 3: Card animate per i benefici */
.case-study-benefici {
    background-color: transparent;
    /* Rimuoviamo lo sfondo per dare spazio alle card */
}

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

.beneficio-item {
    background-color: transparent;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: solid 1px #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.beneficio-numero {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 5px;
}

.beneficio-numero span.min {
    font-size: 26px;
}

.beneficio-numero.leadership {
    font-size: clamp(28px, 3.5vw, 40px);
    padding-top: 8px;
    /* Allineamento verticale */
}

.premium-gradient-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.beneficio-item:hover .premium-gradient-icon {
    transform: scale(1.1) rotate(10deg);
    /* Aggiunge una leggera rotazione all'hover */
}

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

.beneficio-item {
    position: relative;
    /* Contenitore per gli stati assoluti */
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    height: 140px;
    /* Altezza fissa per l'animazione */
    cursor: pointer;
    overflow: hidden;
    /* Nasconde gli elementi che escono */
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    box-shadow: 0 1px 0 1px rgba(0, 0, 0, .02), 0 4px 6px rgba(0, 0, 0, .02), inset 0 0 0 1px rgb(255 255 255 / 6%);
}

.beneficio-item::before {
    /* Aggiunge un "glow" di sfondo all'hover */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
    border-color: #ccc;
}

.beneficio-item:hover::before {
    width: 250px;
    height: 250px;
}

/* Stile dei due stati: iniziale e hover */
.beneficio-initial, .beneficio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stato Iniziale: visibile di default */
.beneficio-initial {
    opacity: 1;
    transform: translateY(0);
}

.beneficio-item:hover .beneficio-initial {
    opacity: 0;
    transform: translateY(-10px);
    /* Esce verso l'alto */
}

/* Stato Hover: nascosto di default */
.beneficio-hover {
    opacity: 0;
    transform: translateY(10px);
    /* Entra dal basso */
}

.beneficio-item:hover .beneficio-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Stili per icone e testo */
.beneficio-initial ico {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.beneficio-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.beneficio-numero {
    /* Stili per il numero quando appare */
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 800;
}

/* Definizioni per le nuove icone */
ico[engagement]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

ico[conversion]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1l4 4-4 4'%3E%3C/polyline%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14'%3E%3C/path%3E%3Cpolyline points='7 23l-4-4 4-4'%3E%3C/polyline%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'%3E%3C/path%3E%3C/svg%3E");
}

ico[clock]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

ico[star]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* ===== STILE PER LA NUOVA SEZIONE ROADMAP ===== */
/* Stile base e titoli della sezione */
.roadmap-section {
    padding: 120px 20px;
}

/* Contenitore principale della roadmap */
.roadmap-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 80px;
}

/* La linea orizzontale della timeline */
.timeline-line {
    position: absolute;
    top: 30px;
    /* Posizionata verticalmente al centro dei cerchi */
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

/* Stile di ogni nodo sulla timeline */
.roadmap-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%;
    z-index: 2;
}

/* Icona dentro il nodo */
.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.final-node .node-icon ico[sami] {
    border-color: transparent;
    box-shadow: none;
    position: relative;
}

.node-icon ico {
    width: 28px;
    height: 28px;
    transform: scale(0.9);
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

/* Contenuto testuale sotto l'icona */
.node-content {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    /* Invisibile di default */
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.node-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.node-description {
    font-size: clamp(14px, 2vw, 16px);
    color: #666;
    max-width: 230px;
    /* Larghezza massima per il testo */
    min-height: 90px;
}

/* Interazioni al passaggio del mouse */
.roadmap-node:hover .node-icon {
    transform: scale(1.1);
    border-color: var(--text-color);
    background-color: var(--bg-color);
}

.roadmap-node:hover .node-icon ico {
    filter: grayscale(0);
    opacity: 1;
}

.roadmap-node:hover .node-content {
    opacity: 1;
    transform: translateY(0);
}

/* Stile distintivo per il nodo finale (AI Human) */
.final-node .node-icon {
    border-color: #e0e0e0;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    /* Aggiunge un "glow" statico */
    animation: pulse-final-node 2.5s ease-in-out infinite;
}

.final-node .node-icon ico {
    filter: grayscale(0);
    opacity: 1;
}

.final-node .node-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    padding: 3px;
    /* Applichiamo il nostro gradiente premium STATICO */
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    /* La tecnica della maschera per creare l'anello */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: transform 0.4s ease, all ease 1s;
    /* Transizione per lo scale */
    opacity: 0;
    transform: scale(0);
}

.roadmap-node.final-node:hover .node-icon::before {
    /* L'animazione di rotazione PARTE SOLO ALL'HOVER */
    animation: spin 1.2s linear infinite;
    opacity: 1;
}

/* Aggiungiamo anche un leggero ingrandimento per un feedback migliore */
.roadmap-node.final-node:hover .node-icon {
    transform: scale(1.05);
    border-color: transparent;
}

ico::after {
    content: '';
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Definizioni per le icone (da aggiungere al tuo file) */
ico[doc]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3C/svg%3E");
}

ico[mail]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

ico[gears]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
}

/* ===== STILE FOOTER LEGALE ===== */
.site-footer {
    background-color: transparent;
    padding: 60px 20px;
    text-align: center;
    border-top: solid 1px #f5f5f5;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-social {
    margin-bottom: 25px;
  
}

.footer-social a {
    display: inline-block;
    margin: 0 12px;
}

.footer-social ico {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-social a:hover ico {
    opacity: 1;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
    color: var(--link-color);
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--link-color);
}

.footer-legal {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
}

/* Definizioni icone per il footer */
ico[linkedin]::after, ico[twitter]::after, ico[facebook]::after, ico[instagram]::after, ico[tiktok]::after {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

ico[linkedin]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'%3E%3C/path%3E%3Crect x='2' y='9' width='4' height='12'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3C/svg%3E");
}

ico[twitter]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

ico[facebook]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

ico[instagram]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

ico[tiktok]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E");
}

ico[whatsapp]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-whatsapp' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'%3E%3C/path%3E%3C/svg%3E");
}

ico[email]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}
    

/* ===== STILE PER L'EFFETTO CUBO 3D (CON FIX PER SAFARI) ===== */
.cube-container {
    perspective: 800px;
    -webkit-perspective: 800px;
    /* Prefisso per Safari */
    width: 100%;
    height: 120px;
    margin-top: 15px;
    position: relative;
}

.cube-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /* Prefisso per Safari */
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* Regola fondamentale, la lasciamo anche qui */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prefisso per Safari */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    /* Aggiunto per evitare trasparenze strane */
    border-radius: 8px;
    transition: opacity 0.5s ease;
    opacity: 0;
}

/* Posizionamento 3D di ogni faccia del cubo */
.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(var(--cube-depth));
    -webkit-transform: rotateY(0deg) translateZ(var(--cube-depth));
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(var(--cube-depth));
    -webkit-transform: rotateY(90deg) translateZ(var(--cube-depth));
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(var(--cube-depth));
    -webkit-transform: rotateY(180deg) translateZ(var(--cube-depth));
}

.cube-face:nth-child(4) {
    transform: rotateY(270deg) translateZ(var(--cube-depth));
    -webkit-transform: rotateY(270deg) translateZ(var(--cube-depth));
}

.cube-title {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    margin-bottom: 5px;
}

.scenario.active .cube-title {
    color: var(--text-color);
}

.cube-description {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.scenario.active .cube-description {
    color: var(--text-color);
}

/* ===== STILE PER LA NUOVA SEZIONE "SOUL" ===== */
.soul-section {
    background-color: var(--bg-color);
    padding: 120px 20px;
    padding-bottom: 60px;
}

.soul-container {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Spazio tra testo e animazione */
}

.soul-text {
    flex: 1;
}

.soul-animation {
    flex: 1;
    width: -webkit-fill-available;
}

/* Allineamento a sinistra per i titoli in questa sezione */
.section-title.left-aligned, .section-description.left-aligned {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Stile per l'animazione del testo */
.text-slider-container {
    height: 150px;
    /* Altezza fissa per contenere l'animazione */
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e8e8e8;
    padding-left: 40px;
}

.text-slider {
    position: relative;
    height: 30px;
    /* Altezza di una singola riga di testo */
    width: 100%;
    overflow: hidden;
}

.text-slider p {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 30px;
    /* Posizione iniziale (fuori vista) */
    opacity: 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 30px;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.text-slider p.active {
    top: 0;
    /* Posizione attiva (in vista) */
    opacity: 1;
}

.text-slider p.exiting {
    top: -30px;
    /* Posizione di uscita */
    opacity: 0;
}

.text-slider p b {
    font-size: 20px;
    margin-right: 10px;
}

.text-slider p.final-word {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: clamp(22px, 4vw, 42px);
    text-align: center;
}

/* ===== STILE PER LA SEZIONE ARTICOLI SCORREVOLI ===== */
.articles-section {
    padding: 120px 0;
    /* Padding solo verticale */
}

/* Usiamo un contenitore full-width per lo slider */
.section-content-fullwidth {
    max-width: 100%;
    width: 100%;
}

.articles-section .section-title {
    margin-bottom: 60px;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    overflow-x: auto;
    /* Abilita lo scroll orizzontale */
    cursor: grab;
    /* Nasconde la scrollbar standard */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.slider-container.active {
    cursor: grabbing;
    /* Cursore che indica un'azione di presa */
    cursor: -webkit-grabbing;
}

.slider-track {
    display: flex;
    gap: 30px;
    padding: 20px 5vw;
    /* Padding laterale per non tagliare le card ai bordi */
    width: fit-content;
    /* Larghezza basata sul contenuto */
    /* Magia dello scroll snap */
    scroll-snap-type: x mandatory;
}

.article-card {
    flex-shrink: 0;
    /* Impedisce alle card di restringersi */
    width: 350px;
    /* Larghezza fissa per ogni card */
    min-height: 200px;
    height: fit-content;
    /* Altezza fissa */
    background-color: var(--bg-color-2);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    /* Punto di aggancio per lo snap */
    scroll-snap-align: start;
}

.article-card a {
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--link-color);
    cursor: move;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--text-color);
}

.article-card h5 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
}

.article-card p {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
}

.cta-card__content a {
    height: fit-content;
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    border: none;
    color: var(--primary-color);
    padding: 10px 23px;
    margin: 0 auto;
    cursor: pointer;
}

/* ===== STILE FINALE PER IL MOTORE TECNOLOGICO CON CANVAS ===== */
.tech-subtitle {
    font-size: 24px;
    font-weight: 800;
    opacity: 0.1;
    text-align: center;
    margin-top: 80px;
    /* Lo avvicina al centro */
    /* Aumenta l'eleganza */
}

.tech-engine-section {
    background-color: var(--primary-bg);
    background: radial-gradient(#ffffff, #ffffff);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

/* Posizionamento del Canvas */
#tech-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Sta sopra lo sfondo ma sotto il contenuto */
    pointer-events: none;
    /* Fondamentale per non bloccare i click */
}

/* Il resto del contenuto deve stare sopra il canvas */
.tech-engine-section .section-content {
    position: relative;
    z-index: 10;
}

.tech-engine-section::before {
    /* Sfondo Radiale */
    content: '';
    position: absolute;
}

.tech-title-gradient {
    background: linear-gradient(273deg, #3b3b3b, #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 70px;
}

.original .tech-title-gradient {
    background: linear-gradient(273deg, #3b3b3b, #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.tech-engine-section .section-title {
    margin-bottom: 0;
    /* white-space: normal; */
    margin-top: 80px;
}

.tech-engine-section .section-title.original {
    margin-top: 0;
    font-size: clamp(25px, 10vw, 90px);
    margin-bottom: 60px;
}

.chip-container {
    position: relative;
    margin: 0 auto 80px auto;
    width: fit-content;
    overflow: hidden;
}

.chip-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(36deg, #6a82fb, #fc5c7d, #fbd786);
    padding: 50px;
    border: solid 0px rgb(255 255 255);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.1),0 6px 4px -2px rgba(0,0,0,.15),inset 0 -3px 1px -1px rgba(0,0,0,.25);
    margin-bottom: 10px;
    transform: scale(1) rotate(0deg);
}

.chip-core:after {
    content: "";
    background: linear-gradient(90deg, transparent 20%, transparent 40%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .15) 55%, transparent 70%, transparent);
    z-index: 10;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(2.2) rotate(-30deg);
    animation: shine 5s ease infinite;
    opacity: .6;
    background-size: 200% auto;
    mix-blend-mode: plus-lighter;
    border-radius: 100%;
    overflow: hidden;
}

.chip-core:before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 26.56%, rgba(0, 0, 0, .05) 51.56%, rgba(0, 0, 0, .05));
}

.chip-core:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(137deg, rgb(0 0 0 / 10%), rgb(0 0 0 / 10%) 26.56%, rgb(255 255 255 / 20%) 51.56% 51.56%, rgb(255 255 255 / 10%));
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transform: rotateZ(0deg);
    /* border-radius: 16px; */
    overflow: hidden;
    transform: scale(0.95);
}

@keyframes shine {
    100% {
        background-position: 200%;
        opacity: 0;
    }
}

.powered-by-gradient {
    background: linear-gradient(145deg, #ffffff 0%, /* Riflesso quasi bianco puro */ #ffffff 25%, /* Tono argento chiaro */ #ffffff 50%, /* Corpo principale del metallo */ #f4f4f4 75%, #ffffff 100% /* Leggero riflesso inferiore */);
    background-size: 200% 200%;
    background-position: 80% 50%;
    transition: background-position 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 5px rgb(255 255 255 / 33%);
    font-weight: 800;
    font-size: 25px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-card {
    position: relative;
    border-radius: 14px;
    padding: 3px;
    transition: all 0.4s ease;
    background-color: transparent;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    /* opacity: 1; */
    transition: opacity 0.4s ease, all ease 1s;
    z-index: 0;
    background: conic-gradient(from 74deg at 50% 50%, rgb(255 255 255 / 11%) 0deg, rgb(255 255 255 / 38%) 176deg, #000000 193deg, rgb(255 255 255 / 8%) 217deg, rgb(255 255 255 / 12%) 1turn);
    /* transform: rotateX(45deg); */
    height: 40px;
}

.tech-card:hover::before {
    opacity: 1;
    animation: conicAnim 3s ease infinite;
}

.tech-card-content {
    border-radius: 13px;
    padding: 25px;
    height: 100%;
    border: solid 1px #e0e0e0;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    z-index: 100;
    position: relative;
    transform: scale(1);
}

/* MODIFICA QUI: Stile per l'icona con effetto "glow" */
.tech-card .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    position: relative;
    /* Necessario per il pseudo-elemento glow */
}

.tech-card .card-icon ico {
    width: 100%;
    height: 100%;
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    position: relative;
    /* Per stare sopra il glow */
    z-index: 2;
}

/* NUOVO: Il "Glow" dell'icona */
.tech-card .card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* Colore base del glow */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.tech-card .card-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    margin-bottom: 20px;
    filter: invert(1);
}

.tech-card .card-icon ico {
    width: 100%;
    height: 100%;
    filter: invert(1);
    opacity: 0.8;
}

.tech-card h4 {
    color: #000000;
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 10px;
    text-align: center;
}

.tech-card p {
    color: #000000;
    font-size: clamp(12px, 2vw, 15px);
    opacity: 0.75;
}

.tech-card p b {
    color: #000000;
    font-weight: 800;
}

/* NUOVO: Definizioni per le icone tech (necessarie) */
ico[brain]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-2.5 2.5h-3A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2h3z'%3E%3C/path%3E%3Cpath d='M14.5 2A2.5 2.5 0 0 1 17 4.5v15a2.5 2.5 0 0 1-2.5 2.5h-3a2.5 2.5 0 0 1-2.5-2.5v-15A2.5 2.5 0 0 1 11.5 2h3z'%3E%3C/path%3E%3C/svg%3E");
}

ico[lock]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

ico[rocket]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.3.05-3.1S5.21 15.66 4.5 16.5z'%3E%3C/path%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.87 12.87 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'%3E%3C/path%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'%3E%3C/path%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'%3E%3C/path%3E%3C/svg%3E");
}

/* ===== STILE FINALE E SEMPLIFICATO PER LA BILANCIA DEL VALORE ===== */
/* ===== STILE FINALE E SEMPLIFICATO PER LA BILANCIA DEL VALORE (Versione Migliorata) ===== */
.value-equation-section {
    padding-bottom: 150px;
}

.value-scale-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 150px;
    margin: 60px auto 0 auto;
}

/* Braccio della Bilancia (Stile Metallico) */
.scale-beam {
    position: absolute;
    bottom: 25px;
    left: 5%;
    width: 90%;
    height: 8px;
    /* Aumentato spessore */
    background: linear-gradient(180deg, #f0f0f0, #d5d5d5);
    /* Gradiente argento */
    border-radius: 4px;
    transform-origin: center;
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 1px #ffffff; */
    /* Effetto 3D */
    z-index: 1;
}

/* Animazione CORRETTA della bilancia */
.value-scale-container.is-rewritten .scale-beam {
    transform: rotate(-8deg);
    /* La rotazione positiva abbassa il piatto sinistro (Ritorno) */
}

/* Piatti della Bilancia */
.scale-pan {
    position: absolute;
    bottom: 6px;
    width: 35%;
    background-color: transparent;
    border-radius: 12px;
    padding: 10px;
    transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.left-pan {
    left: 0;
}

.right-pan {
    right: 0;
}

/* Stile per il testo nei piatti */
.pan-title {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #555;
    transition: all 1.5s ease;
}

/* Fulcro (Perno) della Bilancia */
.scale-fulcrum {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 44px;
    background: linear-gradient(0deg, rgb(234 234 234), rgb(198 198 198));
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
    border-radius: 3px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* EVIDENZIA IL PIATTO VINCENTE (RITORNO) */
.value-scale-container.is-rewritten .left-pan {
    border-color: #ffffff;
    /* Bordo colorato per evidenziare */
    /* box-shadow: 0 8px 31px rgb(189 189 189 / 20%); */
    /* Glow delicato */
}

.value-scale-container.is-rewritten .left-pan .pan-title {
    background: linear-gradient(90deg, #6a82fb, #a775e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    background: linear-gradient(349deg, #6a82fb, #fc5c7d, #fbd786);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ===== STILI SPECIFICI PER LA PAGINA AZIENDA ===== */
/* Stile per il link attivo nell'header */
.main-nav a.active-link {
    color: var(--brand-signature-blue);
}

.page-contatti .hero-section {
        text-align: center;
        min-height: fit-content;
        height: fit-content;
        padding-top: 60px;
        padding-bottom: 0;
        min-height: fit-content;
        margin: 60px 0;
}

.page-contatti h1 {
    font-size: clamp(22px, 4vw, 42px);
}

#pricing-page .page-hero {
    min-height: fit-content;
    height: fit-content;
    padding-top: 60px;
    padding-bottom: 0;
    min-height: 38vh;
}

#pricing-page .page-hero h1 {
    font-size: clamp(22px, 4vw, 42px);
}

/* Hero Section della Pagina */
.page-hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    opacity: 1;
    /* Deve essere visibile subito */
    transform: none;
    padding: 40px;
    overflow: hidden;
}

.page-title {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #666;
    font-weight: 400;
    padding: 20px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Indicatore di scroll per la hero section */
.scroll-down-indicator {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background-color: #ccc;
}

.scroll-down-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    animation: scroll-indicator-anim 2.5s ease-in-out infinite;
}

@keyframes scroll-indicator-anim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Sezione Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-member-card {
    background-color: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    height: -webkit-fill-available;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-color: #ccc;
}

.team-member-card h3 {
    font-size: clamp(16px, 2vw, 23px);
    margin-bottom: 5px;
    min-height: 90px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 15px;
}

.team-member-card .role {
    color: #666;
    margin-bottom: 20px;
    font-size: clamp(14px, 2vw, 16px);
    min-height: 50px;
}

.team-member-card a ico {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.team-member-card a:hover ico {
    opacity: 1;
}

/* CTA Finale della Pagina */
.final-page-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.final-page-cta .button {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.final-page-cta .button.secondary {
    background-color: var(--link-color);
    color: var(--primary-color);
}

/* ===== STILI AGGIUNTIVI PER PAGINA AZIENDA ===== */
/* Sezione Founder */
.founder-section .section-content {
    max-width: 1200px;
}

.founder-container {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.founder-image {
    flex-basis: 40%;
    flex-shrink: 0;
    display: none;
}

.founder-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 1.2;
}

.founder-bio {
    flex-basis: 60%;
}

.founder-bio .section-title {
    text-align: left;
    margin: 0 0 10px 0;
}

.founder-bio .role {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    color: #666;
    margin-bottom: 25px;
}

.founder-bio p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.logo-meaning {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.logo-meaning mc-ico {
    margin: 0;
    transform: scale(1);
}

.logo-meaning p {
    margin: 0;
    font-size: clamp(14px, 2vw, 16px);
    text-align: left;
}

/* Sezione Roadmap */
.roadmap-section-company {
    background-color: #f8f8f8;
}

.roadmap-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.roadmap-stage {
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--bg-color);
}

.roadmap-stage h4 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roadmap-stage h4 ico {
    width: 24px;
    height: 24px;
}

.roadmap-stage ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.roadmap-stage li {
    font-size: 16px;
    font-weight: 500;
    padding: 0 0 0 25px;
    position: relative;
    line-height: 1.4;
}

.roadmap-stage li::before {
    content: '';
    color: var(--brand-signature-blue);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

/* Sezione Team */
.team-member-card .member-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 auto 20px auto;
    overflow: hidden;
    display: none;
}

.team-member-card .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== STILE EVOLUTO PER ROADMAP AZIENDA ===== */
.roadmap-section-company {
    background-color: transparent;
    /* Sfondo pulito */
    padding-top: 120px;
    padding-bottom: 120px;
}

.roadmap-timeline-container {
    position: relative;
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding: 0 20px;
}

/* La linea verticale della timeline */
.roadmap-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 1px;
    background-color: #e0e0e0;
    transform: translate(20px, 0px);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    /* Spazio per il punto */
    margin-bottom: 50px;
    opacity: 0;
    /* Per animazione JS */
    transform: translateY(30px);
    /* Per animazione JS */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background-color: var(--bg-color);
    z-index: 10;
}

.timeline-dot ico {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Stili specifici per ogni fase */
.timeline-dot.is-present {
    border-color: var(--brand-signature-blue);
    background-color: var(--brand-signature-blue);
}

.timeline-dot.is-present ico {
    filter: invert(1);
    opacity: 1;
}

.timeline-dot.is-beyond {
    border-color: var(--bg-color);
    background: linear-gradient(45deg, #6a82fb, #fc5c7d, #fbd786);
    animation: pulse-final-node 2.5s ease-in-out infinite;
}

.timeline-dot.is-beyond ico {
    filter: invert(1);
    opacity: 1;
}

.timeline-content {
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 30px;
    text-align: left;
}

.timeline-content h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: #e0e0e0;
    color: #333;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.timeline-dot.is-future ~ .timeline-content .badge {
    background: var(--brand-signature-blue);
    color: white;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-content li {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
    white-space: normal;
}

.timeline-content li::before {
    content: '';
    color: var(--brand-signature-blue);
    position: absolute;
    left: 0;
    top: 13px;
    padding: 3px;
    background: var(--brand-signature-blue);
    border-radius: 50%;
}

/* ===== STILI PER PAGINA PIANI ===== */
.pricing-section {
    padding-top: 0;
}

.pricing-plans-container {
    display: flex;
    align-items: center;
    /* Allinea le card se hanno altezze diverse */
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.plan-card {
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 35px;
    width: 50%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card.is-popular {
    border-color: var(--brand-signature-blue);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 87, 255, 0.1);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-signature-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.plan-header h3 {
    font-size: clamp(20px, 3vw, 30px);
    margin-bottom: 10px;
    padding-top: 33px;
}

.plan-header p {
    font-size: clamp(14px, 2vw, 16px);
    color: #666;
    min-height: 48px;
    max-width: 80%;
    margin: 0 auto;
}

.plan-features {
    flex-grow: 1;
    /* Fa in modo che questa sezione occupi lo spazio disponibile */
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plan-features li {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    white-space: normal;
}

.plan-features li ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Definiamo l'icona check */
ico[check]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.plan-cta {
    margin-top: 40px;
}

.plan-cta .button {
    width: -webkit-fill-available;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.plan-cta .button:hover {
    color: var(--primary-color);
    background-color: var(--link-color)
}

.plan-card .button.secondary {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-color);
}

.plan-card .button.secondary:hover {
    color: var(--link-color);
    border-color: var(--brand-signature-blue);
}

/* Sezione Enterprise */
.enterprise-plan-section {
    background-color: #f8f8f8;
    min-height: auto;
    min-height: 40vh;
    padding: 100px 20px;
    max-width: 1130px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
}

/* Sezione Q&A */
.qa-section {
    min-height: auto;
    padding-bottom: 120px;
}

.qa-item {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.qa-item h4 {
    font-size: clamp(14px, 2vw, 23px);
    margin-bottom: 15px;
}

.qa-item p {
    font-size: clamp(14px, 2vw, 18px);
    color: #666;
    line-height: 1.7;
}

/* ===== STILI PER PAGINA TECNOLOGIE ===== */
/* ===== STILI PER PAGINA TECNOLOGIE ===== */
.hero-animation-placeholder {
    width: 100%;
    height: 200px;
    max-width: 200px;
    aspect-ratio: 16 / 9;
    margin: 40px auto 0 auto;
    background: radial-gradient(ellipse at center, rgb(224 224 224 / 50%) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 12px;
}

/* REVISIONE COMPLETA: Stili per il sottotitolo animato */
.animated-hero-subtitle {
    font-size: clamp(18px, 3.5vw, 60px);
    font-weight: 400;
    padding: 20px;
    padding-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    /* Altezza per evitare "salti" del layout */
    line-height: 1.5em;
    /* Assicura coerenza verticale */
}

.animated-hero-subtitle .static-phrase {
    margin: 0 0.5em;
    white-space: nowrap;
    /* Impedisce al testo statico di andare a capo */
    border-radius: 10px;
    font-family: var(--cursive);
    font-size: clamp(24px, 3.5vw, 70px);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #000000;
    paint-order: stroke fill;
}

.word-flipper-container {
    height: 1.5em;
    /* Altezza basata sulla dimensione del font */
}

.word-flipper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    height: 100%;
    /* width: 130px; Removed fixed width to allow JS to control */
}

/* Allineamento specifico per i due flipper */
#flipper-start {
    text-align: right;
}

#flipper-end {
    text-align: left;
}

.word-flipper span {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Per Safari */
    display: block;
    font-weight: 800;
}

/* Posizionamento delle parole sulle facce del "cubo" */
.word-flipper span:nth-child(1) {
    transform: rotateX(0deg) translateZ(0.75em);
}

.word-flipper span:nth-child(2) {
    transform: rotateX(90deg) translateZ(0.75em);
}

.word-flipper span:nth-child(3) {
    transform: rotateX(180deg) translateZ(0.75em);
}

.word-flipper span:nth-child(4) {
    transform: rotateX(270deg) translateZ(0.75em);
}

/* Quarta faccia per il loop */
.pillars-section {
    padding-bottom: 120px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pillar-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pillar-header ico {
    width: 20px;
    height: 20px;
}

.pillar-header h4 {
    font-size: clamp(14px, 2vw, 16px);
}

.pillar-summary {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-color);
    min-height: 125px;
    /* Assicura altezze uniformi */
}

.pillar-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

.pillar-card.is-open .pillar-details {
    max-height: 500px;
    /* Valore abbondante per contenere il testo */
    margin-top: 20px;
}

.pillar-details ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pillar-details li {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    position: relative;
    padding-left: 20px;
    white-space: normal;
    line-height: 1.4;
}

.pillar-details li::before {
    position: absolute;
    left: 0;
    color: var(--brand-signature-blue);
}

.pillar-toggle {
    background: none;
    border: none;
    color: var(--brand-signature-blue);
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    padding: 0;
    font-size: clamp(14px, 2vw, 16px);
}

/* Sezione Integrazioni */
.integrations-section {
    min-height: 40vh;
    padding: 100px 20px;
    max-width: 1130px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.integration-logo {
    height: 90px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.8;
}

.integration-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-color: #ccc;
}

.integration-logo.is-coming-soon {
    opacity: 0.6;
    filter: grayscale(1);
}

/* ===== STILI PER DETTAGLI TECNOLOGICI ===== */
.tech-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.tech-detail-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
}

.tech-detail-card h5 {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    margin-bottom: 10px;
}

.tech-detail-card p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #333;
}

.tech-detail-card p b {
    font-weight: 600;
    color: #000;
}

/* ===== STILI PER SEZIONE INTEGRAZIONI AGGIORNATA ===== */
.integrations-grid-updated {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.integration-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.integration-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-color: #ccc;
}

.integration-item ico {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.integration-item h4 {
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 10px;
}

.integration-item p {
    font-size: clamp(14px, 2vw, 16px);
    color: #666;
    line-height: 1.5;
}

ico[gears]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
}

ico[mail]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ===== STILI PER LA PAGINA RISORSE (BLOG) ===== */
/* Stile generale e Hero Section */
.page-content {
    /* padding: 80px 0; */
    /* Spazio sopra e sotto */
}

.page-content .page-hero {
    min-height: fit-content;
    height: fit-content;
    padding-top: 80px;
    padding-bottom: 40px;
    /* min-height: 38vh; */
}

.page-content .page-hero h1 {
    line-height: 1.2;
    margin-bottom: 10px;
}

.page-content .page-hero h1.resource-title {
    font-family:var(--cursive);
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #c7c7c700;
    paint-order: stroke fill;
    font-size: clamp(60px, 10vw, 120px);
}

.page-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 20px;
}

.page-title .category {
    font-size: 20px;
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: #666;
    line-height: 1.6;
}

/* Layout principale del blog */
.blog-layout {
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stile base delle card-articolo */
.featured-post .article-card {
    display: block;
    text-decoration: none;
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
}

.article-card__image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    max-height: 40vh;
}

.article-card__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 6px;
    cursor: pointer;
}

.article-card:hover .article-card__image-container img {
    transform: scale(1.05);
}

.article-card__content {
    padding: 25px;
    text-decoration: unset;
    cursor: pointer;
}

.article-card__category {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    cursor: pointer;
}

.article-card__title {
    font-size: clamp(16px, 2.5vw, 18px);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
    cursor: pointer;
}

.article-card__excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Stile per l'articolo in evidenza */
.featured-post {
    margin-bottom: 40px;
    min-height: fit-content;
}

.featured-post .article-card__title {
    font-size: clamp(20px, 2.5vw, 33px);
    font-weight: 600;
    line-height: unset;
    cursor: pointer;
}

/* Griglia per gli altri articoli */
.blog-layout .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    min-height: fit-content;
    padding-bottom: 60px;
}

.articles-grid .article-card {
    width: fit-content;
    height: 100%;
    text-decoration: unset;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--border-color-1);
    /* background-blend-mode: darken; */
    image-rendering: -webkit-optimize-contrast;
    background-position: center;
}

.articles-grid .article-card ico {
    /* position:absolute; */
    /* top:0; */
    /* right:0; */
    /* transform: translate(0%, -10pc); */
}

.cta-card__content {
    display: block;
    position: relative;
}

/* Stile per la CTA card integrata */
.cta-card {
    background-color: var(--text-color);
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.cta-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.cta-card__content ico {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.cta-card__content ico[sami] {
    filter: invert(1);
    -webkit-filter: invert(1);
    opacity: 1;
}

.cta-card__title {
    color: var(--bg-color);
    font-size: 22px;
    margin-bottom: 25px;
    text-shadow: 0px 1px 25px #000;
}

.cta-card__button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-size: 16px;
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    display: inline-block;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
}

/* Icona di Sami bianca per la CTA card */
ico[sami-white]::after {
    /* Copia la definizione di ico[sami]::after e aggiungi/modifica questa riga: */
    filter: invert(0) brightness(100);
    /* Inverti il filtro per renderla bianca */
    -webkit-filter: invert(0) brightness(100);
}

/* Responsive per la pagina Piani */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    heading-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    mc-ico {
        /* Adjust logo size for mobile */
        margin-left: 0;
    }

    .enterprise-plan-section {
        margin: 20px;
        width: -webkit-fill-available;
    }

    .team-member-card .member-image {
        width: 50px;
        height: 50px;
    }

    .team-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .team-member-card h3 {
        min-height: fit-content;
    }

    .precious-metal-gradient {
        -webkit-text-stroke-width: 2.5px;
    }

    .final-cta {
        margin: 20px;
        width: -webkit-fill-available;
    }

    .benefici-grid {
        grid-template-columns: 1fr;
        /* Una colonna su mobile */
    }

    .confronto, .case-study-card {
        flex-direction: column;
    }

    /* Cambia la direzione del contenitore principale in verticale */
    .soul-container {
        flex-direction: column;
        gap: 50px;
        /* Aumenta lo spazio verticale tra testo e animazione */
    }

    .section-title.left-aligned, .section-description.left-aligned {
        max-width: 90%;
        margin: 0 auto 20px auto;
        /* Centra il blocco di testo */
    }

    .section-description.left-aligned {
        margin-bottom: 0;
        /* Rimuove il margine inferiore dalla descrizione */
    }

    /* Modifica il contenitore dell'animazione per il layout verticale */
    .text-slider-container {
        width: 100%;
        /* Occupa l'intera larghezza */
        border-left: none;
        /* Rimuove il bordo laterale */
        padding-left: 0;
        /* Rimuove il padding laterale */
        /* Crea un separatore superiore al posto di quello laterale */
        border-top: 1px solid #e8e8e8;
        padding-top: 40px;
        margin-top: 40px;
        /* Aggiunge spazio tra la descrizione e il separatore */
        justify-content: center;
        /* Centra l'animazione */
    }

    /* Assicura che il testo dell'animazione sia centrato su mobile */
    .text-slider p {
        text-align: center;
    }

    .tech-details-grid, .integrations-grid-updated {
        grid-template-columns: 1fr;
        /* Una colonna su mobile */
    }

    .integrations-section {
        margin: 20px;
        width: -webkit-fill-available;
    }

    .pricing-plans-container {
        flex-direction: column;
        align-items: stretch;
    }

    .plan-card {
        width: 100%;
        max-width: 450px;
        padding: 10px;
        margin-bottom: 33px;
    }

    .plan-card.is-popular {
        transform: scale(1);
        /* Rimuove l'ingrandimento su mobile */
    }
}

/* Responsiveness per la roadmap */
@media screen and (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-summary {
        min-height: auto;
        /* Rimuove l'altezza minima su mobile */
    }

    .founder-container {
        flex-direction: column;
        text-align: center;
    }

    .founder-bio .section-title, .founder-bio .role {
        text-align: center;
    }

    .roadmap-stages {
        grid-template-columns: 1fr;
    }

    .chip-container {
        margin-bottom: 60px;
    }

    /* Modifica il layout interno di ogni card tecnologica */
    .tech-card-content {
        display: grid;
        /* Usa grid per un allineamento preciso */
        grid-template-columns: auto 1fr;
        /* Colonna per l'icona (automatica), il resto per il testo */
        grid-template-rows: auto auto;
        /* Due righe per titolo e paragrafo */
        grid-template-areas: "icon title" "icon description";
        /* Assegna le aree */
        align-items: center;
        /* Centra verticalmente il contenuto */
        column-gap: 25px;
        /* Spazio tra icona e testo */
        padding: 25px;
        text-align: left;
        /* Allinea tutto il testo a sinistra di default */
    }

    /* Posiziona l'icona nell'area 'icon' della griglia */
    .tech-card .card-icon {
        grid-area: icon;
        margin: 0;
        /* Resetta i margini per l'allineamento a griglia */
        width: 28px;
        /* Leggera riduzione per mobile */
        height: 28px;
    }

    /* Posiziona il titolo nell'area 'title' e resetta gli stili */
    .tech-card h4 {
        grid-area: title;
        text-align: left;
        margin: 0;
        align-self: end;
        /* Allinea alla parte bassa della sua cella */
        margin-bottom: 10px;
    }

    /* Posiziona la descrizione nell'area 'description' e resetta gli stili */
    .tech-card p {
        grid-area: description;
        text-align: left;
        margin: 0;
        align-self: start;
        /* Allinea alla parte alta della sua cella */
    }

    .pan-title {
        font-size: 14px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-container {
        flex-direction: column;
        align-items: flex-start;
        /* Allinea a sinistra */
        margin-top: 40px;
    }

    /* Stili per la sezione di ricerca e filtro */
    .search-and-filter {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 0 20px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .search-bar {
        display: flex;
        width: 100%;
        border: 1px solid var(--color-gray-300);
        border-radius: 8px;
        overflow: hidden;
    }

    .search-bar input {
        flex-grow: 1;
        padding: 12px 15px;
        border: none;
        outline: none;
        font-size: 1rem;
        color: var(--color-text-primary);
    }

    .search-bar input::placeholder {
        color: var(--color-gray-500);
    }

    .search-bar button {
        background-color: var(--color-primary);
        color: white;
        border: none;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

    .search-bar button:hover {
        background-color: var(--color-primary-dark);
    }

    .category-button {
        background-color: var(--color-secondary);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        transition: background-color 0.3s ease;
        align-self: flex-start;
        /* Allinea il pulsante a sinistra */
    }

    .category-button:hover {
        background-color: var(--color-secondary-dark);
    }

    .timeline-line {
        left: 30px;
        /* Posiziona la linea verticalmente */
        top: 5%;
        width: 2px;
        height: 90%;
    }

    .roadmap-node {
        flex-direction: row;
        /* Layout orizzontale per ogni nodo */
        width: 100%;
        align-items: center;
        margin-bottom: 40px;
        /* Spazio tra i nodi verticali */
    }

    .roadmap-node:last-child {
        margin-bottom: 0;
    }

    .node-content {
        text-align: left;
        margin-top: 0;
        margin-left: 30px;
        opacity: 1;
        /* Sempre visibile su mobile */
        transform: none;
    }

    .node-description {
        min-height: fit-content;
    }
}

@media (min-width: 768px) {
    .search-and-filter {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .search-bar {
        width: 70%;
    }

    .category-button {
        align-self: center;
        /* Centra il pulsante verticalmente */
    }
}

.blog-controls {
    max-width: 1130px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

/* Stile del contenitore della ricerca */
.search-container {
    position: relative;
    flex-grow: 1;
    /* Occupa lo spazio disponibile */
    max-width: 400px;
    width: 100%;
}

#blog-search {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 20px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    /* Perfettamente arrotondato */
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    /* Rimuove stili nativi */
}

#blog-search:focus {
    outline: none;
    border-color: var(--brand-signature-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.search-container button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container ico {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-container button:hover ico {
    opacity: 1;
}

/* Stili per i risultati di ricerca */
.search-results-count {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 0;
    border-left: 1px solid var(--brand-signature-blue);
}

.search-results-count p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-clear-search {
    background: var(--brand-signature-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: solid 1px;
}

.btn-clear-search:hover {
    background: var(--bg-color);
    color: var(--link-color);
    border-color: var(--link-color);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.no-results p {
    margin: 0 0 20px 0;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--error-color, #e74c3c);
    background-color: var(--error-bg, #fdf2f2);
    border-radius: 8px;
    border: 1px solid var(--error-border, #f5c6cb);
}

/* Stile del filtro categorie */
.category-filter-container {
    position: relative;
    width: fit-content;
    margin: 0;
    right: 0;
    width: 100%;
    text-align: right;
}

.category-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    right: 0;
    display: block;
    position: relative;
    float: right;
}

.category-filter-toggle:hover, .category-filter-toggle.is-active {
    border-color: var(--text-color);
    background-color: #f8f8f8;
}

.category-filter-toggle ico {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.category-filter-toggle.is-active ico {
    transform: rotate(180deg);
}

.category-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Per l'animazione */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-link, .category-dropdown__link {
    display: block;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-link:hover {
    background-color: #f0f0f0;
}

.category-link:last-child {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-weight: 700;
}

/* Stili per il messaggio di nessun risultato nella ricerca */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-light);
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results-message p {
    margin: 0;
    font-weight: 500;
}

/* Definizioni per le NUOVE icone (da aggiungere) */
ico[search]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

ico[chevron-down]::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    position: relative;
}

.language-selector-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Language selector button */
.language-selector button, .language-selector-mobile button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-selector button:hover, .language-selector-mobile button:hover {
}

.language-selector button ico {
    margin: 0;
    width: 15px;
    height: 15px;
}

.language-selector button ico[arrow] {
    background-image: url('./ico/arrow.svg')
}

/* Language dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text, #1f1f1f);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

.language-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile language dropdown positioning */
.language-selector-mobile .language-dropdown {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.language-selector-mobile .language-dropdown.active {
    transform: translateX(-50%) translateY(0);
}

/* Active page styles */
heading-container ul.desktop-menu li a.active, heading-container ul.mobile-menu li a.active {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

/* Responsive per i controlli del blog */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
        /* Allinea gli elementi per occupare tutta la larghezza */
    }

    .search-container {
        max-width: none;
        /* Rimuove la larghezza massima su mobile */
        width: 100%;
    }
}

/* ===== AGGIUNGI QUESTI STILI A style.css ===== */
/* Stile base per la pagina articolo */
.article-page .page-content {
    padding-top: 60px;
}

/* Stile per l'header dell'articolo (titolo, meta) */
.article-header {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

.breadcrumbs {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--brand-signature-blue);
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Layout a due colonne */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    /* Default a colonna singola per mobile */
    gap: 60px;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

@media (min-width: 992px) {
    .article-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* Stile del contenuto principale dell'articolo */
.article-content {
    max-width: 100%;
    overflow: hidden;
}

.article-content section {
    min-height: fit-content;
    display: unset;
    align-items: unset;
}
.article-content section img{
    object-fit:contain;
    width: -webkit-fill-available;
}
.article-content section h3,.article-content section h4, .article-content section h5, .article-content section h6{
    margin: 25px 0 10px 0;
}
.featured-image {
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 40px 0 20px 0;
}

.article-content p, .article-content li {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

.article-content blockquote {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--brand-signature-blue);
    font-size: clamp(18px, 1.5vw, 22px);
    font-style: italic;
    color: #000;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    display: inline;
}

.article-content li {
    padding-left: 25px;
    position: relative;
    white-space: normal;
    margin-bottom: 0;
}

.article-content li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--brand-signature-blue);
    font-weight: 700;
    padding: 4px;
    background-color: var(--link-color);
    border-radius: 50%;
    transform: translate(0px, 8px)
}

/* Stile per la Call to Action interna */
.inline-cta {
    background-color: var(--primary-bg);
    color: var(--bg-color);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* background-blend-mode: darken; */
    image-rendering: -webkit-optimize-contrast;
    background-position: center;
}

.inline-cta-content ico {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
    filter: invert(1);
}

.inline-cta-content h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0px 1px 25px #000;
}

.inline-cta-content p {
    color: rgb(255 255 255);
    max-width: 500px;
    margin: 0 auto 25px auto;
    font-size: 16px;
    text-shadow: 0px 1px 25px #000;
}

.inline-cta .button {
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    display: inline-block;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
}

/* Stile della Sidebar */
.article-sidebar {
    position: sticky;
    /* Rende la sidebar "appiccicosa" durante lo scroll */
    top: 100px;
    /* Distanza dall'alto quando si fissa */
    align-self: start;
    /* Allinea all'inizio della griglia */
}

.sidebar-widget {
    margin-bottom: 40px;
    border-radius: 8px;
    padding: 20px;
    background-color: var(--bg-color-3);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a, .share-links button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background-color: white;
    transition: all 0.2s ease;
}

.share-links ico {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.share-links a:hover, .share-links button:hover {
    border-color: var(--brand-signature-blue);
    background-color: var(--brand-signature-blue);
}

.share-links a:hover ico, .share-links button:hover ico {
    filter: invert(1);
    opacity: 1;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article {
    text-decoration: none;
    display: block;
}

.related-article h5 {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.related-article span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.related-article:hover h5 {
    color: var(--brand-signature-blue);
}

/* Stile per la CTA finale */
.article-end-cta {
    min-height: auto;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.article-end-cta h3 {
    font-size: 28px;
}

.article-end-cta p {
    max-width: 600px;
    margin: 15px auto 30px auto;
    color: #666;
}

.article-end-cta .button {
    background-color: var(--link-color);
    color: white;
    border-color: var(--link-color);
    background: linear-gradient(90deg, #6a82fb, #fc5c7d, #fbd786);
    border: navajowhite;
}

.article-end-cta .button:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.article-end-cta ico {
    filter: invert(1);
}

/* Icona LINK per il pulsante copia */
ico[link]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.72'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.72-1.72'%3E%3C/path%3E%3C/svg%3E");
}

/* Contenitore per il testo legale */
.legal-content {
    max-width: 800px;
    /* Larghezza ottimale per la lettura */
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    /* Allinea il testo a sinistra */
}

/* Stile per il disclaimer legale */
.legal-disclaimer {
    background-color: #fffbe6;
    /* Giallo pallido */
    border: 1px solid #ffe58f;
    /* Bordo giallo */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 40px 0;
    font-size: 15px;
    line-height: 1.6;
}

.legal-disclaimer strong {
    color: #d46b08;
    /* Arancione scuro per l'intestazione */
    display: block;
    margin-bottom: 5px;
}

/* Stili per gli elementi di testo nella pagina legale */
.legal-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.legal-content h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p, .legal-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: none;
    /* Rimuoviamo i pallini di default */
    padding-left: 0;
    display: flex;
    flex-direction: column;
}

.legal-content ul li {
    padding-left: 20px;
    position: relative;
    white-space: normal;
    text-overflow: unset;
}

/* Aggiungiamo un marker personalizzato per le liste */
.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--brand-signature-blue);
    font-weight: 700;
    padding: 4px;
    background-color: var(--link-color);
    border-radius: 50%;
    transform: translate(0px, 8px);
}

.legal-content a {
    color: var(--brand-signature-blue);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-methods-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    padding-top: 0;
    display: flex;
    justify-content: flex-start;
    min-height: fit-content;
}
.contact-methods-section .container{
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
}
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 0;
}

.contact-method {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--bg-color-2);
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-signature-blue);
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-signature-blue);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1);
}

.contact-method h3 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--text-color);
}

.contact-method p {
    margin-bottom: 20px;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-color);
    opacity: 0.8;
    min-height: 42px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--brand-signature-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: clamp(14px, 2vw, 16px);
}

.contact-btn:hover {
    background-color: #0041cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

.contact-form-section {
    padding: 0;
    /* background-color: #f8f9fa; */
    min-height: fit-content;
    margin-bottom: 60px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(0deg, rgb(250 250 250), rgb(255 255 255));
    border: 1px solid #e0e0e0;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.form-header p {
    color: #666;
    font-size: clamp(18px, 2.5vw, 24px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: clamp(14px, 2vw, 18px);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid var(--border-color-1);
    border-radius: 16px;
    font-size: clamp(16px, 2vw, 20px);
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-signature-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--brand-signature-blue);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  font-size: clamp(14px, 2vw, 16px);
}
.submit-btn[disabled]{
  filter:grayscale(1);
}
.submit-btn:hover {
    background-color: #0041cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

.form-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-method {
        /* flex-direction: column; */
        text-align: center;
        gap: 15px;
        /* padding: 25px; */
    }
    
    .contact-content {
    text-align: left;
    }
    
    .contact-icon {
        /* align-self: center; */
    }
    
    .form-container {
        padding: 40px 30px;
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .contact-methods-section,
    .contact-form-section {
        padding: 30px;
        padding-top: 0;
        margin-bottom: 30px;
    }
}

/* ===== GDPR COOKIE POPUP STYLES ===== */
.gdpr-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-width: 480px;
    max-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gdpr-popup.show {
    transform: translateY(0);
}

.gdpr-popup-content {
    padding: 20px 20px 0 20px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.gdpr-popup-content::-webkit-scrollbar {
    width: 6px;
}

.gdpr-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gdpr-popup-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gdpr-popup-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.gdpr-popup h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.gdpr-popup p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

.cookie-preferences {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cookie-option {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #f9f9f9;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 6px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--brand-signature-blue);
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.cookie-description {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.gdpr-popup-buttons {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.gdpr-popup-buttons .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    flex: 1;
    text-align: center;
    min-width: 80px;
}

.gdpr-popup-buttons .btn.primary {
    background: var(--brand-signature-blue);
    color: white;
    border-color: var(--brand-signature-blue);
}

.gdpr-popup-buttons .btn.primary:hover {
    background: #0041cc;
    border-color: #0041cc;
}

.gdpr-popup-buttons .btn:not(.primary):not(.secondary) {
    background: #f8f9fa;
    color: var(--text-color);
    border-color: #e0e0e0;
}

.gdpr-popup-buttons .btn:not(.primary):not(.secondary):hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.gdpr-popup-buttons .btn.secondary {
    background: transparent;
    color: #666;
    border-color: #ccc;
}

.gdpr-popup-buttons .btn.secondary:hover {
    background: #f8f9fa;
    color: var(--text-color);
}

.gdpr-popup-footer {
    text-align: center;
    padding: 10px 20px 15px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e0e0e0;
}

.gdpr-popup-footer a {
    color: var(--brand-signature-blue);
    text-decoration: none;
    font-size: 11px;
    margin: 0 8px;
}

.gdpr-popup-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gdpr-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .gdpr-popup-content {
        padding: 15px;
        max-height: 50vh;
        padding-bottom: 0;
    }
    
    .gdpr-popup-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gdpr-popup-buttons .btn {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .gdpr-popup h3 {
        font-size: 16px;
    }
    
    .gdpr-popup p {
        font-size: 13px;
    }
}
