/* Bootstrap 5 + Swiper compatibility with legacy theme */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Reserve layout space from intrinsic width/height while staying responsive */
img {
    max-width: 100%;
    height: auto;
}

picture {
    display: contents;
}

body { padding-top: 70px; }

.img-circle { border-radius: 50%; }

.thumbnail button.more,
.thumbnail .more {
    display: block;
    z-index: 4;
    position: absolute;
    top: -100px;
    left: 50%;
    margin-left: -41px;
    width: 80px;
    height: 80px;
    font-size: 40px;
    color: #fff;
    line-height: 70px;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: none;
    pointer-events: none;
}

/* GSAP-driven motion — disable legacy CSS transitions */
#portfolio-grid .thumbnail .portfolio-thumb-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #181A1C;
}

#portfolio-grid .thumbnail .portfolio-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center center;
}

#portfolio-grid .thumbnail img {
    transform-origin: center center;
}

/* Portfolio hover: class-driven — legacy :hover breaks during fast scroll */
#portfolio-grid .thumbnail .more {
    top: -100px;
    margin-top: 0;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, top 0.3s ease, transform 0.3s ease;
}

#portfolio-grid .thumbnail .mask {
    top: 100%;
    transition: top 0.25s ease;
}

#portfolio-grid .thumbnail:hover .more {
    top: -100px;
    margin-top: 0;
    opacity: 0;
    transform: scale(0.6);
}

#portfolio-grid .thumbnail:hover .mask {
    top: 100%;
}

#portfolio-grid .thumbnail.is-portfolio-hover .more {
    top: 40%;
    margin-top: -40px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, top 0.3s ease, transform 0.3s ease;
}

#portfolio-grid .thumbnail.is-portfolio-hover .mask {
    top: 0;
    transition: top 0.25s ease;
}

#portfolio-grid .thumbnail:hover button.more,
.thumbnail:hover button.more {
    transition: none;
}

@media (hover: none), (pointer: coarse) {
    #portfolio-grid .thumbnail button.more,
    #portfolio-grid .thumbnail .more {
        top: 50%;
        margin-top: -40px;
        opacity: 1;
    }
}

.cosafaccio .circle-border {
    transform-origin: center center;
    transition: none;
    display: inline-block;
}

#cosafaccio .cosafaccio {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
}

#cosafaccio .cosafaccio h3 {
    margin: 1rem 0 0.75rem;
    padding: 0 1rem;
}

#cosafaccio .cosafaccio p {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 1.5rem 1.5rem !important;
    margin: 0;
}

#cosafaccio .row {
    row-gap: 2.5rem;
    align-items: stretch;
}

/* Custom GSAP cursor (desktop only) */
@media (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor .nav-link,
    body.has-custom-cursor .filter-btn,
    body.has-custom-cursor .thumbnail,
    body.has-custom-cursor .scroll-top,
    body.has-custom-cursor input,
    body.has-custom-cursor textarea {
        cursor: none;
    }

    .cursor-dot,
    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10001;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        will-change: transform;
        background: #F79420;
        box-shadow: 0 0 10px rgba(247, 148, 32, 0.55);
    }

    .cursor-ring {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform;
    }

    .cursor-ring-svg {
        width: 40px;
        height: 40px;
        display: block;
        overflow: visible;
        shape-rendering: geometricPrecision;
    }

    .cursor-ring-stroke {
        fill: none;
        stroke: rgba(247, 148, 32, 0.55);
        stroke-width: 2px;
    }

    .cursor-ring-fill {
        fill: transparent;
        opacity: 0;
    }

    body.cursor-theme-light .cursor-dot {
        background: #181A1C;
        box-shadow: 0 0 10px rgba(24, 26, 28, 0.35);
    }

    body.cursor-theme-light .cursor-ring-stroke {
        stroke: rgba(24, 26, 28, 0.65);
    }

    body.cursor-theme-light.cursor-hover .cursor-ring-stroke {
        stroke: #181A1C;
    }

    body.cursor-theme-light.cursor-hover .cursor-ring-fill {
        fill: #181A1C;
        opacity: 0.14;
    }

    .cursor-magnetic {
        will-change: transform;
    }
}

.scroll-top.scrollup {
    display: block;
    text-align: center;
    width: 39px;
    height: 39px;
    border-radius: 5px;
    position: fixed;
    bottom: 30px;
    right: 20px;
    border: 1px solid #fff;
    background: #F79420;
    color: #fff;
    line-height: 37px;
    z-index: 1000;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
}

.site-navbar .btn-navbar {
    border: none;
    background: #F79420;
    color: #181A1C;
    padding: 8px 12px;
    border-radius: 8px;
    transition: none;
}

.site-navbar .btn-navbar .icon-menu:before { color: #181A1C; }

.site-navbar.navbar {
    background: #181A1C !important;
    min-height: 70px;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.site-navbar .navbar-brand img { width: 120px; height: 40px; }

/* Modern nav buttons */
.site-navbar #top-navigation .nav-link:not(.nav-link-lang) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82) !important;
    border: none !important;
    border-radius: 8px;
    margin: 10px 4px;
    padding: 10px 16px !important;
    background: transparent !important;
    transition: none;
}

.site-navbar #top-navigation .nav-link:not(.nav-link-lang):hover,
.site-navbar #top-navigation .nav-link:not(.nav-link-lang):focus,
.site-navbar #top-navigation .nav-link:not(.nav-link-lang).active {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
}

.nav-btn-bg {
    position: absolute;
    inset: 0;
    background: rgba(247, 148, 32, 0.18);
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 0;
    pointer-events: none;
}

.nav-btn-line {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    background: #F79420;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    z-index: 1;
    pointer-events: none;
}

.nav-btn-label {
    position: relative;
    z-index: 2;
    display: inline-block;
}

#menu_lang.nav-lang {
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-navbar .nav-link-lang {
    position: relative;
    border: none !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06) !important;
    transition: none;
}

.site-navbar .nav-link-lang:hover {
    background: rgba(247, 148, 32, 0.15) !important;
}

.site-navbar .nav-link-lang img {
    display: block;
    height: 18px;
    width: auto;
    position: relative;
    z-index: 1;
}

/* Override legacy navbar link styles (border + 1s transition) */
.site-navbar.navbar .nav > li > a.nav-link,
.site-navbar.navbar .navbar-nav .nav-link {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
}

.site-navbar.navbar .nav > li:hover > a.nav-link:not(.nav-link-lang),
.site-navbar.navbar .nav > .active > a.nav-link {
    border: none !important;
    background-color: transparent !important;
}

[data-section-id] {
    scroll-margin-top: 78px;
}

@media (max-width: 991px) {
    /* Legacy CSS forced nav-collapse always visible — restore Bootstrap 5 toggle */
    .site-navbar .nav-collapse.collapse:not(.show) {
        display: none !important;
    }

    .site-navbar .nav-collapse.collapse.show {
        display: block !important;
    }

    .site-navbar .navbar-collapse {
        clear: both;
        width: 100%;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.25rem;
    }

    .site-navbar .navbar-toggler {
        display: block;
    }

    .site-navbar #top-navigation {
        width: 100%;
    }

    .site-navbar #top-navigation .nav-link:not(.nav-link-lang) {
        margin: 4px 0;
        width: 100%;
        text-align: center;
    }

    .nav-btn-bg {
        transform-origin: center center;
    }
}

#home { padding: 0; }

/* Swiper as legacy da-slider */
.hero-swiper.da-slider {
    width: 100%;
    min-width: 320px;
    height: 520px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: transparent url(/assets/images/Slider.png) repeat-x 0% center;
    background-size: auto 100%;
}

.hero-swiper .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F79420;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.hero-swiper .swiper-wrapper { position: relative; z-index: 2; height: 100%; }

.hero-swiper .swiper-slide {
    height: 520px;
    position: relative;
}

.hero-swiper .da-slide-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    height: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 72px 72px;
    box-sizing: border-box;
}

.hero-swiper .da-slide-copy {
    flex: 1 1 0;
    min-width: 0;
    max-width: 52%;
}

.hero-swiper .swiper-slide h1,
.hero-swiper .swiper-slide h2 {
    position: static;
    width: auto;
    font-size: 33px;
    font-weight: bold;
    color: #181A1C;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.hero-swiper .swiper-slide .da-subtitle {
    position: static;
    width: auto;
    font-size: 22px;
    font-weight: normal;
    color: #181A1C;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.hero-swiper .swiper-slide h4 {
    position: static;
    width: auto;
    font-size: 22px;
    font-weight: normal;
    color: #181A1C;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.hero-swiper .swiper-slide p {
    position: static;
    width: auto;
    max-width: 100%;
    padding: 0;
    color: #fff;
    height: auto;
    max-height: none;
    overflow: visible;
    font-weight: 400;
    margin: 0;
}

.hero-swiper .swiper-slide .da-img {
    position: static;
    flex: 0 0 auto;
    width: auto;
    max-width: 42%;
    text-align: center;
}

.hero-swiper .swiper-slide .da-img img { max-width: 320px; width: 100%; height: auto; }

.hero-swiper .swiper-slide .da-img img.lcp-hero-image {
    opacity: 1;
    visibility: visible;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 45px;
    height: 100%;
    top: 0;
    margin: 0;
    z-index: 10;
    background: transparent no-repeat center center;
    color: transparent;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { display: none; }

.hero-swiper .swiper-button-prev { left: 15px; background-image: url(/assets/images/Left.png); }
.hero-swiper .swiper-button-next { right: 15px; background-image: url(/assets/images/Right.png); }

.hero-swiper .swiper-pagination {
    bottom: 20px;
    z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
    width: 50px;
    height: 3px;
    border-radius: 0;
    background: #fff;
    opacity: 1;
    margin: 0 5px 0 0 !important;
}

.hero-swiper .swiper-pagination-bullet-active { background: #29383F; }

/* Portfolio filters as nav-pills */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

#portfolio-grid > .portfolio-item {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

#portfolio-grid .thumbnail {
    margin-bottom: 0;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

#portfolio-grid .thumbnail:focus-visible {
    outline: 2px solid #F79420;
    outline-offset: 3px;
}

#portfolio-grid .thumbnail .portfolio-thumb-media {
    border-radius: 20px 20px 0 0;
}

.single-project .portfolio-thumb-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #181A1C;
    border-radius: 20px;
}

.single-project .portfolio-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

/* Section triangles: legacy CSS used fixed 585px borders causing horizontal overflow */
.section > .triangle,
#contact > .triangle {
    border-left: 50vw solid transparent !important;
    border-right: 50vw solid transparent !important;
}

@media (max-width: 991px) {
    #portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    #portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-filters.nav-pills { justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; gap: 8px; }

.portfolio-filters .filter-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(24, 26, 28, 0.1) !important;
    border: none !important;
    border-radius: 999px;
    color: #181A1C;
    margin: 0;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: none;
}

.filter-btn-bg {
    position: absolute;
    inset: 0;
    background: #181A1C;
    border-radius: 999px;
    transform: scale(0.85);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.filter-btn-label {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.secondary-section .portfolio-filters .filter-btn,
.secondary-section .portfolio-filters .nav-link.filter-btn {
    border: none !important;
    color: #181A1C;
    background: rgba(24, 26, 28, 0.1) !important;
    border-radius: 999px;
}

.secondary-section .portfolio-filters .filter-btn.active,
.secondary-section .portfolio-filters .nav-link.filter-btn.active {
    color: #fff;
    background: transparent !important;
}

.secondary-section .portfolio-filters .filter-btn:hover,
.secondary-section .portfolio-filters .nav-link.filter-btn:hover {
    color: #181A1C;
    background: rgba(24, 26, 28, 0.1) !important;
}

.secondary-section .portfolio-filters .filter-btn.active:hover,
.secondary-section .portfolio-filters .nav-link.filter-btn.active:hover {
    color: #fff;
}

/* Portfolio detail panel */
.single-project {
    margin-bottom: 30px;
    background: #181A1C;
    padding: 15px;
    display: none;
    scroll-margin-top: 78px;
    border-radius: 20px;
}
.single-project.open { display: block; }
.single-project .project-title {
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #F79420;
    overflow: hidden;
}
.single-project .project-title h3 { float: left; color: #F79420; margin: 0; }
.single-project .close-detail {
    float: right;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #F79420;
    font-size: 28px;
    cursor: pointer;
}
.single-project .project-info span { color: #F79420; width: 80px; display: inline-block; }
.single-project .project-info a,
.single-project .project-info a:link,
.single-project .project-info a:visited {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.single-project .project-info a:hover,
.single-project .project-info a:focus {
    color: #F79420;
}

.skills li .bar {
    width: 0;
}

/* About — profile photo */
.team .thumbnail.team-photo {
    height: auto;
    overflow: visible;
    text-align: center;
}

.team .thumbnail.team-photo .about-photo-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.team .thumbnail.team-photo .about-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center top;
}

.team .thumbnail.team-photo .about-photo-wrap .mask {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F79420;
    opacity: 0.92;
    transition: top 0.25s ease-out;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    box-sizing: border-box;
}

.team .thumbnail.team-photo .about-photo-wrap:hover .mask {
    top: 0;
}

.team .thumbnail.team-photo .about-photo-wrap .mask .about-role {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.25;
    color: #181A1C;
    text-align: center;
}

.team .thumbnail.team-photo .about-photo-wrap .mask h2 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.25;
    color: #181A1C;
    text-align: center;
}

.team .thumbnail.team-photo h3 {
    float: none;
    text-align: center;
    margin-top: 12px;
}

.team .thumbnail.team-photo .team-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    float: none;
    position: relative;
    margin: 10px auto 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.team .thumbnail.team-photo .team-social li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.team .thumbnail.team-photo .team-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

/* About — skills bars */
#skills .skills-heading {
    margin: 0 0 24px;
    padding: 0;
    color: #F79420;
    font-size: 20px;
    font-weight: normal;
}

.skills {
    margin: 0;
    padding: 0;
}

.skills li {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    background: #fff;
    height: 42px;
    padding: 0;
    overflow: hidden;
}

.skills li:last-child {
    margin-bottom: 0;
}

.skills li .bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #F79420;
    z-index: 1;
    width: 0;
}

.skills li .skill-name {
    position: relative;
    display: block;
    font-size: 15px;
    padding: 0;
    margin: 0;
    left: 10px;
    z-index: 1;
    color: #181A1C;
}

.skills li h3 {
    position: relative;
    font-size: 15px;
    padding: 0 14px;
    margin: 0;
    left: 0;
    z-index: 2;
    color: #181A1C;
    line-height: 1.3;
    display: flex;
    align-items: center;
    min-height: 42px;
    width: 100%;
}

.skill-bar h3 {
    position: relative;
    font-size: 15px;
    padding: 0 0 0 10px;
    margin: 0;
    line-height: 40px;
    z-index: 2;
    color: #181A1C;
}
.skill-bar .bar-fill {
    height: 40px;
    position: absolute;
    top: 1px;
    left: 1px;
    background-color: #F79420;
    width: 0;
    z-index: 1;
    transition: width 1s ease;
}

/* Map background */
.map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #181A1C;
}

.map-canvas iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.map-canvas .map-open-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(24, 26, 28, 0.85);
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}

.map-canvas .map-open-link:hover {
    background: #F79420;
    color: #181A1C;
}

.section, #contact {
    overflow-x: clip;
}

.map-wrapper {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 0;
    overflow: visible;
}

.map-form-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    pointer-events: none;
}

.map-form-overlay .container,
.map-form-overlay .row,
.map-form-overlay .contact-form {
    pointer-events: auto;
}

.contact-form.centered {
    float: none;
    margin: 0 auto !important;
    box-sizing: border-box;
    margin-top: 0 !important;
    height: auto;
    overflow: visible;
    padding-bottom: 28px;
}

.contact-form h3 {
    padding-bottom: 16px;
    margin-bottom: 0;
}

.contact-form .message-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.contact .contact-info {
    text-align: center;
}

.contact .info-mail {
    border: 1px solid #fff;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0.75rem auto 1rem;
    padding: 12px 20px;
    box-sizing: border-box;
    display: block;
    text-align: center;
}

.contact .info-mail .email_footer {
    color: #fff !important;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
}

.contact .info-mail .email_footer:hover {
    color: #181A1C !important;
}

.contact ul.social {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem !important;
    margin: 1.25rem auto 2rem;
    padding: 0;
    list-style: none;
}

.contact ul.social li {
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 50px;
}

.contact ul.social li a {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    transition: none;
}

.contact .social li a:hover {
    color: #181A1C !important;
}

.contact .social [class^="icon-"]:before,
.contact .social [class*=" icon-"]:before {
    font-family: "porta", sans-serif;
    display: inline-block;
}

.section .title h1,
.section .title h2 {
    font-weight: normal;
    margin-bottom: 20px;
    padding: 0;
}

.primary-section .title h2 {
    color: #FFF;
}

.secondary-section .title h2 {
    color: #181A1C;
}

@media (max-width: 991px) {
    .hero-swiper .da-slide-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 48px 56px 64px;
    }

    .hero-swiper .da-slide-copy {
        max-width: 100%;
        text-align: center;
    }

    .hero-swiper .swiper-slide h1,
    .hero-swiper .swiper-slide h2,
    .hero-swiper .swiper-slide .da-subtitle,
    .hero-swiper .swiper-slide h4,
    .hero-swiper .swiper-slide p,
    .hero-swiper .swiper-slide .da-img {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-swiper .swiper-slide .da-img {
        max-width: 280px;
        width: 100%;
    }

    .hero-swiper.da-slider { height: auto; min-height: 520px; }
    .hero-swiper .swiper-slide { height: auto; min-height: 520px; padding: 20px 0; }

    #cosafaccio .row {
        row-gap: 3rem;
    }

    #cosafaccio .col-md-4 {
        margin-bottom: 0;
    }

    #cosafaccio .cosafaccio .circle-border {
        margin-bottom: 0.5rem;
    }

    #cosafaccio .cosafaccio p {
        padding: 0 0.75rem 0 !important;
    }

    #skills .skills-heading {
        margin-top: 20px;
    }

    .map-canvas {
        display: none !important;
    }

    .map-wrapper {
        min-height: 0;
        padding: 28px 12px 32px;
        display: block;
        overflow: visible;
    }

    .map-form-overlay .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .map-form-overlay .contact-form {
        padding: 22px 16px 32px;
        margin: 0 !important;
        width: 100%;
        position: relative;
        top: auto;
        overflow: visible;
    }

    .contact .contact-form {
        margin-top: 0 !important;
    }

    .contact .info-mail {
        max-width: calc(100% - 1.5rem);
        padding: 12px 16px;
    }

    .contact ul.social {
        gap: 0.5rem !important;
    }

    .contact .contact-info {
        margin-top: 2rem;
        padding-top: 0.5rem;
    }
}

@media (max-width: 575px) {
    .hero-swiper .da-slide-inner {
        padding: 40px 48px 56px;
    }

    #cosafaccio .row {
        row-gap: 3.5rem;
    }

    .map-wrapper {
        padding: 24px 10px 28px;
    }

    .map-form-overlay .contact-form {
        padding: 20px 14px 36px;
    }

    .contact .info-mail {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

.rich-text {
    margin-bottom: 0;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.rich-text a {
    color: inherit;
    text-decoration: underline;
}

