/* static/css/base.css */

:root {
    --primary-color: #1c1c1c; /* Charcoal (Títulos/Textos Principais/Rodapé) */
    --secondary-color: #2a2a2a; /* Lighter Charcoal */
    --background-color: #f9f9f9; /* Off-White (Fundo Geral) */
    --accent-color: #2b4a3b; /* Verde Musgo / Alpino (Botões/Links/Destaques) */
    --accent-hover: #1e362a; /* Darker Verde Musgo (Hover) */
    --border-color: #eaeaea; /* Light Gray (Bordas) */
}

a {
    color: var(--primary-color);
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p, li {
    font-size: 1.5rem;
    line-height: 1.8;
}

body {
    font-family: 'Inter', sans-serif;
    /* background-color: var(--background-color); */
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
}

.mobile-logo {
    display: none;
}

.desktop-logo {
    display: block;
}

.desktop-nav li a {
    white-space: nowrap;
}

/* .logo-circle {
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    padding: 20px;
} */

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.question-text {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 1.2em;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    z-index: 1000;
    padding: 0 5vw !important;
    height: 90px;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* Overflowing Round Logo */
    background: #ffffff;
    width: 170px;
    height: 170px;
    flex-shrink: 0; /* Prevents the circle from squishing into an oval */
    border-radius: 50%;
    position: relative;
    top: 45px; /* Pushes the center of the logo to the bottom edge of the 90px header */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 10px; /* Creates a nice white border around the image */
    box-sizing: border-box;
    z-index: 1001; /* Ensure it pops over the content below */
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-action-btn {
    padding: 7px 18px !important;
    border-radius: 30px;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent-color);
    color: #ffffff !important;
}

.btn-solid {
    background: var(--accent-color);
    color: #ffffff !important;
    border: 1.5px solid var(--accent-color);
}
.btn-solid:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.header-action-btn.btn-outline {
    color: var(--accent-color) !important;
}
.header-action-btn.btn-outline:hover {
    background: var(--accent-color);
    color: #ffffff !important;
}
.header-action-btn.btn-solid {
    color: #ffffff !important;
}

.lang-dropdown {
    display: none;
}

/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    display: inline-block;
    margin-left: 0.8rem;
    vertical-align: middle;
}

.lang-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    color: #475569;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.lang-trigger-btn:hover,
.lang-trigger-btn:focus,
.custom-lang-selector.open .lang-trigger-btn {
    border-color: rgba(43, 74, 59, 0.25);
    background-color: #f8fafc;
    color: var(--accent-color, #2b4a3b);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lang-trigger-btn .chevron {
    display: inline-block;
    width: 8px;
    height: 5px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
}

.custom-lang-selector.open .lang-trigger-btn .chevron {
    transform: rotate(180deg);
    color: var(--accent-color, #2b4a3b);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 155px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    padding: 6px;
    display: none;
    z-index: 1000;
}

.custom-lang-selector.open .lang-dropdown-menu {
    display: flex;
    flex-direction: column;
    animation: langFadeIn 0.15s ease-out;
}

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lang-menu-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color, #1c2c26);
}

.lang-menu-item.active {
    background-color: rgba(43, 74, 59, 0.08);
    color: #2b4a3b;
    font-weight: 600;
}

.lang-menu-item .item-name {
    text-transform: capitalize;
}

.vda-flag-svg {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
    flex-shrink: 0;
}

.flag-emoji {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}

.mobile-nav-overlay .custom-lang-selector {
    margin-left: 0;
    margin-top: 1.5rem;
}

.mobile-nav-overlay .lang-dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer Styles */
body {
    padding-bottom: 45px; /* Space for the fixed footer */
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    border-top: 1px solid #2a2a2a;
    z-index: 1000;
}

.footer-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #8c8c8c;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    color: #555555;
    font-size: 0.75rem;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-developed {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #8c8c8c;
    font-size: 0.85rem;
}

.footer-developed a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-developed a:hover {
    color: #ffffff;
}

.footer-developed img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.fh5co-social-icons {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.fh5co-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fh5co-social-icons a img {
    filter: invert(1);
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    height: 19px;
    width: 19px;
}

.fh5co-social-icons a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content Area */
section,
.simple-carousel,
.events-section {
    padding: 0 15vw;
    margin: 80px auto;
}

.intro-section {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.desc-section {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding-top: 1em;
    padding-bottom: 1em;
}

.desc-section .container {
    border-right: 3px solid var(--accent-color);
    padding-right: 1rem;
}

.desc-section__paragraph {
    width: 80%;
    margin: 0;
}

.ai-section {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 80px auto;
}

.events-section {
    margin: 160px auto;
}

.events-section__title {
    font-weight: bold;
}

/* Language Navigation */
/* .language-nav {
    display: flex;
    margin: 10px 0;
}

.lang-link {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 5px;
}

.lang-link:hover {
    background-color: #e0e0e0;
}

.lang-link.active {
    font-weight: bold;
    background-color: #f0f0f0;
} */

.language-selector {
    display: flex;
    margin: 5px 0;
}

.language-form {
    display: flex;
    gap: 5px;
    justify-content: space-around;
    width: 100%;
}

.flag-btn {
    background: none;
    border: 3px solid transparent;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-btn:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.flag-btn.active {
    border-color: #aaa;
    background-color: #f0f0f0;
    pointer-events: none;
}

/* Stile per rendere le bandiere rettangolari invece degli emoji */
.flag-icon {
    display: inline-block;
    width: 1.1em;
    height: 0.8em;
    line-height: 1;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    font-size: 18px;
    /* Dimensione emoji */
    text-indent: -9999px;
}

/* Stili specifici per le singole bandiere */
.flag-it {
    background: linear-gradient(to right, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #CE2B37 66.6%);
}

.flag-fr {
    background: linear-gradient(to right, #0055A4 33.3%, #ffffff 33.3%, #ffffff 66.6%, #EF4135 66.6%);
}

.flag-en {
    background: #012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 0v30h60V0H0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m-60 0l60-30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m-60 0l60-30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* Carousel Styles */
.simple-carousel {
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
}

.carousel-caption h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.carousel-caption p {
    margin: 0;
    font-size: 0.9rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
}

/* Stile di base del burger menu (visibile solo in mobile) */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 100;
    position: relative;
    margin-top: 6px;
}

.burger-menu-btn .line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animazione del burger menu quando è attivo */
.burger-menu-btn.active .line-1 {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-menu-btn.active .line-2 {
    opacity: 0;
}

.burger-menu-btn.active .line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Cambia colore in bianco quando il menu mobile è aperto */
.burger-menu-btn.active .line {
    background-color: #ffffff;
}

/* Stile del menu mobile */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 66.66%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 99;
    transition: right 0.3s ease-in-out;
    padding: 60px 20px 20px;
    overflow-y: auto;
    display: none;
}

.mobile-nav-overlay.active {
    right: 0;
    display: block;
    height: 100%;
}

/* Stile per i menu item nel mobile */
.mobile-nav-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-overlay ul li {
    margin-bottom: 20px;
}

.mobile-nav-overlay ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

/* Language selector per mobile */
.mobile-nav-overlay .language-selector, .ai-button_container {
    margin-top: 8vh;
}

.mobile-nav-overlay .language-form button {
    background: none;
    border: none;
    font-size: 24px;
    margin-right: 10px;
}

/* AI Feature */
.ai-feature {
    width: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #d4d4d4 150%);
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ai-icon {
    margin-right: 30px;
    opacity: 0.85;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-icon img {
    width: 7rem;
    filter: grayscale(100%);
}

.ai-feature:hover .ai-icon {
    transform: scale(1.05);
    opacity: 1;
}

.ai-content {
    flex: 1;
    z-index: 1;
}

.ai-title {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.ai-text {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.ai-button {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
}

.ai-button:hover {
    background: #333333;
}

.ai-button-forfiles, .ai-button-forfiles-fake {
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 0px 5px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.ai-button-forfiles {
    cursor: pointer;
}

.ai-button-text {
    color: var(--primary-color);
    padding: 0;
    margin: 0;
}

/* Per garantire la responsività */
@media (max-width: 768px) {
    .ai-feature {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .ai-icon {
        margin-right: 0;
        /* margin-bottom: 20px; */
    }

    .ai-title {
        font-size: 1.5rem;
    }

    .ai-text {
        font-size: 1.1rem;
    }
}