/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    background-color: #0a173c;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    min-height: 92px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


/* =========================
   LOGO
========================= */

.logo {
    display: block;
    flex-shrink: 0;
}

.logo img {
    width: 210px;
    height: auto;
}


/* =========================
   NAVIGATION
========================= */

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #f3a02c;
}


/* =========================
   LANGUAGE
========================= */

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}

.language-btn {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 2px;
    transition: 0.25s ease;
}

.language-btn:hover,
.language-btn.active {
    color: #f3a02c;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 92px);

    /* VERSIONI I RI WEBP */
    background-image: url("images/gas.webp");

    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(6, 16, 44, 0.98) 0%,
            rgba(8, 20, 53, 0.95) 35%,
            rgba(10, 23, 60, 0.78) 62%,
            rgba(10, 23, 60, 0.42) 100%
        );
}

.hero-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    right: -240px;
    top: -250px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(243, 160, 44, 0.13) 0%,
            rgba(243, 160, 44, 0) 70%
        );

    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 35px;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
    gap: 80px;
    align-items: end;
}

.hero-copy {
    max-width: 760px;
}

.hero-label {
    color: #f3a02c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(54px, 6.4vw, 88px);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.hero h1 span {
    color: #f3a02c;
}

.hero-description {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-primary {
    min-height: 50px;
    background-color: #f3a02c;
    color: #0a173c;
    padding: 0 27px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.btn-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.btn-link:hover {
    color: #f3a02c;
}


/* =========================
   HERO PROJECT
========================= */

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-project-card {
    width: 100%;
    max-width: 360px;
    padding: 34px;
    background-color: rgba(7, 16, 43, 0.50);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    border-left: 3px solid #f3a02c;
}

.project-badge {
    color: #f3a02c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-project-card h2 {
    color: #ffffff;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.hero-project-card > p:not(.project-badge) {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.project-link:hover {
    color: #f3a02c;
}


/* =========================
   HERO STATS
========================= */

.hero-stats {
    margin-top: 75px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat-last {
    border-right: none;
}

.stat-number {
    color: #ffffff;
    font-size: 29px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 9px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}


/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-indicator span {
    width: 34px;
    height: 1px;
    background-color: #f3a02c;
}

.scroll-indicator p {
    color: rgba(255, 255, 255, 0.40);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 55px;
}

.section-label {
    color: #f3a02c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.section h2 {
    color: #0a173c;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.section-heading > p:last-child {
    color: #6f7480;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================
   SERVICES
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #eceef2;
    overflow: hidden;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.025);
}

.service-content {
    padding: 28px;
}

.service-number {
    display: block;
    color: #f3a02c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #0a173c;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.service-card p {
    color: #737782;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   ABOUT
========================= */

.about-section {
    background-color: #f7f8fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 85px;
    align-items: center;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 610px;
    object-fit: cover;
    transition: 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content p {
    color: #666b76;
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-content strong {
    color: #0a173c;
    font-weight: 700;
}


/* =========================
   PROJECTS
========================= */

.projects-section {
    background-color: #ffffff;
}

.project-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: #0a173c;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.project-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h3 {
    color: #ffffff;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.project-content > p:not(.section-label) {
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.8;
    margin-bottom: 28px;
}

.text-link {
    color: #f3a02c;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    transition: 0.25s ease;
}

.text-link:hover {
    color: #ffffff;
}


/* =========================
   INSTAGRAM
========================= */

.instagram-section {
    background-color: #f7f8fa;
    overflow: hidden;
}

.instagram-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}

.instagram-name {
    color: #777c86;
    font-size: 14px;
    font-weight: 500;
}

.instagram-slider {
    width: 100%;
    overflow: hidden;
}

.instagram-track {
    display: flex;
    width: max-content;
    gap: 20px;

    animation: instagramScroll 55s linear infinite;

    will-change: transform;
}

.instagram-track:hover {
    animation-play-state: paused;
}

.instagram-card {
    width: 320px;
    height: 400px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #ffffff;
}

.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.instagram-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 23, 60, 0.65);
    opacity: 0;
    transition: 0.3s ease;
}

.instagram-card-overlay span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.instagram-card:hover .instagram-card-overlay {
    opacity: 1;
}

.instagram-card:hover img {
    transform: scale(1.04);
}

@keyframes instagramScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }

}


/* =========================
   INFORMATION
========================= */

.information-section {
    background-color: #0a173c;
    color: #ffffff;
}

.information-section h2 {
    color: #ffffff;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.info-box {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 24px;
}

.info-box span {
    display: block;
    color: #f3a02c;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
}

.info-box h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-box p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background-color: #f7f8fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: start;
}

.contact-intro > p:last-child {
    max-width: 500px;
    color: #686d77;
    line-height: 1.8;
}

.contact-details {
    display: grid;
    gap: 15px;
}

.contact-item {
    background-color: #ffffff;
    padding: 24px 28px;
    border: 1px solid #eceef2;
    transition: 0.25s ease;
}

.contact-item:hover {
    border-color: #f3a02c;
}

.contact-label {
    color: #f3a02c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.contact-item h3 {
    color: #0a173c;
    font-size: 18px;
    font-weight: 500;
}

.contact-item h3 a {
    color: #0a173c;
    text-decoration: none;
    transition: 0.25s ease;
}

.contact-item h3 a:hover {
    color: #f3a02c;
}


/* =========================
   FOOTER
========================= */

.footer {
    background-color: #07102b;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
}

.copyright {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 0;
    }

    .logo {
        margin-right: auto;
    }

    .language-switch {
        margin-left: auto;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 5px;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 45px;
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-side {
        justify-content: flex-start;
    }

    .hero-project-card {
        max-width: 520px;
    }
}


/* =========================
   TABLET 900px
========================= */

@media (max-width: 900px) {

    .container {
        width: 90%;
    }

    .hero h1 {
        font-size: 62px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat:nth-child(2) {
        border-right: none;
    }

    .hero-stat:nth-child(1),
    .hero-stat:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card img {
        height: 290px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image img {
        height: 440px;
    }

    .project-feature {
        grid-template-columns: 1fr;
    }

    .project-image img {
        height: 400px;
    }

    .information-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 75px 0;
    }

    .navbar {
        gap: 15px;
        min-height: auto;
    }

    .logo img {
        width: 165px;
    }

    .nav-links {
        gap: 10px 14px;
    }

    .nav-links a {
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .hero-container {
        padding-top: 70px;
        padding-bottom: 35px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(6, 16, 44, 0.96) 0%,
                rgba(8, 20, 53, 0.91) 62%,
                rgba(10, 23, 60, 0.88) 100%
            );
    }

    .hero-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 47px;
        line-height: 1.02;
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 20px;
    }

    .btn-primary {
        min-height: 47px;
        padding: 0 20px;
    }

    .hero-project-card {
        padding: 27px 24px;
    }

    .hero-project-card h2 {
        font-size: 27px;
    }

    .hero-stats {
        margin-top: 50px;
    }

    .hero-stat {
        min-height: 90px;
        padding: 15px 18px;
    }

    .hero-stat:first-child {
        padding-left: 18px;
    }

    .stat-number {
        font-size: 25px;
    }

    .stat-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card img {
        height: 270px;
    }

    .about-image img {
        height: 340px;
    }

    .about-content p {
        font-size: 14px;
    }

    .project-image img {
        height: 300px;
    }

    .project-content {
        padding: 35px 25px;
    }

    .project-content h3 {
        font-size: 28px;
    }

    .instagram-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .instagram-card {
        width: 260px;
        height: 330px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 41px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-label {
        font-size: 7px;
    }

    .service-card img {
        height: 250px;
    }
}


/* =========================
   ACCESSIBILITY
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .instagram-track {
        animation: none;
    }

}