body {
    background: #f3f6f8;
}

/* ================= NAVBAR ================= */
.navbar-custom {
    background-color: #f3f6f8;
    backdrop-filter: blur(6px);
    box-shadow: none;
    transition: background-color 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all .3s ease;
}

.navbar-custom .navbar-brand span,
.navbar-custom .nav-link {
    color: #474747;
    font-weight: 500;
    font-family: Manrope, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Logo y textos */
.logo-title {
    color: #06068F !important;
    font-family: Outfit, sans-serif;
    font-weight: 800 !important;
}

.logo-subtitle {
    color: #474747 !important;
    font-family: Manrope, sans-serif;
    font-weight: 500;
}

/* Botón hamburguesa */
.navbar-toggler-custom {
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    border: none;
    box-shadow: none;
    color: #212529 !important;
}

.navbar .nav-link.active {
    color:#212529 !important;
    background-color: #f3f6f8;
    border-radius: 0;
    border-bottom: 2px solid #06068F;
}

.navbar .nav-link:hover {
    color:#17A3DF !important;
}

/* --- Efecto encogido del navbar --- */
.navbar-shrink {
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
}

.navbar-shrink .logo-apulia {
    max-width: 140px;
}

.navbar-shrink .logo-title {
    font-size: 1.3rem !important;
}

.navbar-shrink .logo-subtitle {
    font-size: 0.9rem !important;
}

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

/* Margen para compensar navbar fijo */
section { scroll-margin-top: 100px; }

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

.logo-text span {
    display: block;
    margin: 0;
}

.logo-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

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

/* Responsive navbar */
@media (max-width: 992px) {
    .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;
    }
}

@media (max-width: 700px) {
    .navbar-brand > div {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .logo-apulia {
        max-width: 120px;
        margin-bottom: 5px;
    }

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

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

/* ================= BANNER WORK FROM PUGLIA ================= */
.banner-work-from-italy {
    position: relative;
    background: #ffffff;
    display: block;
    width: 95%;
    margin-top: 120px;
    height: 402px;
}

.banner-h1-container {
    padding-top: 90px;
    padding-left: 200px;
    max-width: 1300px;
}

.banner-h1 {
    font-family: Outfit, sans-serif;
    font-weight: 700;
    color: #06068F;
    font-size: 64px;
    line-height: 72px;
}

.hl {
    color: #17A3DF;
}

.banner-p-container {
    padding-left: 200px;
    max-width: 1300px;
}

.banner-p {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    color: #474747;
    font-size: 20px;
    line-height: 32px;
}

.banner-person {
    position: absolute;
    top: 0;
    right: 200px;
}

.banner-decoration {
    position: absolute;
    top: 30px;
    left: -15px;
}

/* Botones CTA */
.banner-cta {
    display: flex;
    gap: 12px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(92.97deg, #06068F 10.08%, #3636CA 97.54%);
    box-shadow: 0 6px 16px rgba(0,146,167,.2);
}
.btn-cta:hover { opacity: .92; }

.btn-ghost {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #06068F;
    border: 2px solid #06068F;
    background: #fff;
}
.btn-ghost:hover { background: #f5feff; }

/* 1920px+ ajustes */
@media (min-width: 1920px) {
    .banner-h1-container { padding-left: 100px; }
    .banner-p-container { padding-left: 100px; }
    .banner-person { right: 100px; }
    .banner-p { max-width: 1000px;}
}

/*1600 */

@media (min-width: 1600px) {
    .banner-h1-container { padding-left: 70px; }
    .banner-p-container { padding-left: 70px; }
    .banner-person { right: 0; }
    .banner-h1 { font-size: 56px;}
    .banner-p { max-width: 900px;}
}

/* max 1599 */
@media (max-width: 1599px) {
    .banner-h1-container { padding-left: 70px; }
    .banner-p-container { padding-left: 70px; }
    .banner-person { right: 50px; width:500px; top:60px; }
    .banner-h1 {font-size: 48px;}
    .banner-p { max-width: 830px;}
}

/* max 1380 */
@media (max-width: 1380px) {
    .banner-h1-container { padding-left: 70px; padding-top: 40px; }
    .banner-p-container { padding-left: 70px; }
    .banner-person { right: 50px; width:600px; top:0; }
    .banner-h1 {font-size: 56px; max-width: 610px; line-height: 56px;}
    .banner-p { max-width: 610px;}
    .banner-cta { margin-top: 24px;}
}

/* max 1300 */
@media (max-width: 1300px) {
    .banner-h1-container { padding-left: 70px; padding-top: 40px; }
    .banner-p-container { padding-left: 70px; }
    .banner-person { right: 30px; width:500px; top:60px; }
    .banner-h1 {font-size: 58px; max-width: 610px; line-height: 56px;}
    .banner-p { max-width: 750px;}
    .banner-cta { margin-top: 24px;}
}

/* max 1250 */
@media (max-width: 1250px) {
    .banner-h1-container { padding-left: 70px; padding-top: 40px; }
    .banner-p-container { padding-left: 70px; }
    .banner-person { right: 30px; width:500px; top:60px; }
    .banner-h1 {font-size: 58px; max-width: 610px; line-height: 56px;}
    .banner-p { max-width: 610px;}
    .banner-cta { margin-top: 24px;}
}

/* max 1199 */
@media (max-width: 1199px) {
    .banner-h1-container { padding-left: 30px; padding-top: 40px; }
    .banner-p-container { padding-left: 30px; }
    .banner-person { right: 10px; width:500px; top:60px; }
    .banner-h1 {font-size: 58px; max-width: 610px; line-height: 56px;}
    .banner-p { max-width: 750px;}
    .banner-cta { margin-top: 16px;}
}

/* max 1199 */
@media (max-width: 1160px) {
    .banner-h1-container { padding-left: 30px; padding-top: 40px; }
    .banner-p-container { padding-left: 30px; }
    .banner-person { right: 10px; width:400px; top:60px; }
    .banner-h1 {font-size: 58px; max-width: 610px; line-height: 56px;}
    .banner-p { max-width: 600px;}
    .banner-cta { margin-top: 16px;}
}

/* max 600 */
@media (max-width: 900px) {
    .banner-work-from-italy { height:auto;}
    .banner-decoration {display:none;}
    .banner-h1-container { padding-left: 30px; padding-top: 40px; }
    .banner-p-container { padding-left: 30px; }
    .container-imagen-person { display:flex; justify-content: center;}
    .banner-person { position: static; width:300px; }
    .banner-h1 {font-size: 42px; padding-top:25px; max-width: 610px; line-height: 48px; text-align:center;}
    .banner-p {line-height: 24px; margin-top:30px;}
    .banner-cta { margin-top: 16px; padding-top:20px; padding-bottom:30px; justify-content: center;}
}




/* ================= INTRO / COME TI AIUTIAMO ================= */
.intro-puglia-section { margin-top: 1rem; padding: 40px 0; }

.intro-h2 {
    display: flex;
    justify-content: center;
    color: #17A3DF;
    font-family: Outfit, sans-serif;
    font-weight: 700;
    line-height: 56px;
}

.estilo-h2 {
  font-size: 44px;
  color: #17A3DF;
}

.intro-p {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    color: #474747;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    max-width: 60ch;
}

.aiutiamo-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.h4-titles {
    font-family: Outfit, sans-serif;
    font-weight: 700;
    color: #06068F;
    font-size: 32px;
    padding-top: 10px;
}

.micro-text { color: #17A3DF !important; }

.aiutiamo-p {
  font-family: Manrope, sans-serif;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.chips li {
    background: #e8f7fa;
    color: #003944;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid #d3eef3;
}

/* ================= PERCHÉ PUGLIA ================= */
.why-puglia-v2 { background: #ffffff; }

.mono-caption {
    font-size: 0.9rem;
    color: #5a6b73;
}

.monopoli-hero-img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    max-height: 680px;
}

.pretty-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-weight: 600;
}

.pretty-list li {
    background: #f7fbfd;
    border: 1px solid #d7eef3;
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background 0.2s;
}
.pretty-list li:hover { background: #e8f7fa; }

.h2-perche-puglia {
    color: #17A3DF !important;
}

.p-perche-puglia {
    color: #474747;
    font-size: 20px;
}

@media (max-width: 992px) {
    .why-puglia-v2 .row { flex-direction: column; }
    .pretty-list { margin-top: 20px; }
}

/* ================= CONECTIVIDAD ================= */
.connectivity { background: #f3f6f8; }

.map-frame {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.distance-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.distance-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #d7eef3;
    color: #003944;
    font-weight: 600;
}
.distance-list li span {
    color: #17A3DF;
    font-weight: 700;
}
.distance-list li:last-child { border-bottom: none; }

@media (max-width: 576px) {
    .monopoli-hero { width: 100%; border-radius: 14px; }
    .map-frame { height: 360px; }
}

/* ================= GALLERIA ================= */
.gallery-section { background: #f3f6f8; }

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

/* Modal */
#galleryModal .modal-content { background: #000; }

#galleryModal .carousel-inner {
    min-height: 60vh;
}

#galleryModal .carousel-item { 
    text-align: center; 
}

#galleryModal .carousel-item.active{
  display: flex;             /* activa: visible y flexible */
  align-items: center;       /* centrado vertical */
  justify-content: center;   /* centrado horizontal */
}

#galleryModal .carousel-item img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}


.boton-cerrar {
    z-index:1065;
}

/* ================= CONTACTO VISUAL ================= */
.contact-visual-section {
    background-color: #f3f6f8;
    color: #003944;
}

.contact-visual-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 550px;
}

.btn-custom-submit {
    display: inline-block;
    background: linear-gradient(92.97deg, #06068F 10.08%, #3636CA 97.54%);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 28px;
    border: none;
    transition: 0.3s ease;
}

.btn-custom-submit:hover { opacity: 0.9; }

@media (max-width: 992px) {
    .contact-visual-section .row { flex-direction: column-reverse; }
    .contact-visual-img { margin-bottom: 20px; }
}
