html {
    scroll-behavior: smooth;
}


.navbar-custom {
    background-color: rgba(0, 0, 0, 0.4);
    /* fondo semitransparente */
    backdrop-filter: blur(6px);
    /* efecto glass */
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.navbar-custom .navbar-brand span,
.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.navbar-toggler-custom {
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    border: none;
    box-shadow: none;
}


.hero-video {
    height: 100vh;
    overflow: hidden;
    padding-top: 100px;
    /* para compensar el navbar fijo */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-video h1,
.hero-video p {
    font-family: 'Lexend', sans-serif;
}

section {
    scroll-margin-top: 100px;
}

.applicazioni-section {
    min-height: 70vh; /*Espacio que ocupa en cada seccion*/
    /* permite crecer si hay más contenido */
    background-color: #ffffff;
    color: #005263;
    padding-top: 60px;
    /* espacio para título */
    padding-bottom: 40px;
}

.applicazioni-section h2 {
    color: #005263;
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.applicazione-card {
    background-color: #ffffff;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

.applicazione-card:hover {
    transform: translateY(-6px);
}

.applicazione-card img {
    height: 280px;
    /* o el valor que funcione visualmente para ti */
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.applicazione-card .card-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.applicazione-card h5 {
    color: #005263;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 0.75rem;
}

.applicazione-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #333;

}

.contact-section {
    min-height: 80vh;
    background-color: #f8f9fa;
    padding-top: 120px;
    /* para compensar el navbar */
    padding-bottom: 60px;
    color: #003944;
}

.contact-section h2 {
    font-family: 'Lexend', sans-serif;
    color: #005263;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.contact-section .form-label {
    font-weight: 500;
}

.btn-custom {
    background-color: rgb(0, 157, 190);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: rgb(0, 123, 150);
    color: #fff;
}


.footer-modern {
    background-color: #003944;
    padding-top: 10px;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

.footer-modern h5 {
    color: white;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 1rem;
}

.footer-modern p,
.footer-modern a {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-modern .footer-link:hover {
    color: #00d4ff;
    text-decoration: none;
}

.footer-social-icons a {
    font-size: 1.25rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #00d4ff;


}


/* Para pantallas menores a 768px (teléfonos) */
@media (max-width: 768px) {
    .applicazione-card img {
        height: 180px;
    }

    .applicazione-card .card-body {
        padding: 1rem;

    }

    .applicazione-card p {
        font-size: 0.85rem;
    }
}


/* Para pantallas entre 768px y 992px (tablets) */
@media (min-width: 768px) and (max-width: 992px) {
    .applicazione-card img {
        height: 180px;
    }

    .applicazione-card .card-body {
        padding: 1.25rem;
    }

    .applicazione-card p {
        font-size: 0.9rem;
    }
}

/* Ajustes generales para evitar que los titulos y el contenido se solape */
@media (min-width: 999px){
    .columModify{
        margin-bottom: 0 !important;
    }
}


/* Ajustes generales para evitar cards muy grandes en pantallas anchas */
@media (min-width: 1200px) {
    .applicazione-card {
        max-width: 95%;
        height: 180px;
        margin: 0 auto;
    }
}

/* ≥1400px: Pantallas muy grandes (ej. monitores 2K) */
@media (min-width: 1400px) {
    .applicazione-card {
        max-width: 90%;
    }


    .applicazione-card img {
        height: 450px;
    }

    .applicazione-card .card-body {
        padding: 2rem;
    }
}

.chi-siamo-cool-section {
    position: relative;
    background: url('../assets/consultor-new.jpg') center/cover no-repeat;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
    color: white;
    font-family: 'Lexend', sans-serif;
}

.chi-siamo-cool-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.chi-siamo-cool-section .container-fluid {
    position: relative;
    z-index: 2;
}

.chi-siamo-cool-section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.chi-siamo-cool-section p {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    margin-bottom: 1.5rem;
}

.subrayado {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    /* espacio entre texto y línea */
    display: inline;
    /* Asegura que no se expanda más del texto */
}

/* Estado normal (grande) */
.navbar-custom {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand span {
    font-size: 2rem;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

.navbar-custom .navbar-brand span:last-child {
    font-size: 1rem;
    transition: font-size 0.3s ease;
}

.navbar-custom .nav-link {
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
}

/* Estado reducido al hacer scroll */
.navbar-shrink {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.navbar-shrink .navbar-brand span {
    font-size: 1.4rem;
}

.navbar-shrink .navbar-brand span:last-child {
    font-size: 0.8rem;
}

.navbar-shrink .nav-link {
    font-size: 0.95rem;
}

.navbar .nav-link.active {
    background-color: #009DBE;
    color: white !important;
    border-radius: 0.5rem;
}

.contact-section ::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
} 

.lead {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.6;
}

.applicazione-card h5.card-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.applicazione-card p.card-text {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 120px !important;
        margin-right: 10px;
    }

    .navbar-brand span {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }

    .navbar-brand span:last-child {
        font-size: 0.8rem !important;
    }
}

/* Tamaño general del logo */
.logo-apulia {
    max-width: 180px;
    height: auto;
    transition: max-width 0.3s ease;
}

.logo-text span {
    display: block;
    /* Cada span en línea separada */
    margin: 0;
    /* Resetea márgenes para control total */
}

/* Tamaños textos generales */
.logo-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.logo-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.2;
    margin-top: 0;
    text-transform: none !important;
}

/* Para pantallas pequeñas, menos de 700px */
@media (max-width: 700px) {
    .navbar-brand>div {
        flex-direction: column !important;
        /* stack vertical */
        align-items: center !important;
        text-align: center !important;
    }

    .logo-apulia {
        max-width: 120px;
        /* menor tamaño del logo */
        margin-bottom: 5px;
        /* menos espacio debajo */
    }

    .logo-title {
        font-size: 1.2rem;
        margin-bottom: 0.05rem;
    }

    .logo-subtitle {
        font-size: 0.85rem;
    }
}

