/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at 50% 0%, rgba(78, 115, 223, 0.12), transparent 35%),
        linear-gradient(180deg, #0b0b0f 0%, #101014 50%, #0b0b0f 100%);

    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root{
    --primary-color: #edf2fc;
    --secondary-color: #212121;
}
.dark-theme{
    --primary-color: #000106;
    --secondary-color: #fff;
}
.dm-serif-text{
    font-family: 'DM Serif Text', serif;
}

#icon{
    width: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#icon:hover {
    transform: scale(1.1);
}

#icon2{
    width: 30px;
    cursor: pointer;
}

nav ul{
    flex: 1;
    text-align: right;
}

.hero{
    min-height: 100vh;
    width: 100%;
    position: relative;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

nav{
    width: 84%;
    margin: auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nome {
    margin: 0 15px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.logo{
    width: 100px;
    cursor: pointer;
    border-radius: 50%
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

nav ul li a:hover{
    color: #ff0000
}


/* =========================
   VOTE SECTION
========================= */

.vote-container {
    width: min(1000px, calc(100% - 40px));

    margin: 80px auto 60px;

    padding: 55px 40px;

    text-align: center;

    background: rgba(26, 26, 29, 0.75);

    border: 1px solid rgba(78, 115, 223, 0.18);

    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(78, 115, 223, 0.06);

    backdrop-filter: blur(12px);

    position: relative;
    overflow: hidden;
}


/* Glow superiore */

.vote-container::before {
    content: '';

    position: absolute;

    top: -100px;
    left: 50%;

    transform: translateX(-50%);

    width: 400px;
    height: 200px;

    background: rgba(78, 115, 223, 0.18);

    filter: blur(80px);

    pointer-events: none;
}


/* Linea luminosa superiore */

.vote-container::after {
    content: '';

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 180px;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #4e73df,
        #8b5cf6,
        #4e73df,
        transparent
    );

    box-shadow: 0 0 15px rgba(78, 115, 223, 0.8);
}


/* =========================
   TITLE
========================= */

.vote-container h1 {
    position: relative;

    margin: 0 0 15px;

    font-size: clamp(30px, 5vw, 48px);

    font-weight: 700;

    letter-spacing: -1px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #8fa8ff,
        #ffffff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;

    text-shadow: 0 0 30px rgba(78, 115, 223, 0.15);
}


/* =========================
   DESCRIPTION
========================= */

.vote-container p {
    position: relative;

    max-width: 650px;

    margin: 0 auto 40px;

    color: #a7a7b0;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================
   VOTE BUTTONS
========================= */

.vote-buttons {
    position: relative;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    width: 100%;
}


/* Button */

.vote-button {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 60px;

    padding: 15px 20px;

    border-radius: 12px;

    border: 1px solid rgba(78, 115, 223, 0.35);

    background:
        linear-gradient(
            135deg,
            rgba(78, 115, 223, 0.16),
            rgba(139, 92, 246, 0.08)
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.2px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Shine effect */

.vote-button::before {
    content: '';

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.5s ease;
}


/* Hover */

.vote-button:hover {
    transform: translateY(-5px);

    border-color: rgba(78, 115, 223, 0.85);

    background:
        linear-gradient(
            135deg,
            rgba(78, 115, 223, 0.30),
            rgba(139, 92, 246, 0.18)
        );

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(78, 115, 223, 0.15);

    color: #ffffff;
}


.vote-button:hover::before {
    left: 140%;
}


/* Click */

.vote-button:active {
    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

.footer {
    margin-top: auto;

    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 29, 0.75),
            #151518
        );

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    padding: 45px 0 20px;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.containerFooter {
    width: min(1000px, calc(100% - 40px));

    margin: auto;
}


.rowFooter {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;
}


.footer-col {
    padding: 0 10px;
}


.footer-col h4 {
    position: relative;

    display: inline-block;

    margin: 0 0 22px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.5px;
}


/* Linea sotto il titolo */

.footer-col h4::before {
    content: '';

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 35px;

    height: 2px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #4e73df,
        #8b5cf6
    );

    box-shadow: 0 0 10px rgba(78, 115, 223, 0.5);
}


.footer-col ul {
    list-style: none;

    padding: 0;

    margin: 0;
}


.footer-col ul li {
    margin-bottom: 10px;
}


.footer-col ul li a {
    display: inline-flex;

    align-items: center;

    color: #92929b;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.footer-col ul li a::before {
    content: '›';

    margin-right: 7px;

    color: #4e73df;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.footer-col ul li a:hover {
    color: #ffffff;

    transform: translateX(4px);
}


.footer-col ul li a:hover::before {
    opacity: 1;

    transform: translateX(0);
}


/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
    width: min(1000px, calc(100% - 40px));

    margin: 35px auto 0;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    color: #62626b;

    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .vote-container {
        margin-top: 40px;

        padding: 40px 25px;
    }

    .vote-buttons {
        grid-template-columns: 1fr;
    }

    .rowFooter {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px;
    }
}


@media (max-width: 480px) {

    .vote-container {
        width: calc(100% - 24px);

        padding: 35px 18px;

        border-radius: 16px;
    }

    .vote-container h1 {
        font-size: 32px;
    }

    .vote-container p {
        font-size: 14px;

        margin-bottom: 30px;
    }

    .vote-button {
        min-height: 55px;
    }

    .rowFooter {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-col {
        padding: 0;
    }

    .footer-col h4::before {
        left: 50%;

        transform: translateX(-50%);
    }

    .footer-col ul li a:hover {
        transform: none;
    }

    .footer-col ul li a::before {
        display: none;
    }
}