/* =====================================================
   INNOVAZIONI FINESTRE E PORTE
   STILE ROSSO / BIANCO / ANTRACITE
===================================================== */

:root {

    --red: #b5121b;
    --red-dark: #8d0d14;
    --red-light: #d51d28;

    --black: #151515;
    --dark: #202020;
    --gray: #666;
    --light-gray: #f4f4f4;

    --white: #ffffff;

    --border: #e5e5e5;

    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Playfair Display', serif;

    --container: 1180px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}

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


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

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

    border-bottom: 1px solid rgba(0,0,0,0.08);

    transition: 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.nav-container {
    height: 88px;

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


/* LOGO */

.logo {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.logo span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;

    color: var(--red);
}

.logo small {
    margin-top: 6px;

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

    letter-spacing: 3px;

    color: var(--black);
}


/* NAV */

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

.nav > a {
    position: relative;

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

    transition: 0.3s;
}

.nav > a:not(.nav-button)::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: 0.3s;
}

.nav > a:not(.nav-button):hover {
    color: var(--red);
}

.nav > a:not(.nav-button):hover::after {
    width: 100%;
}


/* NAV BUTTON */

.nav-button {

    background: var(--red);
    color: white;

    padding: 13px 20px;

    transition: 0.3s;
}

.nav-button:hover {
    background: var(--red-dark);
}


/* MOBILE MENU */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {

    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: var(--black);

    transition: 0.3s;
}


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

.hero {

    min-height: 850px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(10,10,10,0.93),
            rgba(10,10,10,0.60),
            rgba(10,10,10,0.15)
        ),
        url("images/hero-infissi.jpg");

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

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

    background:
        linear-gradient(
            135deg,
            rgba(181,18,27,0.20),
            transparent 45%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 750px;

    color: white;

    padding-top: 90px;
}

.eyebrow {
    color: #ffffff;

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

    letter-spacing: 4px;

    margin-bottom: 25px;
}

.hero h1 {

    font-family: var(--font-title);

    font-size: clamp(48px, 6vw, 82px);

    line-height: 1.08;

    font-weight: 600;

    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    color: #f32632;
}

.hero-description {

    max-width: 650px;

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

    font-size: 17px;

    margin-bottom: 40px;
}


/* BUTTONS */

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

.btn {

    display: inline-flex;

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

    gap: 15px;

    min-height: 52px;

    padding: 0 28px;

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

    letter-spacing: 1px;

    text-transform: uppercase;

    border: 1px solid transparent;

    cursor: pointer;

    transition: 0.3s;
}

.btn-primary {

    background: var(--red);
    color: white;
}

.btn-primary:hover {

    background: var(--red-dark);

    transform: translateY(-2px);
}

.btn-outline {

    border-color: rgba(255,255,255,0.6);

    color: white;
}

.btn-outline:hover {

    background: white;
    color: var(--black);
}

.btn-white {

    background: white;
    color: var(--red);
}

.btn-white:hover {

    background: var(--black);
    color: white;
}


/* SCROLL */

.hero-bottom {

    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 15px;

    color: white;

    font-size: 9px;

    letter-spacing: 3px;
}

.scroll-line {

    width: 55px;
    height: 1px;

    background: white;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    padding: 120px 0;
}

.section-label {

    color: var(--red);

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

    letter-spacing: 4px;

    margin-bottom: 18px;
}

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

    margin-bottom: 65px;
}

.section-heading h2,
.about-content h2,
.contact-info h2 {

    font-family: var(--font-title);

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.15;

    font-weight: 600;

    margin-bottom: 25px;
}

.section-heading h2 span,
.about-content h2 span,
.contact-info h2 span {
    color: var(--red);
}

.section-heading > p:last-child {
    color: var(--gray);
    max-width: 650px;
}


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

.about {
    background: white;
}

.about-grid {

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 90px;

    align-items: center;
}


/* IMAGE */

.about-image {
    position: relative;
}

.image-frame {

    height: 600px;

    padding: 20px;

    border: 1px solid var(--border);
}

.image-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

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

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #191919,
            #3a3a3a
        );

    color: white;
}

.image-placeholder span {

    color: #f32632;

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

    letter-spacing: 5px;
}

.image-placeholder strong {

    font-family: var(--font-title);

    font-size: 45px;

    line-height: 1.1;

    margin-top: 20px;
}


/* EXPERIENCE BOX */

.experience-box {

    position: absolute;

    right: -25px;
    bottom: 35px;

    background: var(--red);

    color: white;

    padding: 25px 30px;

    display: flex;
    align-items: center;

    gap: 15px;
}

.experience-box strong {

    font-family: var(--font-title);

    font-size: 42px;
}

.experience-box span {

    font-size: 11px;

    font-weight: 700;

    line-height: 1.4;

    text-transform: uppercase;
}


/* ABOUT TEXT */

.about-content > p {

    color: var(--gray);

    margin-bottom: 18px;
}

.about-content > p strong {
    color: var(--black);
}


/* FEATURES */

.about-features {

    margin-top: 35px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.about-features div {

    display: flex;

    align-items: center;

    gap: 10px;
}

.about-features span {

    width: 25px;
    height: 25px;

    display: flex;

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

    border-radius: 50%;

    background: var(--red);

    color: white;

    font-size: 12px;
}

.about-features p {

    font-size: 12px;
    font-weight: 600;
}


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

.services {
    background: var(--light-gray);
}

.services-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {

    position: relative;

    background: white;

    padding: 45px 35px;

    border: 1px solid var(--border);

    transition: 0.35s;
}

.service-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.service-card.featured {

    background: var(--red);

    color: white;

    transform: translateY(-15px);
}

.service-card.featured:hover {

    transform: translateY(-22px);
}

.service-number {

    position: absolute;

    right: 25px;
    top: 20px;

    font-size: 12px;

    font-weight: 800;

    color: var(--red);
}

.service-card.featured .service-number {
    color: rgba(255,255,255,0.5);
}

.service-icon {

    font-size: 35px;

    margin-bottom: 30px;
}

.service-card h3 {

    font-family: var(--font-title);

    font-size: 32px;

    margin-bottom: 15px;
}

.service-card p {

    color: var(--gray);

    font-size: 14px;

    margin-bottom: 30px;
}

.service-card.featured p {
    color: rgba(255,255,255,0.8);
}

.service-card a {

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--red);
}

.service-card.featured a {
    color: white;
}


/* =====================================================
   SOLUTIONS
===================================================== */

.solutions {

    background:
        linear-gradient(
            110deg,
            #171717,
            #252525
        );

    color: white;
}

.section-heading.light h2 {
    color: white;
}

.section-heading.light > p:last-child {
    color: rgba(255,255,255,0.65);
}

.solutions-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: rgba(255,255,255,0.15);
}

.solution-card {

    min-height: 270px;

    padding: 35px;

    background: #202020;

    transition: 0.3s;
}

.solution-card:hover {
    background: var(--red);
}

.solution-number {

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    margin-bottom: 50px;
}

.solution-card:hover .solution-number {
    color: white;
}

.solution-card h3 {

    font-family: var(--font-title);

    font-size: 30px;

    margin-bottom: 15px;
}

.solution-card p {

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

    font-size: 13px;
}

.solution-card:hover p {
    color: rgba(255,255,255,0.85);
}


/* =====================================================
   STATS
===================================================== */

.stats {

    background: var(--red);

    color: white;

    padding: 60px 0;
}

.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    text-align: center;
}

.stat {

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

.stat:last-child {
    border: 0;
}

.stat strong {

    display: block;

    font-family: var(--font-title);

    font-size: 48px;
}

.stat span {

    display: block;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.8;
}


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

.cta {

    background: #f3f3f3;

    padding: 80px 0;
}

.cta-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.cta h2 {

    font-family: var(--font-title);

    font-size: clamp(40px, 5vw, 58px);

    margin-bottom: 10px;
}

.cta p:last-child {

    color: var(--gray);

    max-width: 650px;
}


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

.contact {
    background: white;
}

.contact-grid {

    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 100px;

    align-items: start;
}

.contact-info > p:not(.section-label) {

    color: var(--gray);

    max-width: 500px;

    margin-bottom: 40px;
}


/* CONTACT DETAILS */

.contact-details {

    display: flex;

    flex-direction: column;

    gap: 25px;
}

.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;
}

.contact-icon {

    width: 50px;
    height: 50px;

    display: flex;

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

    background: var(--light-gray);

    color: var(--red);

    font-size: 18px;
}

.contact-item small {

    display: block;

    color: var(--gray);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 3px;
}

.contact-item a,
.contact-item span {

    font-size: 13px;

    font-weight: 600;
}

.contact-item a:hover {
    color: var(--red);
}


/* FORM */

.contact-form-wrapper {

    background: var(--light-gray);

    padding: 45px;
}

.form-title {

    margin-bottom: 30px;
}

.form-title span {

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;
}

.form-title h3 {

    font-family: var(--font-title);

    font-size: 35px;

    margin-top: 5px;
}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

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

.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border: 1px solid #ddd;

    background: white;

    padding: 14px 15px;

    outline: none;

    font-size: 13px;

    transition: 0.3s;
}

.form-group textarea {

    resize: vertical;

    min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--red);

    box-shadow: 0 0 0 2px rgba(181,18,27,0.08);
}

.form-checkbox {

    display: flex;

    gap: 10px;

    align-items: flex-start;

    margin-bottom: 25px;
}

.form-checkbox input {

    margin-top: 4px;

    accent-color: var(--red);
}

.form-checkbox label {

    color: var(--gray);

    font-size: 10px;

    line-height: 1.5;
}

.form-button {

    width: 100%;
}

.form-message {

    display: none;

    margin-top: 15px;

    padding: 12px;

    background: #e7f6eb;

    color: #17652d;

    font-size: 12px;

    text-align: center;
}

.form-message.show {
    display: block;
}


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

.footer {

    background: #151515;

    color: white;
}

.footer-top {

    display: grid;

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

    gap: 80px;

    padding: 70px 0;
}

.footer-brand p {

    max-width: 350px;

    margin-top: 20px;

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

    font-size: 12px;
}

.footer .logo span {
    color: #f32632;
}

.footer .logo small {
    color: white;
}

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links h4 {

    margin-bottom: 10px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.footer-links a {

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

    font-size: 12px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {

    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 20px 0;
}

.footer-bottom .container {

    display: flex;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {

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

    font-size: 9px;
}


/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: 0;

    background: var(--red);

    color: white;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

    z-index: 500;
}

.back-to-top.visible {

    opacity: 1;

    visibility: visible;
}


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

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition: 0.8s ease;
}

.reveal.active {

    opacity: 1;

    transform: translateY(0);
}


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

@media (max-width: 1000px) {

    .nav {
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

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

    .service-card.featured {
        transform: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}


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

@media (max-width: 760px) {

    .nav-container {
        height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {

        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        background: white;

        padding: 25px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav > a {
        padding: 5px 0;
    }

    .nav-button {
        text-align: center;
    }

    .hero {
        min-height: 750px;
    }

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

    .hero-description {
        font-size: 14px;
    }

    .section {
        padding: 80px 0;
    }

    .image-frame {
        height: 450px;
    }

    .experience-box {
        right: -5px;
        bottom: 20px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;

        gap: 30px;
    }

    .stat {
        border: 0;
    }

    .cta-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

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

        gap: 40px;
    }

    .footer-bottom .container {
        flex-direction: column;
    }

}


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

@media (max-width: 450px) {

    .logo span {
        font-size: 16px;
    }

    .logo small {
        font-size: 7px;
    }

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

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

    .btn {
        width: 100%;
    }

    .image-frame {
        height: 380px;
    }

    .experience-box {
        padding: 15px 20px;
    }

    .experience-box strong {
        font-size: 30px;
    }

}