/* ========================================
   KSN TRASPORTI
   MAIN STYLESHEET
======================================== */


/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}


/* ========================================
   HEADER
======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #000002;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    transition:
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.site-header.scrolled {
    background: #000002;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

.header-container {
    width: min(1200px, 90%);
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    width: auto;
    height: 62px;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    padding: 8px 0;

    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #c8102e;

    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

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


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    border: none;
    background: transparent;

    color: #c8102e;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 20px;

    background-image: url("../images/camion1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.52);
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(900px, 100%);

    text-align: center;
}

.hero-label {
    display: inline-block;

    margin-bottom: 20px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 900px;

    margin: 0 auto 25px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 800;
}

.hero h1 span {
    display: block;
}

.hero p {
    max-width: 700px;

    margin: 0 auto 35px;

    font-size: 19px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    flex-wrap: wrap;
}

.hero-location {
    margin-top: 28px;

    font-size: 15px;
    font-weight: 500;
}


/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border-radius: 4px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: #c8102e;
    color: #ffffff;
    border: 2px solid #c8102e;
}

.btn-primary:hover {
    background: #a80d26;
    border-color: #a80d26;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #111111;
}

.btn-light {
    background: #ffffff;
    color: #111111;
    border: 2px solid #ffffff;
}

.btn-light:hover {
    background: #eeeeee;
}

/* ========================================
   BUTTON TOUCH EFFECT
======================================== */

.btn.touch-active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* ========================================
   SECTION COMMON
======================================== */

section {
    scroll-margin-top: 90px;
}

.section-heading {
    max-width: 750px;

    margin: 0 auto 60px;

    text-align: center;
}

.section-label {
    display: block;

    margin-bottom: 12px;

    color: #c8102e;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2,
.about-content h2,
.why-content h2 {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;

    margin-bottom: 20px;
}

.section-heading p {
    color: #666666;

    font-size: 17px;
}


/* ========================================
   SERVICES
======================================== */

.services {
    padding: 110px 5%;

    background: #111111;
    color: #ffffff;
}

.services .section-heading p {
    color: #bbbbbb;
}

.services-grid {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;

    padding: 40px 30px;

    background: #242424;

    border: 1px solid #363636;
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #c8102e;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}



.service-card:hover {
    transform: translateY(-8px);

    background: #2c2c2c;

    border-color: #c8102e;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}


.service-icon {
    margin-bottom: 20px;

    font-size: 38px;
}

.service-card h3 {
    margin-bottom: 12px;

    font-size: 21px;
}

.service-card p {
    color: #bbbbbb;

    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   RED BANNER
======================================== */
.red-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    width: 100%;

    background: #c8102e;

    color: #ffffff;
}

.banner-item {
    min-height: 135px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 25px;

    text-align: left;

    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.banner-icon {
    flex-shrink: 0;

    font-size: 34px;
}

.banner-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 17px;
}

.banner-item p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    line-height: 1.45;
}



/* ========================================
   WHY US
======================================== */

.why-us {
    width: min(1300px, 90%);

    margin: 0 auto;

    padding: 110px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.why-image img {
    width: 100%;
    height: 520px;

    object-fit: cover;

    border-radius: 6px;

    display: block;
}

.why-content > p {
    max-width: 600px;

    margin-bottom: 35px;

    color: #666666;

    font-size: 17px;
    line-height: 1.7;
}

.why-list {
    display: flex;
    flex-direction: column;
}

.why-item {
    display: flex;
    gap: 20px;

    padding: 22px 0;

    border-top: 1px solid #dddddd;

    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateX(6px);
}

.why-item > span {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c8102e;
    color: #ffffff;

    border-radius: 50%;

    font-size: 17px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.why-item:hover > span {
    transform: scale(1.1);
    background: #111111;
}


.why-item h3 {
    margin-bottom: 5px;

    font-size: 19px;
}

.why-item p {
    color: #666666;

    font-size: 15px;
}

/* Effetto touch sulle voci "Perché scegliere KSN" */

.why-item.touch-active {
    transform: translateX(6px);
}

.why-item.touch-active > span {
    transform: scale(1.1);
    background: #111111;
}


/* ========================================
   ABOUT
======================================== */

.about {
    padding: 110px 5%;

    background: #f3f3f3;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about-content {
    max-width: 650px;

    margin-left: auto;
}

.about-content p {
    margin-bottom: 20px;

    color: #555555;

    font-size: 17px;
    line-height: 1.7;
}

.about-content .btn {
    margin-top: 15px;
}

.about-image {
    max-width: 650px;
}

.about-image img {
    width: 100%;
    height: 470px;

    display: block;

    object-fit: cover;

    border-radius: 6px;
}


/* ========================================
   EMERGENCY H24
======================================== */

.emergency {
    position: relative;

    padding: 100px 20px;

    background:
        linear-gradient(rgba(200, 16, 46, 0.94), rgba(200, 16, 46, 0.94)),
        url("../images/camion1.png");

    background-size: cover;
    background-position: center;

    color: #ffffff;

    text-align: center;
}

.emergency-content {
    max-width: 750px;

    margin: 0 auto;
}

.emergency-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    font-size: 32px;
}

.emergency-actions {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;

    border: 2px solid #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #111111;
}



.emergency-label {
    display: block;

    margin-bottom: 15px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;
}

.emergency h2 {
    margin-bottom: 18px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
}

.emergency p {
    max-width: 650px;

    margin: 0 auto 35px;

    font-size: 18px;
    line-height: 1.7;
}


/* ========================================
   CONTACT / QUOTE
======================================== */

.contact {
    padding: 110px 5%;

    background: #ffffff;
}

.quote-form {
    width: min(1000px, 100%);

    margin: 0 auto;

    padding: 45px;

    background: #f3f3f3;

    border-radius: 8px;
}
.route-grid {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 70px 1fr;

    align-items: center;

    gap: 20px;

    margin-bottom: 35px;
}

.route-box {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.route-box:focus-within {
    border-color: #c8102e;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.route-header {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.route-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #111111;
    color: #ffffff;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

.route-label {
    display: block;

    margin-bottom: 3px;

    color: #c8102e;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.route-header h3 {
    margin: 0;

    font-size: 20px;
    line-height: 1.25;
}

.route-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

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


.input-group label {
    margin-bottom: 6px;

    color: #444444;

    font-size: 13px;
    font-weight: 700;
}

.route-arrow {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: #c8102e;
    color: #ffffff;

    border-radius: 50%;

    font-size: 28px;
    font-weight: 300;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 15px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid #cccccc;
    border-radius: 4px;

    background: #ffffff;

    color: #171717;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.quote-form input:focus,
.quote-form textarea:focus {
    border-color: #c8102e;

    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.quote-form textarea {
    display: block;

    min-height: 160px;

    margin-bottom: 20px;

    resize: vertical;
}

.privacy-checkbox {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.privacy-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #c8102e;
}

.privacy-checkbox a {
    color: #c8102e;
    text-decoration: underline;
}

.privacy-checkbox a:hover {
    color: #111;
}

.form-submit {
    border: none;

    width: 100%;
}


/* ========================================
   FINAL CTA
======================================== */

.final-cta {
    padding: 90px 20px;

    background: #111111;

    color: #ffffff;

    text-align: center;
}

.final-cta h2 {
    margin-bottom: 15px;

    font-size: clamp(34px, 5vw, 50px);
}

.final-cta p {
    margin-bottom: 28px;

    color: #bbbbbb;

    font-size: 17px;
}


/* ========================================
   FOOTER
======================================== */

.footer {
    padding: 75px 5% 0;

    background: #080808;

    color: #ffffff;
}

.footer-content {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 55px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 20px;
}

.footer-logo img {
    display: block;

    width: auto;
    height: 60px;
}

.footer h3 {
    margin-bottom: 20px;

    color: #c8102e;

    font-size: 18px;
}

.footer p {
    color: #aaaaaa;

    line-height: 1.7;
}

.footer a {
    color: #aaaaaa;

    text-decoration: none;

    transition: color 0.2s ease;
}

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

.footer-links a {
    display: block;

    margin-bottom: 12px;
}

.footer-bottom {
    padding: 25px 0;

    border-top: 1px solid #292929;

    text-align: center;
}

.footer-bottom p {
    font-size: 13px;

    color: #777777;
}

/* =========================
   DATI AZIENDALI FOOTER
========================= */

.footer-company-data {
    margin-top: 20px;
}

.footer-company-data p {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.footer-company-data strong {
    color: #fff;
    font-weight: 600;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

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

    .why-us,
    .about {
        gap: 50px;
    }

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

    .footer-company {
        grid-column: 1 / -1;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    /* HEADER */

    .header-container {
        min-height: 72px;
        width: calc(100% - 40px);
    }

    .logo img {
        height: 52px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 20px 20px;

        background: #111111;

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 16px 5px;

        border-bottom: 1px solid #333333;

        color: #ffffff;

        font-size: 16px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a::after {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: min(100%, 330px);
    }


    /* SERVICES */

    .services {
        padding: 80px 20px;
    }

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


    /* BANNER */

    .red-banner {
        grid-template-columns: 1fr 1fr;
    }

    .banner-item {
        min-height: 100px;

        padding: 15px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .banner-item:nth-child(2) {
        border-right: none;
    }

    .banner-item:nth-child(3),
    .banner-item:nth-child(4) {
        border-bottom: none;
    }


    /* WHY US */

    .why-us {
        width: 100%;

        padding: 80px 20px;

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .why-image img {
        height: 330px;
    }


    /* ABOUT */

    .about {
        padding: 80px 20px;

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-content {
        margin-left: 0;
    }

    .about-image {
        max-width: none;
    }

    .about-image img {
        height: 330px;
    }


    /* EMERGENCY */

    .emergency {
        padding: 80px 20px;
    }


    /* CONTACT */

    .contact {
        padding: 80px 20px;
    }

    .quote-form {
        padding: 25px 18px;
    }

    .route-grid,
.form-grid {
    grid-template-columns: 1fr;
}

.route-arrow {
    transform: rotate(90deg);

    margin: -5px auto;
}

.route-fields {
    grid-template-columns: 1fr;
}

.input-group:last-child {
    grid-column: auto;
}



    /* CTA */

    .final-cta {
        padding: 75px 20px;
    }


    /* FOOTER */

    .footer {
        padding: 60px 20px 0;
    }

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

        gap: 40px;
    }

    .footer-company {
        grid-column: auto;
    }

    .hero-location {
    flex-wrap: wrap;

    margin-bottom: 25px;

    font-size: 13px;
    }
.language-switcher {
    margin: 15px 0 0;

    justify-content: center;

    width: 100%;
}

}

/* ========================================
   SCROLL ANIMATIONS
======================================== */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========================================
   per la scritta borso del grappa sulla hero
======================================== */
.hero-location {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
    font-weight: 500;
}

.hero-location span {
    color: #c8102e;

    font-weight: 700;
}

/* ========================================
   per i bottoni ing-ita
======================================== */
.language-switcher {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: 20px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.language-btn {
    padding: 4px 6px;

    border: none;

    background: transparent;
    color: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    font: inherit;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.language-btn:hover {
    color: #ffffff;
}

.language-btn.active {
    color: #c8102e;
}

.language-btn:active {
    transform: scale(0.95);
}

/* Effetto touch sulle card dei servizi */

.service-card.touch-active {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ========================================
   HERO ANIMATION
======================================== */

.hero-content {
    animation: heroFadeUp 1s ease forwards;
}

.hero-label {
    animation: heroFadeUp 0.8s ease 0.1s both;
}

.hero-content h1 {
    animation: heroFadeUp 0.8s ease 0.25s both;
}

.hero-content > p {
    animation: heroFadeUp 0.8s ease 0.4s both;
}

.hero-location {
    animation: heroFadeUp 0.8s ease 0.55s both;
}

.hero-buttons {
    animation: heroFadeUp 0.8s ease 0.7s both;
}

@keyframes heroFadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================
   PRIVACY PAGE
========================= */

.privacy-page {
    padding: 140px 20px 80px;
    background: #f5f5f5;
    min-height: 100vh;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.privacy-container h1 {
    font-size: 3rem;
    margin: 10px 0 25px;
    color: #111;
}

.privacy-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 45px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 15px;
}

.privacy-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-section ul {
    padding-left: 25px;
    color: #555;
    line-height: 1.8;
}

.privacy-section a {
    color: #c8102e;
    text-decoration: underline;
}

.privacy-section a:hover {
    color: #111;
}

.privacy-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}


/* MOBILE */

@media (max-width: 768px) {

    .privacy-page {
        padding: 110px 15px 50px;
    }

    .privacy-container {
        padding: 35px 22px;
    }

    .privacy-container h1 {
        font-size: 2.2rem;
    }

    .privacy-intro {
        font-size: 1rem;
    }

    .privacy-section h2 {
        font-size: 1.2rem;
    }

}