h1{
    color: red;
}

h2{
    color: green;
}


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

        body {
            font-family: Arial, sans-serif;
            background-color: #f2f4f7;
            padding: 50px;
        }


        /* =========================
           CONTENITORE MENU
        ========================= */

        .menu {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;

            display: flex;
            gap: 10px;
            align-items: flex-start;
        }


        /* =========================
           SINGOLA SEZIONE
        ========================= */

        .menu details {
            flex: 1;
            position: relative;
        }


        /* =========================
           PULSANTE / RETTANGOLO
        ========================= */

        .menu summary {
            height: 65px;

            display: flex;
            align-items: center;
            justify-content: center;

            padding: 15px;

            color: white;
            font-size: 17px;
            font-weight: bold;

            border: 2px solid transparent;
            border-radius: 8px;

            cursor: pointer;
            list-style: none;

            transition:
                background-color 0.3s ease,
                border-color 0.3s ease,
                transform 0.2s ease;
        }

        /* Rimuove la freccia predefinita */
        .menu summary::-webkit-details-marker {
            display: none;
        }


        /* =========================
           FRECCIA
        ========================= */

        .menu summary::after {
            content: "▼";
            font-size: 11px;
            margin-left: 10px;

            transition: transform 0.3s ease;
        }

        .menu details[open] summary::after {
            transform: rotate(180deg);
        }


        /* =========================
           COLORI RETTANGOLI
        ========================= */

        .sezione1 summary {
            background-color: #3498db;
            border-color: #2980b9;
        }

        .sezione2 summary {
            background-color: #9b59b6;
            border-color: #8e44ad;
        }

        .sezione3 summary {
            background-color: #e67e22;
            border-color: #d35400;
        }

        .sezione4 summary {
            background-color: #2ecc71;
            border-color: #27ae60;
        }


        /* =========================
           HOVER
        ========================= */

        .sezione1 summary:hover {
            background-color: #217dbb;
            transform: translateY(-3px);
        }

        .sezione2 summary:hover {
            background-color: #7d3c98;
            transform: translateY(-3px);
        }

        .sezione3 summary:hover {
            background-color: #c65d0b;
            transform: translateY(-3px);
        }

        .sezione4 summary:hover {
            background-color: #219150;
            transform: translateY(-3px);
        }


        /* =========================
           CONTENUTO A TENDINA
        ========================= */

        .contenuto {
            position: absolute;

            top: calc(100% + 8px);
            left: 0;

            width: 100%;

            background: white;

            padding: 20px;

            border: 2px solid #ddd;
            border-radius: 8px;

            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

            z-index: 10;

            line-height: 1.6;
        }


        /* =========================
           TESTO
        ========================= */

        .contenuto p {
            margin-bottom: 10px;
        }

        .contenuto p:last-child {
            margin-bottom: 0;
        }


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

        .contenuto a {
            color: #3498db;
            text-decoration: none;
        }

        .contenuto a:hover {
            text-decoration: underline;
        }


        /* =========================
           VERSIONE MOBILE
        ========================= */

        @media (max-width: 700px) {

            .menu {
                flex-direction: column;
            }

            .menu details {
                width: 100%;
            }

            .contenuto {
                position: relative;
                top: 0;
                margin-top: 8px;
            }
        }