/* --- Reset e Stili Globali --- */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1a237e;
}
a {
    color: #c5a66a;
    text-decoration: none;
}

/* --- Header e Navigazione --- */
.header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
    width: auto;
    display: block;
}
.nav a {
    color: #333;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}
.nav a:hover {
    color: #c5a66a;
}

/* --- Sezione Hero (Principale) --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/ncc-napoli-aeroporto-mercedes-classe-s.webp');
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 150px 0;
    text-align: center;
}
.hero h1 {
    color: #fff;
    font-size: 2.8em;
}
.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 10px auto 30px auto;
}
.cta-button {
    background-color: #c5a66a;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}
.cta-button:hover {
    background-color: #b39254;
}

/* --- Stili Generali e Contenuti --- */
.page-content {
    padding: 60px 0;
    background-color: #fff;
}
.page-content h2 {
   font-size: 2em;
   margin-bottom: 20px;
   text-align: center;
}
.features {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.feature-item {
    flex-basis: 30%;
    min-width: 280px;
    text-align: center;
    padding: 20px;
}
.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* --- Stili Sezioni Aggiuntive (Homepage, Tratte, etc.) --- */
.services-section { padding: 60px 0; background-color: #f4f4f9; }
.services-grid { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.service-card { flex-basis: 300px; background-color: #ffffff; padding: 30px; text-align: center; border-radius: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-card h3 { margin-top: 15px; font-size: 1.4em; }
.why-us-section, .logistics-container, .legal-focus-container, .pain-solution-container, .business-benefits-section { display: flex; align-items: center; gap: 40px; }
.why-us-content, .why-us-image, .logistics-content, .logistics-image, .legal-focus-content, .legal-focus-image, .pain-solution-content, .pain-solution-image { flex: 1; }
.why-us-image img, .logistics-image img, .legal-focus-image img, .pain-solution-image img, .business-benefits-image img { width: 100%; border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.why-us-list { list-style: none; padding: 0; margin-top: 20px; }
.why-us-list li { font-size: 1.1em; margin-bottom: 15px; padding-left: 30px; position: relative; }
.why-us-list li::before { content: '✔'; color: #c5a66a; position: absolute; left: 0; font-weight: bold; }
.intro-text, .process-narrative { text-align: center; max-width: 800px; margin: 20px auto 40px auto; font-size: 1.1em; line-height: 1.7; }
.destinations-section, .poi-section, .logistics-section, .legal-focus-section, .pain-solution-section, .comparison-section.bg-grey { background-color: #f4f4f9; padding: 60px 0; }
.comparison-section, .hotel-section { padding: 60px 0; background-color: #fff; }
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.comparison-card { background-color: #f4f4f9; padding: 30px; border-radius: 5px; }
.comparison-card.is-ncc { border: 2px solid #c5a66a; background-color: #fff; transform: scale(1.03); }
.comparison-card h3 { margin-top: 0; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.comparison-card ul { list-style: none; padding: 0; text-align: left; }
.comparison-card li { position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 0.95em; }
.comparison-card li::before { position: absolute; left: 0; font-weight: bold; font-family: 'Montserrat', sans-serif;}
.pro::before { content: '✓'; color: #2e7d32; }
.con::before { content: '✘'; color: #c62828; }
.faq-section { max-width: 800px; margin: 60px auto 0 auto; }

/* --- Stili per CTA e semantica avanzata --- */
.cta-block { text-align: center; margin-top: 60px; padding: 40px 20px; background-color: #f4f4f9; border-radius: 5px; }
.cta-block .cta-button { margin-top: 20px; }
details.faq-item { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
summary.faq-question { font-weight: bold; cursor: pointer; position: relative; padding-right: 20px; font-size: 1.1em; list-style: none; /* Rimuove la freccia di default */ }
summary.faq-question::-webkit-details-marker { display: none; } /* Rimuove la freccia di default su Chrome/Safari */
summary.faq-question::after { content: '+'; position: absolute; right: 0; font-family: 'Montserrat', sans-serif; transition: transform 0.3s; }
details[open] > summary.faq-question::after { transform: rotate(45deg); }

/* --- Footer --- */
.footer { background-color: #1a237e; color: #fff; padding: 20px 0; }
.footer-line { font-size: 10px; opacity: 0.5; text-align: center; margin-bottom: 8px; }
.footer-line:last-child { margin-bottom: 0; }
.footer-line .separator { margin: 0 10px; opacity: 0.8; }
.footer-line a { color: #ffffff; opacity: 0.5; text-decoration: underline; transition: opacity 0.3s; }
.footer-line a:hover { opacity: 1; }

/* --- Media Queries per Responsività --- */
@media (max-width: 900px) { .why-us-section, .logistics-container, .legal-focus-container, .pain-solution-container, .business-benefits-section { flex-direction: column; } }
@media (max-width: 768px) {
    .nav { display: none; }
    .hero h1 { font-size: 2.2em; }
    .feature-item, .pillars-grid { flex-basis: 100%; grid-template-columns: 1fr; }
    .footer-line span, .footer-line a { display: block; line-height: 1.6; }
    .footer-line .separator { display: none; }
}
/* --- Stili per Pagina Contatti --- */
.contact-form-container { background-color: #f4f4f9; padding: 40px; border-radius: 5px; max-width: 800px; margin: 30px auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #333; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Roboto', sans-serif; font-size: 1em; box-sizing: border-box; }
.form-row { display: flex; gap: 20px; }
.privacy-group { margin-top: 20px; display: flex; align-items: center; }
.privacy-group input { width: auto; margin-right: 10px; }
.privacy-group label { margin-bottom: 0; font-weight: normal; font-size: 0.9em; }
.submit-button { display: inline-block; background-color: #1a237e; color: #fff; padding: 15px 30px; border-radius: 5px; font-weight: bold; transition: background-color .3s; border: none; cursor: pointer; font-size: 1.1em; }
.submit-button:hover { background-color: #3949ab; }
.other-contacts { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.contact-methods { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.contact-card { padding: 20px; text-align: center; flex-basis: 300px; }
.contact-card h4 { margin-top: 0; }
.contact-card .contact-link { display: inline-block; margin-top: 10px; background-color: #6c757d; color: #fff; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: background-color .3s; }
.contact-card .contact-link:hover { background-color: #5a6268; }
.company-details { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.company-details p { margin: 5px 0; color: #555; }
@media (max-width: 600px) { .form-row { flex-direction: column; gap: 0; } }

/* --- Stili per Navigazione Mobile (Hamburger Menu) --- */
.nav-desktop { display: flex; }
.nav-mobile-container { display: none; }

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile-container {
        display: block;
        position: relative;
        z-index: 100;
    }
    .nav-toggle-checkbox {
        display: none;
    }
    .nav-toggle-label {
        display: block;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .nav-toggle-label span {
        display: block;
        height: 3px;
        width: 100%;
        background: #1a237e;
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .nav-mobile {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background-color: #1a237e;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav-mobile a {
        color: white;
        font-size: 1.2em;
        padding: 15px 0;
        text-decoration: none;
        width: 100%;
        text-align: center;
    }
     .nav-mobile a:hover {
        background-color: #3949ab;
    }
    .nav-toggle-checkbox:checked ~ .nav-mobile {
        transform: translateX(0);
    }
    .nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle-checkbox:checked + .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* --- Fine Stili Navigazione Mobile --- */

/* --- Stili Tabella Comparativa (Pagina Perché NCC) --- */
.comparison-table { width: 100%; margin: 50px 0; border-collapse: collapse; }
.comparison-table th, .comparison-table td { border: 1px solid #ddd; padding: 15px; text-align: center; }
.comparison-table th { background-color: #f4f4f9; font-family: 'Montserrat', sans-serif; }
.comparison-table .feature-col { text-align: left; font-weight: bold; }
.comparison-table .check { color: green; font-weight: bold; font-size: 1.5em; }
.comparison-table .cross { color: red; font-weight: bold; font-size: 1.5em; }
/* --- Fine Stili Tabella Comparativa (Pagina Perchè NCC) ---*/

/* --- Stili Sezione Guide --- */
.guide-list { list-style: none; padding: 0; margin-top: 40px; }
.guide-item { background-color: #fff; margin-bottom: 20px; border-radius: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: box-shadow .3s; }
.guide-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.guide-item a { display: block; padding: 30px; color: #333; text-decoration: none; }
.guide-item h3 { margin-top: 0; color: #1a237e; font-size: 1.4em; }
.guide-item p { margin-bottom: 0; }

/* --- Stili Articolo Guida --- */
.article-header { text-align: center; margin-bottom: 40px; }
.article-content { max-width: 800px; margin: 0 auto; line-height: 1.8; }
.article-content h3 { margin-top: 40px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.article-content a { text-decoration: underline; }
.highlight-box { background-color: #f4f4f9; padding: 25px; border-radius: 5px; margin: 30px 0; border-left: 4px solid #c5a66a; }

/* --- Stili Pagina Flotta --- */
.fleet-intro { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
.vehicle-category { margin-bottom: 70px; }
.vehicle-category h3 { font-size: 2.2em; margin-bottom: 15px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.vehicle-content { display: flex; gap: 30px; align-items: center; }
.vehicle-details { flex: 1; }
.vehicle-specs { list-style: none; padding: 0; margin-top: 20px; }
.vehicle-specs li { padding-left: 28px; position: relative; margin-bottom: 10px; font-weight: bold; }
.vehicle-specs li::before { content: '✓'; color: #c5a66a; position: absolute; left: 0; font-size: 1.2em; }
.vehicle-images { flex: 1.5; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.vehicle-images img { width: 100%; border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); display: block; }
@media (max-width: 900px) {
    .vehicle-content { flex-direction: column; }
    .vehicle-images { width: 100%; margin-top: 20px; }
}

/* --- Stili Pagina Elenco Tratte --- */
.routes-grid { margin-top: 40px; }
.routes-grid h3 { font-size: 1.6em; border-bottom: 2px solid #1a237e; padding-bottom: 10px; margin-top: 40px; margin-bottom: 20px; }
.routes-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px 20px; padding-left: 0; }
.routes-list-container ul { list-style: none; padding: 0; }
.routes-list-container li { margin-bottom: 12px; }
.routes-list-container a { font-family: 'Roboto', sans-serif; font-size: 1em; font-weight: 500; color: #333; transition: color .3s; position: relative; padding-left: 20px; }
.routes-list-container a.inactive-link { color: #999; pointer-events: none; cursor: default; }
.routes-list-container a::before { content: '›'; position: absolute; left: 0; color: #c5a66a; font-weight: bold; }
.routes-list-container a:not(.inactive-link):hover { color: #c5a66a; }

/* --- Stili Specifici per Pagine Tratte --- */
.destinations-section {
    background-color: #f4f4f9; 
}
.destinations-section h2,
.destinations-section > .container > p {
    text-align: center;
}
.destinations-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden; 
}
.destinations-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}
.destinations-list li:hover {
    background-color: #f9f9f9;
}
.destinations-list li:last-child {
    border-bottom: none;
}
.destinations-list .dest-name {
    font-weight: 600;
    color: #1a237e;
}
.destinations-list .dest-name a {
    color: inherit;
    text-decoration: none;
}
.destinations-list .dest-name a:hover {
    color: #c5a66a;
    text-decoration: underline;
}
.destinations-list span:not(.dest-name) {
    color: #555;
    font-style: italic;
    flex-shrink: 0;
    padding-left: 15px;
}
.destinations-section .cta-button-wrapper {
    text-align: center;
    margin-top: 30px;
}
.pt-0 {
    padding-top: 0 !important;
}
.business-benefits-content {
    flex: 1.2;
}
.business-benefits-section .why-us-image {
    flex: 0.8;
}

/* --- Stili per Sezione POI (Punti di Interesse) --- */
.poi-section h2,
.poi-section .intro-text {
    text-align: center;
}
.poi-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.poi-list li {
    background-color: #fff;
    padding: 20px;
    border-left: 4px solid #c5a66a;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- Aggiunte per Sezione Comparativa --- */
.comparison-section.all-cards-white .comparison-card {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.comparison-grid.grid-2-cols {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .comparison-grid.grid-2-cols {
        grid-template-columns: 1fr;
    }
}

/* --- Stili per Sezione Pilastri (Pillars) --- */
.pillars-section h2 {
    text-align: center;
}
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.pillar-item h4 {
    font-size: 1.3em;
    color: #1a237e;
    border-left: 3px solid #c5a66a;
    padding-left: 15px;
    margin-bottom: 10px;
}

/* --- Stili per Sezione Hotel --- */
.hotel-section {
    background-color: #f4f4f9;
}
.hotel-section h2 {
    text-align: center;
}
.hotel-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hotel-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}
.hotel-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hotel-item h4 {
    font-size: 1.4em;
    margin-bottom: 5px;
}
.hotel-item h4 a {
    color: #1a237e;
    text-decoration: none;
}
.hotel-item h4 a:hover {
    color: #c5a66a;
    text-decoration: underline;
}
.hotel-item p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* --- Override e Utilità Specifiche --- */
.logistics-section .logistics-content {
    flex: 1.2;
}
.logistics-section .logistics-image {
    flex: 1;
}
.text-left {
    text-align: left !important;
}
@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Stili di Utilità (Spacing, Text Alignment) --- */
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-50 { margin-bottom: 50px !important; }
.pt-60 { padding-top: 60px !important; }

.comparison-section h2,
.faq-section h2 {
    text-align: center;
}
.mt-30 { margin-top: 30px !important; }
.services-section h2 {
    text-align: center;
}

/* --- Stili per Sezione Hubs (es. Neuromed) --- */
.hubs-section {
    background-color: #ffffff;
    padding: 60px 0;
}
.hubs-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.hubs-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.hub-item {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.hub-item h3 {
    margin-top: 0;
    color: #1a237e;
}
@media (max-width: 768px) {
    .hubs-container {
        flex-direction: column;
    }
}

/* --- Variazione Griglia per Lista Destinazioni --- */
.destinations-list.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px 30px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
}
.destinations-list.is-grid li {
    background-color: transparent;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}
.destinations-list.is-grid li:hover {
    background-color: transparent;
}
/* --- Stili per Pagine di Policy (Privacy, Cookie, etc.) --- */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8; /* Aumentata per leggibilità */
}
.policy-content h1 {
    margin-bottom: 20px;
}
.policy-content h2 {
    margin-top: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.6em; /* Leggermente ridotto per equilibrio */
}
.policy-content h3 {
    margin-top: 30px;
    font-size: 1.3em;
}
.policy-content ul {
    padding-left: 25px;
}
.policy-content li {
    margin-bottom: 12px;
}
.cookie-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: 0.95em;
}
.cookie-table th, .cookie-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.cookie-table th {
    background-color: #f4f4f9;
    font-weight: 600;
}
/* Stile per box di avviso nelle pagine di policy */
.policy-content .alert {
    background-color: #fffde7; /* Giallo paglierino chiaro */
    border-left: 5px solid #fdd835; /* Giallo più scuro */
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.policy-content .alert p {
    margin: 10px 0;
}

.policy-content .alert p:first-child {
    margin-top: 0;
}

.policy-content .alert p:last-child {
    margin-bottom: 0;
}