/* Sardum - Stili principali */

@font-face {
    font-family: "Poppins Bold";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins Medium";
    src: url("../fonts/Poppins-Medium.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins Regular";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
}

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

html, body {
    width: 100%;
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
.font-extra-big-bold {
    font-family: "Poppins Bold", sans-serif;
    font-size: 1.9em;
}
.font-big-bold {
    font-family: "Poppins Bold", sans-serif;
    font-size: 1.3em;
}
.font-normal-bold {
    font-family: "Poppins Bold", sans-serif;
    font-size: 1em;
}
.font-small-bold {
    font-family: "Poppins Bold", sans-serif;
    font-size: 0.8em;
}
.font-very-small-bold {
    font-family: "Poppins Bold", sans-serif;
    font-size: 0.7em;
}
.font-normal-medium {
    font-family: "Poppins Medium", sans-serif;
    font-size: 1em;
}
.font-small-regular {
    font-family: "Poppins Regular", sans-serif;
    font-size: 0.8em;
}
.font-very-small-regular {
    font-family: "Poppins Regular", sans-serif;
    font-size: 0.7em;
}

/* Colors */
.white {
    color: #FFFFFF;
}
.red {
    color: #4169B8;
}
.blue {
    color: #E85D45;
}

/* Layout principale */
.background-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #266CBC;
    padding-bottom: 2rem;
}

.header-container {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loghi-footer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.logo-footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.logo-footer-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Container quiz */
.container {
    background-color: #00986C;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    padding: 2rem 0;
    flex-grow: 1;
}

.form-container {
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    text-align: center;
    background-color: #00986C;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    padding: 3rem 2rem 5rem;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.question-number {
    margin-bottom: 1rem;
}

.question {
    line-height: 1.2;
    margin-bottom: 2rem;
}

.answers {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 1rem 0;
    justify-content: center;
}

.answer-button {
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-family: "Poppins Medium", sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.answer-button:hover {
    background-color: #FFFFFF;
    color: #4169B8;
}

/* Checkbox per risposte multiple */
.checkbox-answer {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background-color: white;
    border: 2px solid #E85D45;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: fit-content;
}

.checkbox-answer:hover {
    background-color: #E85D4510;
    transform: scale(1.02);
}

.checkbox-answer input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #4169B8;
}

.checkbox-answer span {
    flex: 1;
    font-family: 'Poppins Medium', sans-serif;
    font-size: 0.9em;
    color: #4169B8;
    text-align: left;
}

.checkbox-answer input[type='checkbox']:checked + span {
    font-weight: bold;
}

/* Bottoni */
.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    background-color: #075CBD;
    width: fit-content;
    padding: 0.75rem 1.5rem;
    border: 1px solid #075CBD;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
    gap: 15px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #0648A0;
}

.button.color-white {
    color: white;
}

.button i {
    font-size: x-large;
}

/* Footer */
.footer-container {
    width: 100%;
    background-color: #E7385A;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.text-footer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.text-footer {
    max-width: 800px;
}

/* Pagina risultati */
.path-container {
    display: flex;
    align-items: center;
    background-color: #4169B8;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    gap: 1em;
}

.text-container-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 1rem 0;
}

.survey-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #E85D451A;
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
}

.answer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.question-answer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 200px;
    border: 2px solid #E85D45;
    border-radius: 15px;
    padding: 1rem;
}

.btn-container-path {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-path-white {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: 1px solid #E85D45;
    border-radius: 20px;
    color: #E85D45;
    cursor: pointer;
    gap: 15px;
    font-family: "Poppins Bold", sans-serif;
    transition: all 0.3s ease;
}

.btn-path-white:hover {
    color: #FFFFFF;
    background-color: #4169B8;
    border-color: #4169B8;
}

.btn-path-white i {
    font-size: x-large;
}

/* Responsive */
@media screen and (min-width: 2801px) {
    html { font-size: 30px; }
}
@media screen and (min-width: 2201px) and (max-width: 2800px) {
    html { font-size: 26px; }
}
@media screen and (min-width: 1801px) and (max-width: 2200px) {
    html { font-size: 24px; }
}
@media screen and (min-width: 1501px) and (max-width: 1800px) {
    html { font-size: 20px; }
}
@media screen and (min-width: 900px) and (max-width: 1500px) {
    html { font-size: 18px; }
}

@media screen and (max-width: 768px) {
    .logo-footer-container img {
        max-width: 250px;
    }

    .form-container {
        width: 95%;
        padding: 2rem 1rem;
    }

    .answer-button {
        font-size: 0.85em;
        padding: 0.8rem 1.5rem;
    }

    .path-container,
    .text-container-path {
        width: 95%;
    }
}
