/* Setup generale per lo sfondo */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #4a90e2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 0;
    color: white;
}

/* 1. LINK ANIMATO (Sottolineatura) */
.link-animato {
    text-decoration: none;
    color: #fff;
    position: relative;
    font-weight: bold;
    font-size: 1.2rem;
}

.link-animato::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00d4ff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.link-animato:hover::after {
    transform: scaleX(1);
}

/* 2. BADGE DI NOTIFICA (con attr()) */
.bottone-notifica {
    position: relative;
    padding: 12px 25px;
    background-color: #ffffff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.bottone-notifica:hover {
    background-color: #e0e0e0;
}

.bottone-notifica::after {
    /* Legge il numero dall'attributo data-count dell'HTML */
    content: attr(data-count);
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: #ff4757;
    color: white;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #1e1e2f;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 3. CARD GLASSMORPHISM & CORNICE ARTISTICA */
.card-vetro {
    position: relative;
    width: 320px;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    overflow: visible; /* Per far vedere gli angoli fuori bordo */
    z-index: 1;
}

/* Effetto Vetro */
.card-vetro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
}

/* Angolo Cornice Superiore (Pseudo-elemento della card) */
.card-vetro::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-top: 4px solid #ffd700;
    border-left: 4px solid #ffd700;
    pointer-events: none;
}

/* Angolo Cornice Inferiore (Aggiunto tramite uno span interno o altro selettore) */
.cornice-bottom::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-bottom: 4px solid #ffd700;
    border-right: 4px solid #ffd700;
    pointer-events: none;
}

h2 { margin-top: 0; }
p { line-height: 1.6; opacity: 0.9; }
/*
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}
*/
section { margin-bottom: 60px; }

/* 1. TITOLO CON LINEE LATERALI */
.titolo-editoriale {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c3e50;
}

.titolo-editoriale::before,
.titolo-editoriale::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #3498db;
}

/* 2. TOOLTIP (Suggerimento a comparsa) */
.info-point {
    position: relative;
    display: inline-block;
    background: #3498db;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

/* Il fumetto */
.info-point::before {
    content: "Sapevi che gli pseudo-elementi non appaiono nel DOM?";
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* La freccetta del fumetto */
.info-point::after {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-point:hover::before,
.info-point:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 160%; /* Effetto leggero salto verso l'alto */
}

/* 3. LISTA CON ::MARKER PERSONALIZZATO */
.lista-check {
    list-style-type: none;
    padding: 0;
}

.lista-check li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.lista-check li::marker {
    content: "✔️";
    color: #27ae60;
    font-size: 1.2rem;
}

/* Se vuoi usare il pallino standard ma colorato */
.lista-punti li::marker {
    color: #e74c3c;
    font-size: 1.5rem;
}

/* 4. BLOCKQUOTE CON VIRGOLETTE GIGANTI */
.citazione {
    position: relative;
    padding: 30px 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    font-style: italic;
}

.citazione::before {
    content: "\201C"; /* Virgoletta aperta */
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 80px;
    color: #bdc3c7;
    font-family: serif;
    line-height: 1;
}
