@charset "utf-8";

/* Mobile */
@media only screen and (min-width: 0px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    header h1 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2.4em;
        color: #273a62;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
        animation: fadeInDown 1s ease-out;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }

    header h1::after {
        content: '';
        position: absolute;
        width: 50%;
        height: 1px;
        background: #f1c40f;
        bottom: 0;
        left: 25%;
        border-radius: 2px;
    }

    .section-prodotto {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        margin-bottom: 60px;
        animation: fadeIn 1.2s ease-in;
    }
    .section-prodotto a {
        text-decoration: underline;
    }

    .section-prodotto h3 {
        color: #273a62;
    }

    .section-prodotto p,
    .section-prodotto ul {
        color: #444;
    }

    .descrizione-prodotto p {
        margin-bottom: 20px;
        line-height: 1.6;
        text-align: justify;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .descrizione-prodotto h3 {
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 1.4em;
    }

    .descrizione-prodotto ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .descrizione-prodotto li {
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
        gap: 15px;
        transition: transform 0.3s ease;
    }

    .descrizione-prodotto li:hover {
        transform: translateX(5px);
    }

    .section-prodotto .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        margin-right: 10px;
        color: #273a62;
        flex-shrink: 0;
        transition: color 0.3s ease;
    }

    .descrizione-prodotto li:hover .material-symbols-outlined {
        color: #e67e22;
    }

    .caratteristica {
        display: flex;
        flex-direction: column;
    }

    .titolo-caratteristica {
        font-weight: bold;
        font-size: 1.1em;
        margin-bottom: 5px;
    }

    .descrizione-caratteristica {
        font-size: 0.95em;
    }

    .immagine-prodotto img {
        width: 100%;
        max-width: 500px;
    }

    /* Animazioni */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Animazione entrata */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Avvertenza software */

    .avvertenza-software {
        display: flex;
        align-items: center;
        gap: 12px;
        border-left: 5px solid #0078d4;
        padding: 16px 20px;
        margin: 0 auto 100px auto;
        font-size: 1.08em;
        color: #222;
        box-shadow: 0 2px 8px 0 #0001;
        width: 90%;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .avvertenza-software.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .avvertenza-software .logo-windows {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        display: inline-block;
    }


    /* Versioni */

    .coppia {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .colonna {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .colonna.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .colonna.immagine img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }
    
    .colonna.testo {
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        color: #273a62;
        box-sizing: border-box;
        padding: 40px;
    }

    .separatore-grafico {
        border: none;
        border-top: 2px solid #e0e0e0;
        margin: 40px 0;
        width: 100%;
    }


    /* Hardware */

    .hardware {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    }
    .hardware.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .titolo-sezione-hardware {
        text-align: center;
        font-size: 2em;
        margin-top: 48px;
        margin-bottom: 12px;
        color: #273a62;
    }
    .descrizione-sezione-hardware {
        text-align: center;
        font-size: 1.15em;
        margin-bottom: 32px;
        color: #444;
    }

    .hardware-contenitori {
        display: flex;
        gap: 32px;
        justify-content: center;
        flex-wrap: wrap;
        margin: 40px 0;
    }
    .hardware-contenitore {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        padding: 32px 20px;
        text-align: center;
        max-width: 445px;
        flex: 1 1 320px;
    }
    .hardware-contenitore.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .hardware-contenitore:nth-child(2) {
        transition-delay: 0.2s;
    }
    .hardware-contenitore:nth-child(3) {
        transition-delay: 0.3s;
    }
    .hardware-contenitore:nth-child(4) {
        transition-delay: 0.4s;
    }

    .hardware-contenitore img {
        max-width: 90vw;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .hardware-contenitore h4 {
        margin: 16px 0 10px 0;
        font-size: 1.25em;
    }
    .hardware-contenitore p {
        font-size: 1.05em;
        color: #444;
    }

    /* Funzionamento */
    .banner-funzionamento {
        background: #2f2f2f;
        color: #fff;
        text-align: center;
        padding: 20px 10px 20px 10px;
        margin: 48px auto 48px auto;
        max-width: 100%;
        box-shadow: 0 4px 24px rgba(39, 58, 98, 0.08);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .banner-funzionamento a:hover {
        color: white;
    }
    .banner-funzionamento.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .banner-funzionamento h2 {
        font-size: 2em;
        margin-bottom: 12px;
    }
    .banner-funzionamento p {
        font-size: 1.15em;
        margin-bottom: 24px;
    }
    .btn-banner-funzionamento {
        display: inline-block;
        background-color: #4d8b7b;
        color: white;
        font-size: 18px;
        padding: 15px 30px;
        border-radius: 6px; 
        text-decoration: none;
        text-transform: uppercase;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }
    .btn-banner-funzionamento:hover {
        background-color: #3c6a5d;
        transform: translateY(-5px);
    }
    .btn-banner-funzionamento:focus {
        outline: none;
    }


}

/* Desktop */
@media only screen and (min-width: 769px) {
    .section-prodotto {
        flex-direction: row;
        justify-content: space-between;
    }

    .descrizione-prodotto,
    .immagine-prodotto {
        flex: 1 1 50%;
        margin-bottom: auto;
    }

    .descrizione-prodotto {
        padding-right: 40px;
    }

    .immagine-prodotto {
        animation: slideIn 1s ease;
    }

    .descrizione-prodotto h2 {
        font-size: 2.2em;
    }

    /* Avvertenza software */

    .avvertenza-software {
        width: 60%;
    }

    /* Versioni */

    .coppia {
        flex-direction: row;
        height: 400px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .invertita {
        flex-direction: row-reverse;
    }

    .colonna {
        width: 50%;
        height: 100%;
    }

    .colonna.testo, .colonna.immagine {
        width: 50%;
    }

    .hardware-contenitore img {
        max-width: 380px;
    }

    .banner-funzionamento {

        border-radius: 18px;
        max-width: 665px;
        
    }
}