/* ==========================================================
   D.E.A ELETTRONICA
   Centro Assistenza Tecnica - Taglio di Po
   Modern Responsive Stylesheet
   ========================================================== */

/* ----------------------------------------------------------
   1. RESET & VARIABLES
---------------------------------------------------------- */

:root {
    --dea-primary: #0b5ed7;
    --dea-primary-dark: #084298;
    --dea-secondary: #0f172a;
    --dea-accent: #ff6b35;
    --dea-text: #263244;
    --dea-muted: #667085;
    --dea-light: #f5f8fc;
    --dea-white: #ffffff;
    --dea-border: #e5eaf1;
    --dea-success: #198754;

    --dea-radius-sm: 10px;
    --dea-radius: 16px;
    --dea-radius-lg: 24px;

    --dea-shadow-sm: 0 5px 20px rgba(15, 23, 42, 0.06);
    --dea-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    --dea-shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.16);

    --dea-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--dea-text);
    background: var(--dea-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

@media (max-width: 767px) {

    .logo {
        width: 150px;
    }

}

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

a {
    text-decoration: none;
    transition: var(--dea-transition);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--dea-primary);
    color: var(--dea-white);
}


/* ----------------------------------------------------------
   2. BOOTSTRAP OVERRIDES
---------------------------------------------------------- */

.btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 22px;
    transition: var(--dea-transition);
}

.btn-primary {
    background: var(--dea-primary);
    border-color: var(--dea-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--dea-primary-dark);
    border-color: var(--dea-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 94, 215, 0.25);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--dea-shadow);
}


/* ----------------------------------------------------------
   3. HEADER
---------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 1000;
}

.site-header .navbar {
    min-height: 82px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 3px 20px rgba(15, 23, 42, 0.04);
}

.navbar-brand {
    color: var(--dea-secondary);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand strong {
    color: var(--dea-primary);
}

.navbar-brand:hover {
    color: var(--dea-secondary);
}

.navbar-nav .nav-link {
    position: relative;
    color: #344054;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 10px 13px !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 2px;
    background: var(--dea-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--dea-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--dea-primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: 1px solid var(--dea-border);
    border-radius: 9px;
    padding: 8px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}


/* ----------------------------------------------------------
   4. HERO
---------------------------------------------------------- */

.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7, 18, 38, 0.93) 0%,
            rgba(7, 18, 38, 0.78) 45%,
            rgba(7, 18, 38, 0.30) 100%
        ),
        url("../images/hero-tv.png") center center / cover no-repeat;
}



.hero-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -150px;
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.25);
    filter: blur(4px);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: 45%;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.min-vh-75 {
    min-height: 650px;
}

.hero-section .container {
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #dceaff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55d187;
    box-shadow: 0 0 0 5px rgba(85, 209, 135, 0.12);
}

.hero-section h1 {
    max-width: 780px;
    margin-bottom: 22px;
    color: var(--dea-white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.hero-section h1 span {
    color: #6da8ff;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons .btn {
    min-width: 160px;
}

.hero-buttons .btn-outline-light:hover {
    color: var(--dea-secondary);
    background: var(--dea-white);
}


/* ----------------------------------------------------------
   5. GENERAL SECTIONS
---------------------------------------------------------- */

.services-section,
.article-section,
.contact-section {
    background: var(--dea-white);
}

.why-section,
.process-section {
    background: var(--dea-light);
}

.section-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--dea-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.section-heading h2,
.article-section h2 {
    margin-bottom: 14px;
    color: var(--dea-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.section-heading p {
    color: var(--dea-muted);
    font-size: 1.03rem;
}


/* ----------------------------------------------------------
   6. SERVICE CARDS
---------------------------------------------------------- */

.service-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--dea-border);
    border-radius: var(--dea-radius);
    background: var(--dea-white);
    box-shadow: var(--dea-shadow-sm);
    overflow: hidden;
    transition: var(--dea-transition);
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--dea-primary),
        #62a0ff
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--dea-transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 94, 215, 0.16);
    box-shadow: var(--dea-shadow);
}

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

.service-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 15px;
    color: var(--dea-primary);
    background: #eaf2ff;
    font-size: 1.7rem;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--dea-secondary);
    font-size: 1.25rem;
    font-weight: 750;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--dea-muted);
}

.service-card a {
    color: var(--dea-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.service-card a i {
    margin-left: 5px;
    transition: var(--dea-transition);
}

.service-card a:hover i {
    margin-left: 10px;
}


/* ----------------------------------------------------------
   7. ARTICLE SECTION
---------------------------------------------------------- */

.article-section {
    overflow: hidden;
}

.article-image {
    position: relative;
    border-radius: var(--dea-radius-lg);
    overflow: hidden;
    box-shadow: var(--dea-shadow-lg);
}

.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(15, 23, 42, 0.20)
    );
    pointer-events: none;
}

.article-image img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-image:hover img {
    transform: scale(1.04);
}

.article-section h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.article-section p {
    color: var(--dea-muted);
    font-size: 1rem;
}

.article-section strong {
    color: var(--dea-secondary);
}


/* ----------------------------------------------------------
   8. WHY CHOOSE US
---------------------------------------------------------- */

.feature-box {
    height: 100%;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid var(--dea-border);
    border-radius: var(--dea-radius);
    background: var(--dea-white);
    transition: var(--dea-transition);
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--dea-shadow);
    border-color: rgba(11, 94, 215, 0.15);
}

.feature-box > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    border-radius: 50%;
    color: var(--dea-primary);
    background: #eaf2ff;
    font-size: 1.45rem;
}

.feature-box h3 {
    margin-bottom: 9px;
    color: var(--dea-secondary);
    font-size: 1.12rem;
    font-weight: 750;
}

.feature-box p {
    margin: 0;
    color: var(--dea-muted);
    font-size: 0.92rem;
}


/* ----------------------------------------------------------
   9. PROCESS
---------------------------------------------------------- */

.process-step {
    position: relative;
    height: 100%;
    padding: 30px 25px;
    border-radius: var(--dea-radius);
    background: var(--dea-white);
    border: 1px solid var(--dea-border);
    box-shadow: var(--dea-shadow-sm);
}

.process-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: var(--dea-white);
    background: var(--dea-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.process-step h3 {
    color: var(--dea-secondary);
    font-size: 1.15rem;
    font-weight: 750;
}

.process-step p {
    margin-bottom: 0;
    color: var(--dea-muted);
    font-size: 0.93rem;
}


/* ----------------------------------------------------------
   10. CALL TO ACTION
---------------------------------------------------------- */

.cta-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(98, 160, 255, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #073b8c,
            #0b5ed7 55%,
            #124da5
        );
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -180px;
    bottom: -200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-box {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
}

.cta-box .section-label {
    color: #bcd7ff;
}

.cta-box h2 {
    margin-bottom: 18px;
    color: var(--dea-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.cta-box p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.cta-box .btn-light {
    color: var(--dea-primary);
    font-weight: 800;
}


/* ----------------------------------------------------------
   11. CONTACT CARDS
---------------------------------------------------------- */

.contact-card {
    height: 100%;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--dea-border);
    border-radius: var(--dea-radius);
    background: var(--dea-white);
    box-shadow: var(--dea-shadow-sm);
    transition: var(--dea-transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dea-shadow);
}

.contact-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    border-radius: 50%;
    color: var(--dea-primary);
    background: #eaf2ff;
    font-size: 1.35rem;
}

.contact-card h3 {
    margin-bottom: 8px;
    color: var(--dea-secondary);
    font-size: 1.1rem;
    font-weight: 750;
}

.contact-card p {
    margin: 0;
    color: var(--dea-muted);
}

.contact-card a {
    color: var(--dea-primary);
    font-weight: 700;
}

.contact-card a:hover {
    color: var(--dea-primary-dark);
}


/* ----------------------------------------------------------
   12. FOOTER
---------------------------------------------------------- */

.site-footer {
    padding: 65px 0 20px;
    color: #b7c1d1;
    background: #0b1220;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: var(--dea-white);
    font-size: 1.35rem;
    font-weight: 800;
}

.site-footer h4 {
    margin-bottom: 16px;
    color: var(--dea-white);
    font-size: 1rem;
    font-weight: 700;
}

.site-footer p {
    max-width: 520px;
    color: #aab5c7;
    font-size: 0.92rem;
}

.site-footer ul li {
    margin-bottom: 9px;
}

.site-footer ul li a {
    color: #aab5c7;
    font-size: 0.91rem;
}

.site-footer ul li a:hover {
    color: var(--dea-white);
    padding-left: 4px;
}

.site-footer hr {
    margin: 35px 0 20px;
    border-color: rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
    max-width: none;
    margin: 0;
    color: #7f8ca1;
    font-size: 0.82rem;
}


/* ----------------------------------------------------------
   13. FLOATING PHONE BUTTON
---------------------------------------------------------- */

.floating-call {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dea-white);
    background: var(--dea-primary);
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.35);
    font-size: 1.3rem;
}

.floating-call:hover {
    color: var(--dea-white);
    background: var(--dea-primary-dark);
    transform: translateY(-4px);
}


/* ----------------------------------------------------------
   14. ACCESSIBILITY
---------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.35);
    outline-offset: 3px;
}


/* ----------------------------------------------------------
   15. RESPONSIVE - TABLET
---------------------------------------------------------- */

@media (max-width: 991.98px) {

    .site-header .navbar {
        min-height: 74px;
    }

    .navbar-collapse {
        padding: 18px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    .navbar-nav .nav-link::after {
        left: 0;
        right: auto;
        width: 35px;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 8px;
    }

    .hero-section {
        min-height: 590px;
    }

    .min-vh-75 {
        min-height: 590px;
    }

    .hero-section h1 {
        font-size: clamp(2.35rem, 7vw, 3.8rem);
    }

    .article-image img {
        min-height: 360px;
    }

    .cta-section {
        padding: 75px 0;
    }
}


/* ----------------------------------------------------------
   16. RESPONSIVE - MOBILE
---------------------------------------------------------- */

@media (max-width: 767.98px) {

    body {
        font-size: 0.95rem;
    }

    .site-header .navbar {
        min-height: 68px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section {
        min-height: 610px;
        background:
            linear-gradient(
                90deg,
                rgba(7, 18, 38, 0.94),
                rgba(7, 18, 38, 0.72)
            ),
            url("../images/hero-tv.jpg") center center / cover no-repeat;
    }

    .min-vh-75 {
        min-height: 610px;
    }

    .hero-section h1 {
        margin-bottom: 18px;
        font-size: 2.55rem;
        letter-spacing: -1.5px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-heading h2,
    .article-section h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 26px;
    }

    .article-image img {
        min-height: 280px;
    }

    .cta-section {
        padding: 65px 0;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .floating-call {
        right: 15px;
        bottom: 15px;
        width: 54px;
        height: 54px;
    }
}


/* ----------------------------------------------------------
   17. SMALL MOBILE
---------------------------------------------------------- */

@media (max-width: 420px) {

    .hero-section h1 {
        font-size: 2.15rem;
    }

    .hero-label {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .section-heading h2,
    .article-section h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .feature-box,
    .process-step,
    .contact-card {
        padding: 23px 20px;
    }
}


/* ----------------------------------------------------------
   18. REDUCED MOTION
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ----------------------------------------------------------
   TICKET / ASSISTENZA FORM
---------------------------------------------------------- */

.ticket-form-card {
    padding: 45px;
    border: 1px solid var(--dea-border);
    border-radius: var(--dea-radius-lg);
    background: var(--dea-white);
    box-shadow: var(--dea-shadow);
}

.form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.form-section-title > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--dea-primary);
    background: #eaf2ff;
    font-size: 1.2rem;
}

.form-section-title h3 {
    margin: 0 0 4px;
    color: var(--dea-secondary);
    font-size: 1.2rem;
    font-weight: 750;
}

.form-section-title p {
    margin: 0;
    color: var(--dea-muted);
    font-size: 0.9rem;
}

.ticket-form-card .form-label {
    margin-bottom: 8px;
    color: var(--dea-secondary);
    font-weight: 650;
}

.ticket-form-card .form-control,
.ticket-form-card .form-select {
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--dea-border);
    border-radius: 10px;
    color: var(--dea-text);
    background: #fff;
}

.ticket-form-card textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.ticket-form-card .form-control:focus,
.ticket-form-card .form-select:focus {
    border-color: var(--dea-primary);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.10);
}

.ticket-divider {
    margin: 40px 0;
    border-color: var(--dea-border);
    opacity: 1;
}

.form-help {
    margin-top: 7px;
    color: var(--dea-muted);
    font-size: 0.82rem;
}

.ticket-form-card .form-check-label {
    color: var(--dea-muted);
    font-size: 0.9rem;
}

.ticket-form-card .form-check-label a {
    color: var(--dea-primary);
    font-weight: 650;
}

.ticket-form-card .form-check-input {
    margin-top: 5px;
}

.ticket-form-card .form-check-input:checked {
    background-color: var(--dea-primary);
    border-color: var(--dea-primary);
}

.ticket-submit {
    min-width: 280px;
}

.ticket-required {
    margin: 12px 0 0;
    color: var(--dea-muted);
    font-size: 0.8rem;
}


/* ----------------------------------------------------------
   TICKET RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 767.98px) {

    .ticket-form-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .form-section-title {
        gap: 12px;
    }

    .form-section-title > i {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .ticket-divider {
        margin: 30px 0;
    }

    .ticket-submit {
        width: 100%;
        min-width: 0;
    }

}