/* ===========================
           RESET & BASE
        =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-green: #15803d;
    --primary-blue: #2563eb;
    --primary-green-hover: #166534;
    --primary-blue-hover: #1d4ed8;
    --green-label-background: #dcfce7;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===========================
           UTILITY
        =========================== */
.font-mono {
    font-family: 'Roboto Mono', monospace;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
           NAVBAR
        =========================== */
.navbar {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    height: 2.5rem;
}

.navbar-brand-logo img {
    width: 12rem;
}

.navbar-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #030712;
}

.navbar-brand-name .accent {
    color: var(--primary-green);
}

.navbar-brand-tagline {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
}

.navbar-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}

.navbar-links a:hover {
    color: var(--primary-green);
    transition: color 0.2s;
}

.navbar-cta {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    text-align: center;
}

.navbar-cta:hover {
    background-color: var(--primary-green-hover);
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

/* ===========================
           HERO
        =========================== */
.hero {
    background-image:
        linear-gradient(to bottom, rgba(3, 7, 18, 0.55) 0%, rgba(3, 7, 18, 0.65) 100%),
        url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 8rem 1.5rem;
    position: relative;
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        /* L'immagine torna a comportarsi normalmente */
        background-position: center;
        /* Ora background-position risponderÃ  correttamente */
    }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(21, 128, 61, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(21, 128, 61, 0.2);
    color: #86efac;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Stile DIEMME - Versione Headline */
.hero-brand-top {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    /* Aumentato da 1.75rem */
    font-weight: 800;
    /* PiÃ¹ spesso per dare importanza */
    color: #ffffff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Ombra per profonditÃ  */
}

/* Responsive: si adatta meglio ai vari schermi */
@media (max-width: 1024px) {
    .hero-brand-top {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .hero-brand-top {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-title .highlight {
    color: #22c55e;
}

.hero-subtitle {
    color: #e5e7eb;
    font-size: clamp(0.5rem, 2.5vw, 1rem);
    max-width: 48rem;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.hero-btn--primary {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 1rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.hero-btn--primary:hover {
    background-color: var(--primary-green-hover);
}

.hero-btn--secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
}

.hero-btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .hero {
        padding: 12rem 1.5rem;
    }

    .hero-actions {
        flex-direction: row;
    }

}

/* ===========================
           SEZIONE AZIENDA
        =========================== */
.about {
    padding: 6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-label {
    display: inline-block;
    background-color: var(--green-label-background);
    color: var(--primary-green-hover);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.about-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #030712;
    margin-bottom: 2rem;
}

.about-text {
    color: #374151;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* Cambiato in 'center' per distribuire i pixel in modo uniforme */
    object-position: center;

    /* Forza i browser moderni a usare l'algoritmo migliore per rimpicciolire */
    image-rendering: -webkit-optimize-contrast;
    /* Chrome / Safari */
    image-rendering: high-quality;
    /* Firefox / Standard */
}

.about-badge {
    display: none;
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.about-badge-number {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.about-badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
    }

    .about-badge {
        display: block;
    }
}

/* ===========================
           SEZIONE TECNOLOGIE
        =========================== */
.services {
    padding: 6rem 1.5rem;
    background-color: #f3f4f6;
}

.services-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header-label {
    display: inline-block;
    background-color: var(--green-label-background);
    color: var(--primary-green-hover);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.section-header-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #030712;
    margin-bottom: 1.5rem;
}

.section-header-description {
    color: #4b5563;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #030712;
    margin-bottom: 0.75rem;
}

.service-card-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1rem;
}

.service-card-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    display: inline-block;
}

.service-card-tag--blue {
    color: var(--primary-green);
    background-color: #eff6ff;
}

.service-card-tag--green {
    color: #16a34a;
    background-color: #f0fdf4;
}

.service-card-tag--red {
    color: #dc2626;
    background-color: #fef2f2;
}

.service-card-tag--orange {
    color: #ea580c;
    background-color: #fff7ed;
}

/* ===========================
           SEZIONE QUALITÃ€
        =========================== */
.quality {
    padding: 6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.quality-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .quality-inner {
        grid-template-columns: 2fr 1fr;
    }
}

.quality-label {
    display: inline-block;
    background-color: var(--green-label-background);
    color: var(--primary-green-hover);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.quality-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #030712;
    margin-bottom: 2rem;
}

.quality-text {
    color: #374151;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quality-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #374151;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.quality-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.quality-checklist-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-green);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.quality-standards-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-standards-icon {
    color: var(--primary-green);
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
}

.quality-standards-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #030712;
    margin-bottom: 1rem;
}

.quality-standards-description {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.quality-standards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    width: 100%;
}

.quality-standard-item {
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* ===========================
           SEZIONE VERSAFLOW SPOTLIGHT
        =========================== */
.versaflow {
    padding: 6rem 1.5rem;
    background: linear-gradient(160deg, #0a0f1e 0%, #0d1a10 60%, #030712 100%);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.versaflow::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 128, 61, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.versaflow-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .versaflow-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.versaflow-label {
    display: inline-block;
    background-color: rgba(21, 128, 61, 0.2);
    color: #86efac;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.versaflow-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.versaflow-title .accent {
    color: #22c55e;
}

.versaflow-model {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.versaflow-description {
    color: #d1d5db;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.versaflow-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.versaflow-spec {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.versaflow-spec-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.versaflow-spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #22c55e;
}

.versaflow-image-side {
    position: relative;
}

.versaflow-image-frame {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.15);
    position: relative;
}

.versaflow-image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) saturate(1.05);
}

@media (max-width: 767px) {
    .versaflow-image-frame img {
        object-position: 85% 50%;
    }
}

.versaflow-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.versaflow-image-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

.versaflow-image-badge-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #d1d5db;
    line-height: 1.4;
}

.versaflow-image-badge-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.8rem;
}

/* tag blu per wave solder */
.service-card-tag--blue-wave {
    color: #1d4ed8;
    background-color: #eff6ff;
}

/* ===========================
           FOOTER
        =========================== */
.footer {
    background-color: #030712;
    color: #d1d5db;
    padding: 2rem 1.5rem;
    margin-top: 6rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    padding-right: 2.5rem;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 2.5rem;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.footer-brand-name .accent {
    color: var(--primary-green);
}

.footer-brand-tagline {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
}

.footer-description {
    color: #ffffff;
    font-weight: 300;
    line-height: 1.8;
}

.footer-column-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-contact-list a:hover {
    color: var(--primary-green);
    transition: color 0.2s;
}

.footer-legal {
    font-size: 0.75rem;
    line-height: 2;
}

.footer-bottom {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 300;
}

/* ===========================
           FLOATING CTA (mobile)
        =========================== */
.floating-cta {
    display: flex;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.floating-cta-button {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.floating-cta-button:hover {
    background-color: var(--primary-green-hover);
}

.floating-cta-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-badge {
        width: 20rem;
        padding-left: 3rem;
        padding-right: 3rem;
        text-align: center;
    }

    .about-image {
        object-position: center bottom;
    }

    .navbar-brand-logo img {
        width: 7rem;
    }
}