/* Generated by scripts/build-site.py. Edit src/styles instead. */

/* Global Styles */
:root {
    --primary-color: #0757a6;
    --secondary-color: #bd4a00;
    --dark-color: #12283e;
    --light-color: #f3f6f9;
    --white-color: #fff;
    --transition: all 0.3s ease;
}

/* Shared presentation: restrained spacing, legible controls and real photography. */
[hidden] { display: none !important; }
html { scroll-padding-top: 0; }
body { color: #24384b; }
button, input, select, textarea { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.025em; }

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    padding-top: 90px; /* offset for fixed header */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ensure header logo has consistent height */
.main-logo {
    height: 60px;
    width: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

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

.primary-btn:hover,
.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.secondary-btn:hover {
    background-color: #e55f00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

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

nav {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.language-selector {
    margin-left: 30px;
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: 0;
    /* Fill viewport minus fixed header (body has 90px padding-top) */
    height: calc(100vh - 90px);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero .slogan {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Hero responsive adjustments to avoid image cropping on small screens */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* header più alto su mobile */
    }
    .hero {
        /* Riempie completamente su mobile, senza bande */
        background-size: cover;
        background-position: top center;
        min-height: calc(100vh - 100px);
    }
}

@media (min-width: 1600px) {
    .hero {
        background-position: top center;
    }
}

/* Featured Rides Section */
.featured-rides {
    padding: 80px 0;
    background-color: var(--light-color);
}

.rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 45px;
    margin-bottom: 40px;
}

.ride-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.ride-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ride-image {
    height: 230px;
    overflow: hidden;
}

.ride-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ride-card:hover .ride-image img {
    transform: scale(1.1);
}

.ride-info {
    padding: 20px;
    text-align: center;
}

.ride-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ride-info p {
    margin-bottom: 15px;
    color: #666;
}

.center-btn {
    text-align: center;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pillar {
    padding: 30px 20px;
    border-radius: 10px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pillar i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pillar h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* References Preview Section */
.references-preview {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.section-intro {
    max-width: 760px;
    margin: -10px auto 36px;
    color: #666;
    font-size: 1.05rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto 36px;
}

.proof-card {
    padding: 32px 24px;
    background: var(--white-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.proof-value {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}

.proof-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.proof-card p {
    margin: 0;
}

@media (max-width: 768px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.client {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.client:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ccc;
}

.footer-certifications {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bfbfbf;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Section spacing */
.cta-section {
    padding: 60px 0 40px;
}
.cta-section .cta-content {
    text-align: center;
}
.cta-section .cta-content p {
    margin-bottom: 24px;
}
.cta-section .btn,
.cta-section .primary-btn,
.cta-section .btn-primary {
    margin-top: 24px;
    margin-bottom: 20px;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

/* Page Banner (used on References and Contact) */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 120px 0 60px;
    text-align: center;
}
.page-banner h1 {
    font-size: 3rem;
    margin: 0;
    color: var(--white-color);
}
.page-banner p {
    color: var(--white-color);
    opacity: 0.9;
}

/* References: maggiore respiro sotto il banner */
.page-banner + .references-intro {
    margin-top: 24px;
}

/* About Page Styles */
.about-section {
    padding: 100px 0;
}

/* Full width carousel container */
.about-carousel {
    margin-bottom: 60px;
}

.about-text {
    margin-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
}

/* Separazione visiva tra i paragrafi della sezione "La Nostra Storia" */
.about-text p + p {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.history-timeline-section {
    padding: 90px 0;
    background: #f5f8fc;
}

.history-timeline-section .section-title,
.history-timeline-section .section-intro {
    text-align: center;
}

.history-timeline {
    position: relative;
    max-width: 900px;
    margin: 45px auto 0;
    padding: 0;
    list-style: none;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 92px;
    width: 3px;
    background: linear-gradient(var(--primary-color), var(--secondary-color));
}

.history-milestone {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 34px;
}

.history-milestone:last-child {
    margin-bottom: 0;
}

.history-year {
    position: relative;
    z-index: 1;
    align-self: start;
    justify-self: start;
    min-width: 104px;
    padding: 12px 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    font-weight: 700;
}

.history-content {
    padding: 25px 28px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 43, 92, 0.08);
}

.history-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.history-content p {
    margin: 0;
}

@media (max-width: 600px) {
    .history-timeline::before {
        left: 51px;
    }

    .history-milestone {
        grid-template-columns: 104px 1fr;
        gap: 16px;
    }

    .history-year {
        min-width: 86px;
        padding: 10px 8px;
    }

    .history-content {
        padding: 20px;
    }
}

.philosophy-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
}

.philosophy-intro {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #555;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pillar {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.pillar i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.pillar:hover i {
    transform: scale(1.15);
}

.pillar h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.pillar p {
    color: #666;
    line-height: 1.6;
}

.certification-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.15fr);
    gap: 36px;
    align-items: center;
    margin-top: 48px;
    padding: 36px;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--primary-color), #003f89);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 79, 159, 0.2);
}

.certification-kicker {
    display: block;
    margin-bottom: 8px;
    color: #ffbf80;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.certification-heading h3 {
    margin-bottom: 12px;
    color: var(--white-color);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.certification-heading p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.certification-list {
    display: grid;
    gap: 14px;
}

.certification-mark {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    color: #333;
    background: var(--white-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
}

.certification-mark i {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 2rem;
}

.certification-mark strong,
.certification-mark span {
    display: block;
}

.certification-mark strong {
    margin-bottom: 3px;
    color: var(--primary-color);
    font-size: 1.08rem;
}

.certification-mark span {
    font-size: 0.92rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .certification-highlight {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }
}

.philosophy-conclusion {
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 50px;
    color: var(--primary-color);
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-conclusion .btn {
    margin-top: 18px;
    font-style: normal;
}

.team-section {
    padding: 100px 0;
}

.team-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-message p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.location-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.location-info {
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.location-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-details i {
    color: var(--primary-color);
    width: 20px;
}

.location-map iframe {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

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

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-title {
    color: #666;
    font-style: italic;
}

.location-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.location-factory {
    margin: 28px 0 36px;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-factory img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.location-factory figcaption {
    padding: 14px 18px;
    color: #444;
    font-size: 0.95rem;
}

.location-info {
    font-size: 1.1rem;
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Catalog: image-led cards, with accessible inline details for existing models. */
.page-rides .page-header { padding-block: 48px; }
.page-rides .rides-section { padding: 36px 0 64px; }
.catalog-intro { max-width: 690px; margin: 20px 0 0; color: #e5edf5; line-height: 1.8; }
.rides-intro:empty { display: none; }
.ride-category { margin-bottom: 52px; }
.ride-category-title { font-size: clamp(1.5rem, 2.8vw, 2rem); color: #103956; margin-bottom: 26px; line-height: 1.25; letter-spacing: -.025em; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; align-items: start; }
.ride-detail.catalog-card { display: block; min-width: 0; scroll-margin-top: 120px; border-bottom: 1px solid #d7e1ea; padding: 0 0 24px; }
.catalog-card .ride-detail-image { overflow: hidden; border-radius: 8px; background: #edf2f6; }
.catalog-card .ride-detail-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.catalog-card .ride-detail-content { padding: 24px 2px 0; }
.catalog-card .catalog-category { margin: 0 0 10px; font-size: .7rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: #8a420a; }
.catalog-card h3 { margin: 0 0 12px; color: #103956; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.025em; line-height: 1.3; }
.catalog-teaser { color: #506174; font-size: .95rem; line-height: 1.75; min-height: 3.5em; margin: 0 0 22px; max-width: 480px; }
.catalog-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 18px; padding-top: 18px; border-top: 1px solid #d7e1ea; }
.catalog-facts dt { font-size: .75rem; color: #526477; margin-bottom: 5px; }
.catalog-facts dd { color: #103956; font-size: 1rem; font-weight: 600; margin: 0; }
.catalog-explore, .catalog-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 0; color: var(--primary-color); font-size: .88rem; font-weight: 700; cursor: pointer; list-style: none; }
.catalog-explore::after { content: '\2192'; font-size: 1.3rem; }
.catalog-more > summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; }
.catalog-more[open] > summary::after { content: '\2212'; }
.catalog-more > summary::-webkit-details-marker { display: none; }
.catalog-more > summary:focus-visible, .catalog-explore:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 4px; border-radius: 3px; }
.catalog-more > p { margin: 16px 0 20px; font-size: .94rem; color: #506174; line-height: 1.8; }
.ride-specs { padding: 22px; border-radius: 7px; background: #f3f6f9; }
.ride-specs h4 { margin-bottom: 18px; color: #263e54; font-size: .86rem; }
.specs-list { display: grid; gap: 14px; }
.specs-list li { display: flex; align-items: baseline; gap: 10px; font-size: .84rem; color: #506174; }
.specs-list i { color: #5b7892; width: 16px; flex-shrink: 0; }
.catalog-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; aspect-ratio: 4 / 3; border-radius: 8px; padding: 40px; background: #103956; color: #fff; }
.catalog-placeholder span { font-size: .7rem; letter-spacing: .2em; color: #c5d7e7; margin-bottom: 24px; }
.catalog-placeholder strong { max-width: 320px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.rides-filter { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px 24px; align-items: end; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid #d7e1ea; }
.rides-filter-label, .rides-search-label { display: block; color: #526477; font-size: .78rem; margin-bottom: 10px; font-weight: 600; }
.rides-filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.rides-filter-btn { min-height: 44px; padding: 10px 14px; border: 1px solid #b9cde0; border-radius: 5px; background: #fff; color: #164e7f; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.rides-filter-btn:hover, .rides-filter-btn.active { background: #103956; border-color: #103956; color: #fff; }
.rides-filter-btn:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.catalog-search .form-control { min-height: 44px; padding: 10px 12px; font-size: .84rem; }
.rides-filter-result { grid-column: 1 / -1; color: #607184; font-size: .78rem; margin: 0; }
.catalog-empty { padding: 40px 24px; background: #f3f6f9; border-radius: 8px; text-align: center; }
.catalog-empty p { margin-bottom: 20px; }
.ride-detail[hidden], .ride-category[hidden] { display: none; }
.ride-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ride-contact-btn, .ride-sales-btn { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.ride-contact-btn { background: var(--primary-color); color: #fff; }
.ride-contact-btn:hover { background: #003f83; color: #fff; }
.ride-sales-btn { background: #fff; border: 1px solid var(--primary-color); color: var(--primary-color); }
.ride-sales-btn:hover { background: #eaf2fb; color: var(--primary-color); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* Individual product page. */
.product-breadcrumb { padding-block: 30px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: #607184; }
.product-breadcrumb a { color: #164e7f; }
.product-detail { padding-bottom: 64px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.product-hero > * { min-width: 0; }
.product-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.product-intro .eyebrow { color: #8a420a; margin-bottom: 18px; }
.product-intro h1 { color: #103956; font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 24px; }
.product-intro > p { font-size: .95rem; line-height: 1.85; color: #506174; }
.product-intro .product-lead { font-size: 1.2rem; font-weight: 600; color: #263e54; line-height: 1.5; margin-bottom: 16px; }
.product-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; padding: 48px 0 56px; }
.product-highlights > div { padding-top: 22px; border-top: 2px solid #b9cde0; }
.product-highlights strong { display: block; color: #103956; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 10px; }
.product-highlights span { font-size: .88rem; color: #506174; }
.product-technical { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 56px; padding-top: 40px; border-top: 1px solid #d7e1ea; }
.product-technical .eyebrow { color: #8a420a; margin-bottom: 14px; }
.product-technical h2 { font-size: clamp(1.7rem,2.7vw,2.4rem); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 22px; color: #103956; }
.product-technical p { color: #506174; font-size: .9rem; line-height: 1.8; }
.product-specifications { width: 100%; border-collapse: collapse; }
.product-specifications th, .product-specifications td { text-align: left; padding: 17px 18px; border-bottom: 1px solid #d7e1ea; font-size: .9rem; }
.product-specifications th { color: #506174; font-weight: 500; width: 58%; }
.product-specifications td { color: #103956; font-weight: 600; }
.product-specifications tr:nth-child(odd) { background: #f3f6f9; }
.product-bottom { padding-top: 32px; }
.product-video { padding: 40px 0; border-top: 1px solid #d7e1ea; }
.product-video h2 { color: #103956; font-size: clamp(1.7rem,2.7vw,2.4rem); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 18px; }
.product-video > p { color: #506174; font-size: .9rem; line-height: 1.8; }
.product-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 24px; border-radius: 8px; background: #04192b; }
.product-video video:focus-visible { outline: 3px solid #1468a8; outline-offset: 4px; }
.product-video .product-video-caption { margin: 12px 0 0; font-size: .78rem; }
.product-technical-variants { grid-template-columns: 1fr; gap: 28px; }
.product-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.product-variant { min-width: 0; }
.product-variant h3 { color: #103956; font-size: 1.35rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #b9cde0; }
@media (max-width: 1100px) {
    .rides-filter { grid-template-columns: minmax(0, 1fr) 220px; }
    .product-hero { gap: 28px; }
    .product-intro h1 { font-size: 2.25rem; }
}
@media (max-width: 850px) {
    .rides-filter { grid-template-columns: 1fr; }
    .catalog-search { max-width: 380px; }
}
@media (max-width: 750px) {
    .catalog-grid { grid-template-columns: 1fr; gap: 36px; }
    .catalog-teaser { min-height: 0; }
    .product-hero, .product-technical { grid-template-columns: 1fr; gap: 28px; }
    .product-variants { grid-template-columns: 1fr; gap: 36px; }
    .product-intro { grid-row: 1; }
    .product-highlights { gap: 16px; padding-block: 36px; }
    .product-highlights span { font-size: .76rem; }
}
@media (max-width: 600px) {
    .page-rides .rides-section { padding-block: 30px 44px; }
    .catalog-intro { font-size: .93rem; }
    .catalog-card .ride-detail-content { padding-top: 20px; }
    .rides-filter-btn { font-size: .75rem; padding-inline: 10px; }
    .catalog-search { max-width: none; }
    .ride-actions .btn, .cta-actions .btn { width: 100%; }
    .product-breadcrumb { padding-block: 24px; font-size: .72rem; }
    .product-intro h1 { font-size: 2.2rem; }
    .product-highlights strong { font-size: 1.35rem; }
    .product-specifications th, .product-specifications td { padding: 14px 10px; font-size: .8rem; }
    .product-detail { padding-bottom: 44px; }
}

/* References Page Styles */
.references-section {
    padding: 80px 0;
}

.references-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* Spaziatura nella pagina Referenze */
.references-intro h2 {
    margin-bottom: 24px;
}
.references-intro .client-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.testimonials h2 {
    margin-bottom: 24px;
}
.global-presence h2 {
    margin-bottom: 24px;
}

/* References: padding superiore per la sezione "La Nostra Presenza Globale" */
.global-presence {
    padding-top: 24px;
}

.soriani-capabilities {
    padding: 64px 0;
    background: #fff;
}

.installations-map-section {
    padding: 64px 0;
    background: #f3f6f9;
}

.installations-map-heading {
    max-width: 760px;
    margin: 0 0 32px;
    text-align: left;
}

.map-kicker {
    display: block;
    margin-bottom: 14px;
    color: #8a420a;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.installations-map-heading h2 {
    margin-bottom: 16px;
    color: #103956;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.installations-map-heading p {
    margin: 0;
    color: #506174;
    font-size: 1rem;
    line-height: 1.8;
}

.map-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.map-summary > div {
    padding: 18px 0 0;
    text-align: left;
    border-top: 2px solid #b9cde0;
}

.map-summary strong,
.map-summary span {
    display: block;
}

.map-summary strong {
    color: #103956;
    font-size: clamp(1.6rem, 2.7vw, 2.2rem);
    line-height: 1.25;
    font-variant-numeric: lining-nums tabular-nums;
}

.map-summary span {
    margin-top: 8px;
    color: #506174;
    font-size: 0.85rem;
}

.installations-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: stretch;
}

.world-map-card,
.map-detail-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
}

.world-map-card {
    padding: 20px;
}

.map-select-wrap {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.map-select-wrap label {
    color: #263e54;
    font-size: .86rem;
    font-weight: 600;
}

.map-select-wrap select {
    min-width: 230px;
    min-height: 44px;
    padding: 8px 34px 8px 12px;
    border: 1px solid #c8d7e5;
    border-radius: 8px;
    background: #fff;
    color: #263746;
}

.world-map-canvas {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    border: 1px solid #dce8f2;
    border-radius: 6px;
    background: #eaf3fb;
}

.world-map-canvas > img,
.world-map-markers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.world-map-canvas > img {
    display: block;
}

.world-marker {
    position: absolute;
    display: grid;
    place-items: center;
    width: var(--marker-size);
    height: var(--marker-size);
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    line-height: 1;
    transform: translate(-50%, -50%);
    color: #fff;
    background: var(--secondary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(131, 54, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.world-marker span {
    font-size: clamp(0.62rem, 1.15vw, 0.78rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.world-marker:hover,
.world-marker:focus-visible,
.world-marker.active {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(243, 112, 33, 0.23), 0 6px 16px rgba(0, 69, 133, 0.3);
    z-index: 4;
}

.map-help {
    margin: 14px 0 0;
    color: #506174;
    font-size: .82rem;
    line-height: 1.7;
    text-align: left;
}

.map-detail-panel {
    max-height: 570px;
    padding: 24px;
    overflow-y: auto;
    border-top: 3px solid #b9cde0;
}

.map-detail-placeholder {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    color: #506174;
    font-size: .92rem;
    line-height: 1.8;
}

.map-detail-placeholder i {
    margin-bottom: 18px;
    color: #8a420a;
    font-size: 1.65rem;
}

.map-detail-panel h3 {
    margin-bottom: 12px;
    color: #103956;
    font-size: 1.4rem;
    line-height: 1.3;
}

.map-detail-panel h4 {
    margin: 22px 0 8px;
    color: #273849;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-detail-count {
    color: var(--secondary-color);
    font-weight: 700;
}

.map-detail-years {
    color: #526273;
}

.map-model-list {
    display: grid;
    gap: 9px;
}

.map-model-list li {
    padding: 12px 0;
    border-bottom: 1px solid #d7e1ea;
}

.map-model-list strong,
.map-model-list span {
    display: block;
}

.map-model-list strong {
    color: #2a3a49;
    font-size: 0.9rem;
}

.map-model-list span {
    margin-top: 3px;
    color: #6b7885;
    font-size: 0.8rem;
}

.map-source {
    margin: 18px 0 0;
    max-width: 960px;
    color: #5c6c7a;
    font-size: .75rem;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1100px) {
    .installations-map-layout {
        grid-template-columns: 1fr;
    }

    .map-detail-panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .installations-map-section {
        padding: 44px 0;
    }

    .map-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    #mapYearsRange {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .world-map-card {
        padding: 12px;
    }

    .map-select-wrap {
        display: block;
    }

    .map-select-wrap label {
        display: block;
        margin-bottom: 7px;
    }

    .map-select-wrap select {
        width: 100%;
        min-width: 0;
    }

    .world-marker span {
        display: none;
    }

    .world-marker {
        width: calc(var(--marker-size) * .55);
        height: calc(var(--marker-size) * .55);
        min-width: 14px;
        min-height: 14px;
        border-width: 2px;
        box-shadow: 0 2px 5px rgba(131, 54, 0, .2);
    }
}

.soriani-capabilities h2 {
    color: #103956;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.soriani-capabilities h2,
.soriani-capabilities .section-intro {
    text-align: left;
    max-width: 760px;
    margin-left: 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.capability-card {
    padding: 24px 0 0;
    border-top: 2px solid #b9cde0;
}

.capability-card i {
    display: inline-block;
    margin-bottom: 18px;
    color: #103956;
    font-size: 1.65rem;
}

.capability-card h3 {
    margin-bottom: 12px;
    color: #263e54;
    font-size: 1.1rem;
}

.capability-card p {
    margin: 0;
    color: #506174;
    font-size: .92rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .soriani-capabilities { padding: 44px 0; }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.clients-list {
    margin-bottom: 60px;
}

.client-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo {
    text-align: center;
}

.client-logo img {
    max-width: 200px;
    max-height: 100px;
}

.client-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonials {
    padding: 60px 0;
    background-color: var(--light-color);
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Contact Page – Departments Section */
.departments {
    padding: 64px 0;
}
.departments h2 {
    margin-bottom: 24px; /* spazio sotto "I Nostri Dipartimenti" */
}
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
}
.department-card {
    padding: 24px 0 0;
}
.contact-paths {
    background: #f3f6f9;
}
.contact-paths .section-intro {
    text-align: left;
    margin-left: 0;
    color: #506174;
    font-size: 1rem;
    margin-bottom: 28px;
}
.contact-paths .department-card {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #b9cde0;
}
.contact-paths .department-card p {
    flex-grow: 1;
}
.contact-paths .department-icon {
    color: #103956;
    font-size: 1.65rem;
    margin-bottom: 18px;
}
.department-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: #263e54;
}
.department-card p {
    margin-bottom: 14px;
    font-size: .92rem;
    line-height: 1.8;
    color: #506174;
}

.department-card .text-link { align-self: flex-start; }

/* Contact – pulsante Supporto Tecnico a larghezza piena */
.departments .department-card .btn,
.departments .department-card .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 8px; /* leggero respiro sopra il bottone */
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

/* Leggera separazione tra header/banner e il box "Inviaci un Messaggio" */
.contact-info {
    padding: 64px 0;
}

/* Layout per la pagina contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Allineamento al markup corrente (contact-grid) */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    gap: 56px;
    align-items: start;
}

.page-contact section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #103956;
    margin-bottom: 24px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-form {
    min-width: 0;
    background: #f3f6f9;
    padding: 32px;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
}

.page-contact .contact-form h2 { grid-column: 1 / -1; font-size: 1.5rem; margin-bottom: 0; }
.contact-direct .eyebrow { color: #8a420a; margin-bottom: 16px; }
.contact-direct-intro { color: #506174; font-size: .95rem; line-height: 1.8; }
.contact-direct .contact-details { margin: 28px 0 0; padding-top: 24px; border-top: 2px solid #b9cde0; }
.contact-direct .contact-details p { flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 16px; font-size: .9rem; color: #506174; }
.contact-direct .contact-details i { width: 18px; margin: 0; color: #5b7892; }
.contact-direct .contact-details a { overflow-wrap: anywhere; min-width: 0; }
.contact-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form .form-group { margin: 0; min-width: 0; }
.contact-form .form-help, .contact-form .form-wide, .contact-form .formStatus { grid-column: 1 / -1; }
.contact-form .form-help { margin-bottom: 4px; }
.contact-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; }

.page-contact .location-section { padding: 64px 0; background: #f3f6f9; }
.page-contact .location-content { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 36px; }
.page-contact .location-factory { margin: 0; background: none; border-radius: 0; box-shadow: none; }
.page-contact .location-factory img { aspect-ratio: 16 / 10; border-radius: 8px; }
.page-contact .location-factory figcaption { padding: 12px 0 0; color: #506174; font-size: .8rem; line-height: 1.7; }
.page-contact .location-map iframe { height: 340px; border-radius: 0; box-shadow: none; }
.page-contact .map-consent { min-height: 340px; }

@media (max-width: 1000px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .contact-direct .contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
    .contact-direct .contact-details p { margin: 0; }
}

@media (max-width: 600px) {
    .contact-info, .departments, .page-contact .location-section { padding: 44px 0; }
    .contact-form { padding: 24px 20px; }
    .contact-form form, .contact-direct .contact-details, .page-contact .location-content { grid-template-columns: 1fr; }
    .page-contact .location-map iframe, .page-contact .map-consent { min-height: 280px; height: 280px; }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Campi del form: meno squadrati e più proporzionati */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    transition: var(--transition);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.form-help {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.92rem;
}

.formStatus {
    padding: 12px 15px;
    border-left: 4px solid #25843a;
    border-radius: 4px;
    background: #edf8ef;
    color: #174f24;
}

.formStatus.error {
    border-left-color: #b42318;
    background: #fff1f0;
    color: #7a1710;
}

.contact-form button[disabled] {
    cursor: wait;
    opacity: 0.7;
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.form-group.required label::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .slogan {
        font-size: 2.5rem;
    }

    .about-content,
    .location-content,
    .ride-detail,
    .contact-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .ride-detail:nth-child(even) {
        direction: ltr;
    }

    .client-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 12px 7px;
    }

    nav {
        position: relative;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white-color);
        width: 250px;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav li {
        margin: 0 0 15px 0;
    }

    .main-nav a,
    .lang-btn,
    .cookie-settings-btn {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .lang-btn {
        min-width: 44px;
        justify-content: center;
    }

    .language-selector {
        margin-left: 20px;
    }

    .hero .slogan {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero .slogan {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.cookie-btn.accept:hover {
    background-color: #e55f00;
}

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

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

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-settings-btn {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 10px 16px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }
}

/* Company gallery: photographs, captions and controls have separate space. */
.carousel-container {
    max-width: 640px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
    background: #fff;
}
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #eaf0f5;
}
.carousel-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 16px 24px;
    color: #263e54;
    font-size: .94rem;
    line-height: 1.6;
    text-align: center;
}
.carousel-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    margin-inline: auto;
    padding: 0 12px 16px;
}
.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c8d6e3;
    border-radius: 50%;
    background: #f3f6f9;
    color: #103956;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color .2s ease, color .2s ease;
}
.carousel-btn:hover { background: #103956; color: #fff; }
.carousel-dots { display: flex; justify-content: center; }
.carousel-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.carousel-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8a9eb0;
}
.carousel-dot.active::before { background: #103956; width: 12px; height: 12px; }
.carousel-dot:hover::before { background: #103956; }
@media (max-width: 440px) {
    .carousel-dot { width: 24px; }
    .carousel-caption { padding: 14px 16px; font-size: .88rem; min-height: 88px; }
}

/* Editorial refinement, shared across all six pages. */
.container { max-width: 1240px; padding-inline: 32px; }
header { padding: 15px 0; background: #fff; box-shadow: 0 1px 0 #dde5ed; }
.main-logo { object-fit: contain; display: block; }
.main-nav a { font-size: .9rem; }
.lang-btn { font-size: .8rem; border-radius: 5px; }
.lang-btn.active { background: #edf4fa; }
.btn { min-height: 48px; padding: 13px 23px; border-radius: 6px; font-size: .83rem; letter-spacing: .025em; text-transform: none; line-height: 1.5; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-eyebrow { margin-bottom: 14px; text-align: center; color: #8a420a; }
.hero { position: relative; justify-content: flex-start; text-align: left; height: auto; min-height: min(760px, calc(100svh - 90px)); padding: 90px max(32px, calc((100vw - 1176px) / 2)); background-image: linear-gradient(90deg, rgba(5,25,47,.92), rgba(5,25,47,.56) 57%, rgba(5,25,47,.14)), url('../images/hero-background.webp'); background-position: center 38%; }
.hero-content { max-width: 780px; padding: 0; }
.hero .eyebrow { color: #e0eaf4; margin-bottom: 26px; }
.hero .slogan { font-size: clamp(2.6rem, 4.5vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 26px; }
.hero-description { max-width: 610px; font-size: 1.08rem; line-height: 1.8; color: #edf2f8; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .primary-btn { background: #fff; color: #104a81; }
.hero .primary-btn:hover { background: #eaf2fb; }
.hero-secondary { color: #fff; border: 1px solid #9fb2c5; background: transparent; }
.hero-secondary:hover { color: #fff; background: #ffffff18; }
.hero-capabilities { margin-top: 44px; padding-top: 20px; border-top: 1px solid #ffffff45; max-width: 610px; color: #d8e3ee; font-size: .78rem; letter-spacing: .025em; }
.home-launch-button:focus-visible { outline: 3px solid #ffd0a8; outline-offset: 5px; }
.home-launch { padding-block: 64px; background: #f3f6f9; }
.home-launch-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; overflow: hidden; border-radius: 10px; background: #103956; }
.home-launch-photo { min-width: 0; margin: 0; }
.home-launch-photo img { display: block; width: 100%; height: auto; }
.home-launch-copy { min-width: 0; padding: 36px 40px; }
.home-launch-copy .eyebrow { margin-bottom: 16px; color: #d7e6f2; font-size: .7rem; line-height: 1.7; }
.home-launch-copy h2 { color: #fff; font-size: clamp(2.4rem, 4.5vw, 3.4rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 20px; }
.home-launch-description { color: #e6eef5; font-size: 1rem; line-height: 1.8; margin-bottom: 28px; }
.home-launch-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 20px; margin-bottom: 28px; border-top: 1px solid #ffffff40; }
.home-launch-facts dt { color: #c5d7e7; font-size: .77rem; margin-bottom: 5px; }
.home-launch-facts dd { color: #fff; font-size: 1.45rem; font-weight: 600; margin: 0; }
.home-launch-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; background: #fff; color: #103956; }
.home-launch-button:hover { background: #eaf2fb; color: #103956; }
.section-title { color: var(--dark-color); font-size: clamp(1.8rem, 3vw, 2.5rem); padding-bottom: 0; margin-bottom: 38px; }
.section-title::after { display: none; }
.featured-rides, .about-preview, .references-preview { padding-block: 64px; }
.page-index .section-title { text-align: left; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 28px; }
.page-index .section-eyebrow, .page-index .center-btn { text-align: left; }
.rides-grid { gap: 26px; }
.ride-card { border: 1px solid #dce5ee; border-radius: 10px; box-shadow: none; }
.ride-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #153a5912; }
.ride-image { height: 270px; }
.ride-card:hover img { transform: scale(1.035); }
.ride-info { padding: 26px; text-align: left; }
.ride-info h3 { font-size: 1.3rem; }
.ride-info p { min-height: 78px; color: #506174; font-size: .92rem; }
.text-link { display: inline-block; padding-block: 9px; color: var(--primary-color); font-size: .87rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.page-index .about-content { max-width: none; margin: 0; text-align: left; min-width: 0; }
.home-production { margin: 0; min-width: 0; }
.home-production img { display: block; width: 100%; height: auto; border-radius: 10px; }
.home-production figcaption { margin-top: 12px; color: #607184; font-size: .8rem; line-height: 1.6; }
.page-index .about-content > p { font-size: 1rem; color: #506174; line-height: 1.8; margin: 0 0 28px; }
.page-index .about-content > .eyebrow { font-size: .76rem; color: #8a420a; margin-bottom: 14px; }
.page-index .about-actions { justify-content: flex-start; }
.page-index .references-preview { text-align: left; background: #f3f6f9; }
.page-index .section-intro { margin: 0 0 32px; color: #506174; font-size: 1rem; }
.page-index .proof-grid { gap: 36px; }
.page-index .proof-card { padding: 24px 0 0; border: 0; border-top: 2px solid #b9cde0; border-radius: 0; background: none; text-align: left; box-shadow: none; }
.page-index .proof-value { color: #103956; font-size: clamp(2.2rem, 4vw, 3rem); }
.page-index .proof-card h3 { color: #263e54; font-size: 1.05rem; }
.page-index .proof-card p { color: #506174; font-size: .91rem; line-height: 1.7; }
.pillar { border-radius: 8px; box-shadow: none; background: #f3f6f9; border-top: 2px solid #b9cde0; padding: 30px 24px; }
.pillar:hover { transform: none; box-shadow: none; }
.pillar i { font-size: 1.8rem; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { font-size: .9rem; margin-bottom: 0; }
.proof-card { border: 1px solid #dce5ee; border-top: 3px solid var(--secondary-color); box-shadow: none; }
footer { background: #10263c; padding-top: 60px; }
.footer-content { gap: 28px; }
.footer-content p, .footer-content li, .cookie-settings-btn { font-size: .85rem; }
.footer-contact p { overflow-wrap: anywhere; align-items: baseline; }
.footer-bottom { color: #c5d2df; font-size: .75rem; }
.page-header, .page-banner { padding: 66px 0; text-align: left; background: #103956; }
.page-header h1, .page-banner h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.page-banner p { margin-top: 16px; max-width: 720px; line-height: 1.7; }
.page-header + section, .page-banner + section { padding-top: 58px; }
.cta-section { padding: 64px 0; background: #f3f6f9; }
.cta-content { max-width: 860px; margin-inline: auto; }
.cta-content h2 { font-size: clamp(1.7rem,3vw,2.3rem); }
.cta-content p { margin-top: 16px; color: #516477; }
.cta-section .btn { margin-block: 0; }
/* About: company introduction first, followed by history and workshop evidence. */
.page-about .about-section, .page-about .about-production, .page-about .philosophy-section { padding-block: 64px; }
.about-intro-grid, .about-production-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.page-about .about-text { margin: 0; max-width: none; }
.page-about .about-text h2, .about-production-copy h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; color: var(--dark-color); margin-bottom: 24px; }
.page-about .about-text h2::after { display: none; }
.page-about .about-text p, .about-production-copy > p { font-size: .98rem; color: #506174; line-height: 1.8; }
.page-about .about-text .about-lead { font-size: 1.12rem; color: #263e54; }
.page-about .about-text p + p { border: 0; padding-top: 0; }
.page-about .about-text p:last-child { margin-bottom: 0; }
.page-about .about-text .eyebrow, .about-production-copy .eyebrow { font-size: .76rem; color: #8a420a; margin-bottom: 16px; }
.about-headquarters { margin: 0; }
.about-headquarters img { display: block; width: 100%; height: auto; border-radius: 10px; }
.about-headquarters figcaption { margin-top: 12px; color: #607184; font-size: .8rem; line-height: 1.6; }
.page-about .section-title { text-align: left; margin-bottom: 28px; }
.page-about .history-timeline-section { padding-block: 48px; background: #f3f6f9; }
.page-about .history-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; max-width: none; margin: 0; }
.page-about .history-timeline::before { display: none; }
.page-about .history-milestone { display: block; margin: 0; padding: 20px 0 0; border-top: 2px solid #b9cde0; }
.page-about .history-year { display: block; min-width: 0; padding: 0; margin-bottom: 12px; border-radius: 0; background: none; text-align: left; color: #103956; font-size: 1.7rem; }
.page-about .history-content { padding: 0; background: none; box-shadow: none; }
.page-about .history-content h3 { font-size: 1.05rem; }
.page-about .history-content p { font-size: .91rem; line-height: 1.7; color: #506174; }
.about-processes { margin: 28px 0 0; padding: 0; list-style: none; }
.about-processes li { padding: 16px 0; border-top: 1px solid #d7e1ea; }
.about-processes strong, .about-processes span { display: block; }
.about-processes strong { color: #263e54; font-size: .96rem; margin-bottom: 4px; }
.about-processes span { color: #506174; font-size: .9rem; line-height: 1.7; }
.page-about .about-carousel { margin: 0; min-width: 0; }
.page-about .philosophy-section { background: #f3f6f9; }
.page-about .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.page-about .pillar { padding: 0; border: 0; background: none; text-align: left; }
.page-about .pillar i { margin-bottom: 14px; }
.page-about .pillar:hover i { transform: none; }
.page-about .certification-highlight { background: #103956; border-radius: 10px; box-shadow: none; }
.page-about .philosophy-conclusion { text-align: left; font-style: normal; padding: 0; margin: 24px 0 0; max-width: none; background: none; }
.page-about .philosophy-conclusion .btn { margin: 0; }
.page-about .team-section { padding-block: 36px; }
.page-about .team-section > .container { display: grid; grid-template-columns: minmax(180px, .5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.page-about .team-section h2, .page-about .location-section h2 { font-size: 1.5rem; margin-bottom: 20px; }
.page-about .team-message { text-align: left; max-width: none; margin: 0; padding: 0; color: #506174; background: none; border-radius: 0; box-shadow: none; }
.page-about .team-message p { font-size: .95rem; }
.page-about .team-message .text-link { margin-top: 8px; }
.page-about .location-section { padding-block: 36px; }
.page-about .location-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.page-about .location-info { padding: 0; box-shadow: none; border: 0; background: none; }
.page-about .location-info p { font-size: .94rem; }
.page-about .location-info .contact-details { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.about-map { min-width: 0; border-block: 1px solid #c8d6e3; }
.about-map summary { padding: 16px 4px; color: #103956; font-size: .94rem; font-weight: 600; cursor: pointer; }
.about-map summary:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.page-about .location-map { margin-bottom: 16px; }
.page-about .location-map iframe { border-radius: 0; box-shadow: none; }
.location-map { box-shadow: none; border: 1px solid #d7e1ea; background: #fff; }
.location-map iframe { display: block; border: 0; }
.location-content > *, .contact-grid > *, .installations-map-layout > * { min-width: 0; }
.location-info .contact-details p { flex-wrap: wrap; gap: 4px 8px; }
.location-info .contact-details a { overflow-wrap: anywhere; min-width: 0; }
.location-info .contact-details i { margin-right: 0; }
.map-consent { min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 32px; }
.map-consent .eyebrow { color: #687f93; }
.map-consent p { font-size: .93rem; }
.form-control { border-radius: 6px; border-color: #acbdcc; }
.form-group label { font-size: .89rem; font-weight: 600; }
.form-help { line-height: 1.8; }
.map-detail-panel { scroll-margin-top: 110px; }
.map-model-list li strong { overflow-wrap: anywhere; }
.page-privacy-policy section:not(.page-header) { line-height: 1.8; }
.page-privacy-policy section h2 { margin-top: 26px; }
select:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.cookie-banner { background: #10263c; border: 1px solid #607489; font-size: .83rem; }
.cookie-banner a { color: #ffd0a8; }
.cookie-btn { min-height: 44px; }
.cookie-btn.decline { border: 1px solid #9fb0c1; }
.cookie-settings-btn { display: block; margin: 10px 0 0; }
#contactForm, #main-content, .ride-category { scroll-margin-top: 112px; }
/* Wide screens: preserve the full height of the 4:3 photograph.
   The dark left area holds the copy; the ride remains visible on the right. */
@media (min-width: 1100px) {
    .hero {
        padding: 70px max(40px, calc((100vw - 1400px) / 2));
        background-color: #05192f;
        background-image: linear-gradient(90deg, #05192f 20%, rgba(5,25,47,.96) 36%, rgba(5,25,47,.65) 49%, rgba(5,25,47,.12) 68%, transparent 82%), url('../images/hero-background.webp');
        background-size: 100% 100%, auto 100%;
        background-position: center, right center;
    }
    .hero-content { max-width: min(540px, 43vw); }
    .hero .slogan { font-size: clamp(2.6rem, 3.2vw, 3.35rem); }
}
@media (max-width: 1050px) {
    .main-nav li { margin-left: 18px; }
    .language-selector { margin-left: 16px; }
    .rides-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
    .ride-image { height: 230px; }
    .ride-info { padding: 22px; }
}
@media (max-width: 850px) {
    .home-launch-panel { grid-template-columns: minmax(0, 1fr); }
    .home-launch > .container { max-width: 644px; }
    .home-about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-production { width: 100%; max-width: 640px; }
    .page-index .featured-rides > .container { max-width: 644px; }
    .main-nav { position: absolute; top: calc(100% + 15px); right: 0; display: flex; flex-direction: column; width: min(300px,calc(100vw - 40px)); padding: 18px 24px; border: 1px solid #d7e1ea; border-radius: 8px; background: #fff; visibility: hidden; opacity: 0; transform: translateY(10px); }
    .main-nav.active { opacity: 1; visibility: visible; transform: none; }
    .main-nav li { margin: 0; }
    .main-nav a { display: flex; min-height: 48px; align-items: center; }
    nav { position: relative; }
    .mobile-menu-btn { display: flex; height: 44px; width: 44px; padding: 12px 8px; }
    .lang-btn { min-width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .language-selector { margin-left: 0; margin-right: 6px; }
    .main-nav a::after { bottom: 7px; }
    .rides-grid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
    .ride-image { height: 300px; }
    .ride-info p { min-height: 0; }
    .location-content { grid-template-columns: minmax(0, 1fr); }
    .page-about .pillars { grid-template-columns: 1fr; }
    .page-about .certification-highlight { grid-template-columns: 1fr; }
    .about-intro-grid, .about-production-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .about-headquarters, .page-about .about-carousel { width: 100%; max-width: 640px; }
    .page-about .history-timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .page-about .history-milestone { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; }
    .page-about .history-year { margin: 0; }
}
@media (max-width: 600px) {
    .home-launch { padding-block: 40px; }
    .home-launch-copy { padding: 28px 24px; }
    .home-launch-description { font-size: .94rem; }
    .home-launch-button { width: 100%; }
    body { padding-top: 84px; }
    .map-detail-panel { max-height: none; overflow: visible; }
    header { padding-block: 12px; }
    .container { padding-inline: 20px; }
    .main-logo { width: 155px; height: 56px; }
    .hero { min-height: 680px; min-height: calc(100svh - 84px); padding: 62px 24px; background-position: 60% center; }
    .hero .slogan { font-size: clamp(2.3rem,9.8vw,3rem); }
    .hero-description { font-size: .96rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-capabilities { font-size: .71rem; line-height: 1.9; margin-top: 32px; }
    .featured-rides, .about-preview, .references-preview { padding-block: 44px; }
    .page-header, .page-banner { padding: 46px 0; }
    .page-banner p { font-size: .93rem; }
    .pillars { grid-template-columns: 1fr; }
    .ride-image { height: 255px; }
    .certification-highlight { grid-template-columns: 1fr; padding: 24px; }
    .certification-mark { padding: 16px 12px; gap: 10px; }
    .certification-mark strong { font-size: .94rem; }
    .page-about .about-section, .page-about .about-production, .page-about .history-timeline-section, .page-about .philosophy-section { padding-block: 44px; }
    .page-about .history-milestone { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .page-about .history-year { font-size: 1.3rem; }
    .page-about .team-section > .container, .page-about .location-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .map-consent { padding: 24px; }
    .cookie-banner { bottom: 10px; left: 10px; right: 10px; padding: 18px; text-align: left; max-height: calc(100svh - 24px); overflow-y: auto; }
    .cookie-banner p { min-width: 0; }
    .cookie-buttons { width: 100%; }
    .cookie-btn { flex: 1; }
}
@media (max-width: 360px) {
    .main-logo { width: 132px; }
    header .container { padding-inline: 14px; }
    .lang-btn { min-width: 34px; margin-left: 0; padding-inline: 6px; }
}
