/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif !important; /* Forza Montserrat ovunque */
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    color: #1e293b;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* COLORI BRAND STEREA INGEGNERIA */
h1, h2, h3, h4 {
    color: #184366;
    font-weight: 700;
}

/* ALLINEAMENTI E UTILITIES */
.text-center {
    text-align: center;
}

/* STRUTTURA A FINESTRE (SCHERMO INTERO - 100VH) */
.screen-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    scroll-snap-align: start;
    position: relative;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    flex-grow: 1;
}

.bg-light {
    background-color: #f8fafc;
}

/* FINESTRA 1: HERO SCHERMO INTERO */
.hero-fullscreen {
    background-color: #184366;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 30px;
}

/* NAVIGAZIONE SUPERIORE CENTRATA */
.navbar-top {
    width: 100%;
    padding: 35px 20px 20px 20px;
    display: flex;
    justify-content: center;
}

.nav-links-centered {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    justify-content: center;
}

.nav-links-centered a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.nav-links-centered a:hover {
    opacity: 0.8;
}

/* LOGO CENTRATO HERO */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.hero-logo {
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* GESTIONE FRECCE DI SCORRIMENTO (ALTO / BASSO) */
.scroll-down-arrow, .scroll-up-arrow {
    font-size: 2.2rem;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
    z-index: 10;
    display: block;
    text-align: center;
    width: 100%;
}

/* Colore scuro visibile su sfondi chiari */
.scroll-down-arrow {
    color: #184366;
    animation: bounceDown 2s infinite;
}

.scroll-up-arrow {
    color: #184366;
    animation: bounceUp 2s infinite;
}

/* Freccia bianca solo nella prima schermata blu */
.hero-fullscreen .scroll-down-arrow {
    color: #ffffff;
}

.scroll-down-arrow:hover, .scroll-up-arrow:hover {
    transform: scale(1.2);
    color: #0284c7;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* INTESTAZIONI DELLE SEZIONI */
.subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #184366;
}

.section-title p {
    color: #64748b;
}

/* ALLINEAMENTO CENTRATO PER TEAM / INTRODUZIONE */
.about-center {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.team-intro-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
    text-align: center;
}

/* GRID LAYOUTS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* TEAM CARDS */
.team-card {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 4px;
    border-left: 6px solid #184366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.team-card h3 {
    font-size: 1.2rem;
    color: #184366;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.team-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* SERVIZI OFFERTI */
.card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #184366;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #184366;
}

.card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* SEZIONE CONTATTI PULITA */
.contact-clean-layout {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-clean-layout h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-location {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 30px;
}

.contact-team-list {
    margin-bottom: 35px;
}

.contact-team-list p {
    font-size: 1.1rem;
    color: #184366;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.contact-channels {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.contact-channels p {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #334155;
}

.contact-channels p:last-child {
    margin-bottom: 0;
}

.contact-channels a {
    color: #184366;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-channels a:hover {
    color: #0284c7;
}

/* FOOTER MARGINE VARIATO */
.footer-bottom {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

footer {
    background: #184366;
    color: #e2e8f0;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ADATTAMENTO RESPONSIVE PER MOBILE & TABLET */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .screen-section {
        min-height: auto;
        padding: 40px 0;
    }
    .hero-fullscreen {
        min-height: 100vh;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .nav-links-centered {
        gap: 12px;
        flex-wrap: wrap;
    }
    .nav-links-centered a {
        font-size: 0.85rem;
    }
    .hero-logo {
        max-width: 280px;
    }
}

/* ANIMAZIONE FLUIDA DI ENTRATA DEL LOGO */
.hero-logo {
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: logoSmoothAppear 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoSmoothAppear {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}