/* Corpo principale */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Amplify differences in text sizes and reduce spacing */
header h1 {
    margin: 0.2rem 0;
    font-size: 2.2rem;
}

header h3 {
    margin: 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 400;
}

#second-title {
    margin: 0.3rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInRight 1s forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(80%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Seletor per o "Escolha a região" (Rio/SP) */
#locationSwitch {
    text-align: center;
    margin: 0px 0;
}

/* Navbar */
nav ul {
    background: white;
    border-bottom: 2px solid #ddd;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

nav ul li {
    display: inline;
    margin: 0;
}

nav ul li a {
    color: #333;
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover {
    background: #2575fc;
    color: white;
    border-radius: 4px;
}

/* Formulário de busca */
#search {
    margin: 5px auto 10px auto;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#search input {
    width: 60%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search input:focus {
    border-color: #2575fc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#search button {
    padding: 12px 20px;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

#search button:hover {
    background: #6a11cb;
    transform: scale(1.1);
}

/* ============================= */
/* Modal (Popup) Styles          */
/* ============================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease forwards;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ff0000;
}

/* Slide Element (SE) Styles in Header */
/* Qui rimuoviamo "Leia mais" e inseriamo i punti di sospensione, se necessario. */

@media (max-width: 450px) {
    #se-slide {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        position: relative;
    }

    /* Sostituiamo la vecchia scritta "Leia mais" con i punti (....) 
       ma se #se-slide avesse la classe .truncated */
    #se-slide.truncated::after {
        content: " (....)";
        font-style: italic;
        color: inherit;
        background: none;
        position: relative;
        margin-left: 3px;
    }
}

@media (min-width: 451px) {
    #se-slide {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        position: relative;
    }

    #se-slide.truncated::after {
        content: " (....)";
        font-style: italic;
        color: inherit;
        background: none;
        position: relative;
        margin-left: 3px;
    }
}

/* Footer */
footer {
    text-align: center;
    background: #333;
    color: white;
    padding: 3px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.9em;
}

footer p {
    margin: 0;
}

/* Altre regole generali... */
footer p {
    margin: 0;
}

/* Stili aggiuntivi per i pulsanti, box di opinione, ecc. */
#leaveOpinionButtonDetails {
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.opinion-box {
    background-color: #fafafa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blue-button {
    padding: 12px 20px;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.blue-button:hover {
    background: #6a11cb;
    transform: scale(1.1);
}

#opinion-container {
    padding: 0 15px;
}

#details {
    padding-bottom: 200px;
}

/* Fine file style.css aggiornato */