/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #F5E6D9;
    --color-primary: #A0516D;
    --color-nav-bg: #F4BCC8;
    --color-nav-active: #A0516D;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-burgundy-dark: #8B4159;
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 2rem;
}

/* Header Styles */
.site-header {
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-primary);
    border-radius: 8px;
    padding: 4px;
    background: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-proteo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-vicenza {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    background-color: var(--color-nav-bg);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    gap: 2rem;
}

.nav-item a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 25px;
    white-space: nowrap;
}

.nav-item.active a {
    color: var(--color-text);
    position: relative;
}

.nav-item:not(.nav-item-dropdown).active a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-nav-active);
    border-radius: 50%;
}

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

.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-subitem a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-subitem a:hover {
    background-color: var(--color-nav-bg);
    color: var(--color-primary);
}

.nav-subitem.active a {
    background-color: var(--color-nav-bg);
    color: var(--color-primary);
    font-weight: 600;
}

/* Buttons */
.btn-prenota {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-prenota:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 81, 109, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: rgba(160, 81, 109, 0.15);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: rgba(160, 81, 109, 0.25);
    transform: translateY(-2px);
}

.btn-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: white;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-stats:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
}

.btn-contattaci {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-contattaci:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
}

/* HOME PAGE */
.hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.image-section {
    padding: 3rem 0;
}

.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stripe-left,
.stripe-right {
    width: 100px;
    height: 400px;
    background-color: var(--color-bg);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.stats-section {
    background-color: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.stats-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.stats-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* GENERAL PAGES */
.page-single {
    padding: 2rem 0 0 0;
    margin-bottom: 0;
}

.page-single .container {
    padding-bottom: 0;
}

.page-content {
    padding: 0;
}

/* CHI SIAMO PAGE */
.chi-siamo-section {
    padding: 2rem 0 0.5rem 0;
    margin-bottom: 0;
}

.chi-siamo-section::after {
    content: "";
    display: table;
    clear: both;
}

.chi-siamo-section > .section-title-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.chi-siamo-grid {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    flex-direction: row-reverse;
}

.chi-siamo-text {
    flex: 1;
}

.chi-siamo-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
}

.proteo-intro {
    margin-top: 1.5rem;
}

.chi-siamo-image {
    flex: 0 0 45%;
    display: flex;
    align-items: stretch;
}

.chi-siamo-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.chi-siamo-full-width {
    clear: both;
    padding-top: 2rem;
}

.chi-siamo-full-width p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
    margin-bottom: 1rem;
}

.chi-siamo-full-width ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.chi-siamo-full-width ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

.chi-siamo-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-chi-siamo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.btn-chi-siamo:hover {
    background-color: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 81, 109, 0.3);
}

.btn-chi-siamo svg {
    width: 16px;
    height: 16px;
}

.dove-operiamo-section {
    padding: 3rem 0 3rem 0;
    margin-bottom: 0;
    clear: both;
}

.dove-operiamo-section::after {
    content: "";
    display: table;
    clear: both;
}

.section-title-large-purple {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.dove-operiamo-grid {
    display: flex;
    align-items: stretch;
    gap: 2rem;
}

.dove-operiamo-image {
    flex: 0 0 45%;
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

.dove-operiamo-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.dove-operiamo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ufficio-presidenza-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.dove-operiamo-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.dove-operiamo-text ul {
    margin-top: 1.5rem;
}

.dove-operiamo-text ul li,
.chi-siamo-text ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

.attivita-list li {
    margin-bottom: 0.4rem;
}

.organigramma-list {
    list-style: none;
    padding-left: 0;
}

.organigramma-list li {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(160, 81, 109, 0.2);
}

.organigramma-list li:last-child {
    border-bottom: none;
}

.cta-section {
    background-color: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
}

.cta-section .btn-prenota {
    background-color: white;
    color: var(--color-primary);
}

.cta-section .btn-prenota:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* CORSI PAGE */
.page-corsi {
    padding: 3rem 0 0 0;
    margin-bottom: 0;
}

.page-corsi .container {
    padding-bottom: 0;
}

.corsi-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* Titolo più piccolo per pagine categoria con titoli lunghi */
.categoria-page .categoria-title {
    font-size: 2.2rem;
}

.corsi-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
}

.filter-item svg {
    width: 12px;
    height: 12px;
}

.corsi-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.corso-card {
    background: white;
    border: 3px solid var(--color-primary);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(160, 81, 109, 0.2);
}

.corso-card-image-circle {
    width: 120px;
    height: 120px;
    margin: -60px auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.corso-card-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A0516D, #F4BCC8);
}

.corso-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background-color: var(--color-primary);
    padding: 0.75rem 1rem;
    margin: 0 -1.5rem 1.5rem;
    border-radius: 0;
}

.corso-card-meta {
    text-align: left;
    padding: 0 1rem;
}

.corso-card-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.corso-location,
.corso-date {
    font-weight: 600;
    color: var(--color-primary);
}

.corso-venue {
    color: var(--color-text-light);
}

.corsi-view-all {
    text-align: center;
    margin: 2rem 0;
}

.link-view-all {
    font-size: 1.1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.link-view-all:hover {
    text-decoration: underline;
}

.corsi-cta-section {
    background-color: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 0;
    color: white;
}

.corsi-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
}

.corsi-cta-section .btn-contattaci {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.corsi-cta-section .btn-contattaci:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* CONTATTI PAGE */
.page-title-large {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1rem 0;
}

.contact-item {
    text-align: left;
}

.contact-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 400;
}

.contact-logo {
    text-align: center;
    padding: 1rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-img-large {
    width: 120px;
    height: auto;
    border: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 1rem;
}

.logo-text-large {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text-large .logo-proteo,
.logo-text-large .logo-vicenza {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* FOOTER */
.site-footer {
    background-color: #3A3A3A;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    color: white;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-column-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-column-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-column-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-column-right .footer-logo-container {
    align-items: flex-start;
}

.footer-logo-container {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.footer-cgil-logo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top;
    display: block;
}

.footer-description {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-association {
    font-size: 0.9rem;
    font-weight: 400;
    color: white;
    margin: 0;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-qualification {
    font-size: 0.85rem;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
}

.footer-contact {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.footer-address {
    color: white;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: white;
}

.footer-copyright a {
    color: white;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Stili footer vecchi (da rimuovere in futuro) */
.footer-grid {
    display: none;
}

.footer-logo-wrapper,
.footer-logo-text,
.footer-logo-brand,
.footer-logo-subtitle,
.footer-heading,
.footer-link,
.footer-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .chi-siamo-grid,
    .dove-operiamo-grid {
        flex-direction: column;
    }
    
    .chi-siamo-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .chi-siamo-image img {
        height: auto;
    }
    
    .dove-operiamo-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .dove-operiamo-image img {
        height: auto;
    }
    
    .corsi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .image-wrapper {
        flex-direction: column;
    }
    
    .stripe-left,
    .stripe-right {
        width: 100%;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
    }
    
    .nav-item a {
        padding: 0.75rem 1rem;
    }
    
    .nav-submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background-color: var(--color-nav-bg);
        margin-top: 0;
        padding-left: 1rem;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-item-dropdown.mobile-open .nav-submenu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .nav-item-dropdown > a {
        cursor: pointer;
    }
    
    .nav-subitem a {
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-title {
        font-size: 2rem;
    }
    
    .page-title-large {
        font-size: 2.5rem;
    }
    
    .section-title-large {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .corsi-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .corsi-main-title {
        font-size: 2.5rem;
    }
    
    .footer-grid-new {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column-left,
    .footer-column-center,
    .footer-column-right {
        align-items: center;
    }
    
    .footer-logo-container {
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-prenota,
    .btn-secondary,
    .btn-stats,
    .btn-cta,
    .btn-contattaci {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-proteo,
    .logo-vicenza {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-title {
        font-size: 1.75rem;
    }
    
    .page-title-large {
        font-size: 2rem;
    }
    
    .corsi-main-title {
        font-size: 2rem;
    }
}

/* ISCRIZIONE FORM */
.form-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.form-intro {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.required-asterisk {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2em;
}

.iscrizione-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group small {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.form-input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-label-bold {
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--color-text);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.form-submit .btn-prenota {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section-title {
        font-size: 1.5rem;
    }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #3A3A3A;
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-reject {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-cookie-accept {
    background-color: var(--color-primary);
    color: white;
}

.btn-cookie-accept:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
}

.btn-cookie-reject {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-cookie-accept,
    .btn-cookie-reject {
        flex: 1;
        max-width: 150px;
    }
}

/* Approfondimenti Section Styles */
.approfondimenti-section {
    padding: 3rem 0;
}

.approfondimenti-section .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.approfondimenti-section .page-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.approfondimenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approfondimento-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.approfondimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.approfondimento-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.approfondimento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.approfondimento-card:hover .approfondimento-image img {
    transform: scale(1.05);
}

.approfondimento-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.approfondimento-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.approfondimento-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.approfondimento-description {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.approfondimento-author {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read-more:hover {
    color: var(--color-burgundy-dark);
    transform: translateX(5px);
}

/* Single Approfondimento Page */
.approfondimento-detail {
    padding: 3rem 0;
}

.approfondimento-detail-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.approfondimento-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.approfondimento-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.approfondimento-detail-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.approfondimento-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-nav-bg);
    font-size: 0.95rem;
}

.approfondimento-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approfondimento-detail-description {
    background-color: var(--color-nav-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.approfondimento-detail-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.approfondimento-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.approfondimento-detail-body h2 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.approfondimento-detail-body h3 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.approfondimento-detail-body p {
    margin-bottom: 1rem;
}

.approfondimento-detail-body ul,
.approfondimento-detail-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.approfondimento-detail-body li {
    margin-bottom: 0.5rem;
}

.approfondimento-detail-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.approfondimento-detail-body a:hover {
    color: var(--color-burgundy-dark);
}

/* PDF Download Button */
.approfondimento-pdf-download {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(160, 81, 109, 0.3);
}

.btn-pdf-download:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(160, 81, 109, 0.4);
}

.btn-pdf-download svg {
    flex-shrink: 0;
}

.approfondimento-detail-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-nav-bg);
    display: flex;
    justify-content: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-nav-bg);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateX(-5px);
}

/* Responsive Styles for Approfondimenti */
@media (max-width: 768px) {
    .approfondimenti-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approfondimento-detail-content {
        padding: 1.5rem;
    }
    
    .approfondimento-detail-title {
        font-size: 1.8rem;
    }
    
    .approfondimento-detail-image {
        height: 250px;
    }
    
    .approfondimenti-section .page-header h1 {
        font-size: 2rem;
    }
}
