:root {
    --primary-color: #2E2B26;
    --secondary-color: #D8C3A5;
    --hover-color: #7C6F64;
    --text-color: #FFFFFF;
    --light-color: #F5ECE1;
    --transition-speed: 0.6s;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-color);
}

::-webkit-scrollbar-horizontal {
    height: 12px;
}

::-webkit-scrollbar-track-horizontal {
    background-color: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb-horizontal {
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb-horizontal:hover {
    background-color: var(--hover-color);
}

body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.hr-styled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
}

.hr-styled::before,
.hr-styled::after {
    content: "";
    flex: 1;
    height: 3px;
    background-color: var(--secondary-color);
}

.hr-styled span {
    color: white;
    padding: 0 20px;
    font-weight: bold;
    background-color: white;
    height: 3px;
    display: block;
    width: 60%;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#back-to-top:hover {
    background-color: var(--hover-color);
    transform: scale(1.1);
}

#back-to-top:focus {
    outline: none;
}

@media (max-width: 576px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

.custom-hr {
    border: none;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    margin: 2rem auto;
    width: 60%;
    opacity: 0.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.fas.fa-map-marker-alt {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
}

.navbar {
    background-color: transparent;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
    z-index: 1050000000000000000000000000000000000000000000000000000000000000 !important;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    transition: color var(--transition-speed);
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--hover-color) !important;
}

.navbar-brand svg text {
    fill: var(--text-color) !important;
    transition: fill var(--transition-speed);
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--text-color);
    transition: color var(--transition-speed);
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    max-width: 100vw !important;
    overflow-x: hidden;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.navbar-toggler {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(0);
}

.navbar.scrolled .navbar-brand svg text {
    fill: var(--secondary-color) !important;
}















.hero-section {
    background: url('images/avvocato-civilista-napoli.avif') center center no-repeat;
    filter: brightness(0.9);
    background-size: cover;
    padding: 100px 0;
    padding-top: calc(100px + 56px);
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn-primary:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--hover-color);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    font-size: 18px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

#chi-sono {
    background-color: #dfdfdf;
    border-radius: 6px;
    color: #2E2B26;
    line-height: 2rem;
    margin-top: 5rem;
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.card {
    border-radius: 8px;
}

.card .card-body {
    background-color: #fff;
}

.card-title {
    color: var(--primary-color);
}

.card-text {
    color: #555;
}

.custom-tagline {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.custom-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.custom-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.custom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: filter 0.3s ease;
}

.custom-card:hover .custom-card-image img {
    filter: brightness(0.7);
}

.custom-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    z-index: 2;
}

.custom-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-card-description {
    font-size: 1rem;
    font-weight: 400;
}

#altri-servizi {
    background-color: #dfdfdf;
    margin-top: 6rem;
}

.service-card-extra {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.service-card-extra:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--hover-color);
}

.service-title-extra {
    color: var(--hover-color);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 18px;
}

.service-title-extra:hover {
    color: var(--light-color);
}

.service-card-extra .card-body {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
}

.service-description:hover {
    color: var(--light-color) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

.mySwiper {
    width: 100%;
    padding: 20px 0;
}

.slide-card {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 10px #7c6f6452 !important;
    text-align: center !important;
    transition: transform 0.3s !important;
    margin-top: 5rem;
}

.slide-card:hover {
    transform: scale(1.05) !important;
}

.slide-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: var(--primary-color) !important;
}

.slide-description {
    font-size: 14px !important;
    color: #555 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--hover-color) !important;
    transform: scale(0.5) !important;
    width: auto !important;
    height: auto !important;
    margin-top: 1rem !important;
}

.swiper-pagination-bullet {
    background: var(--primary-color) !important;
}

.swiper-button-next {
    margin-right: -1rem !important;
}

.swiper-button-prev {
    margin-left: -1rem !important;
}

.tagline {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.title-section {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.description-section {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#chi-sono-new {
    background-color: rgb(233, 233, 233);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.new-title {
    color: #333;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.new-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.new-card {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.new-card-img {
    position: relative;
    width: 100%;
    height: 15rem;
    overflow: hidden;
}

.new-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-card-img img:hover {
    transform: scale(1.1);
}

.new-card-body {
    padding: 1.5rem;
}

.new-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.new-card-text {
    font-size: 1rem;
    color: #777;
}

.new-hover-zoom:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}



a:hover {
    text-decoration: none;
    color: var(--hover-color);
}

.new-hr {
    width: 50%;
    height: 1px;
    margin: 2rem auto;
    background-color: var(--secondary-color);
    border: none;
}

.new-hr-wide {
    width: 60%;
    height: 2px;
    margin: 2rem auto;
    background-color: var(--primary-color);
    border: none;
}

#contatti {
    position: relative;
    background-image: url('images/contact-section-avv.emiliabusiello.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px;
}

#contatti::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#contatti * {
    position: relative;
    z-index: 2;
}

#contatti h1 {
    color: var(--text-color);
}

#contatti p {
    color: var(--secondary-color) !important;
}


.new-contact-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#newContactForm .form-label {
    font-weight: 600;
    color: var(--text-color);
}

#newContactForm .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 0.75rem;
}

#newContactForm .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#newContactForm .btn-primary:hover {
    filter: brightness(85%);
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

.contact-title {
    font-size: small;
    text-align: left;
}

.contact-description {
    font-size: smaller;
    text-align: left;
}

.new-footer {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    padding: 3rem 0;
    color: var(--text-color);
}

.new-footer .container {
    max-width: 1140px;
    margin: 0 auto;
}

.new-footer .main-footer {
    margin-bottom: 2rem;
}


.new-footer-img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


.new-footer-nav {
    padding: 0;
}

.new-footer-nav li {
    margin-bottom: 0.75rem;
}

.new-footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.new-footer-nav a:hover {
    color: var(--secondary-color);
}


.new-footer-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 1rem;
}


.new-footer-social-link {
    transition: color 0.3s ease;
}

.new-footer-social-link:hover {
    color: var(--secondary-color);
}


.new-footer-hr {
    border: none;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 2rem auto;
    width: 80%;
}


.new-footer-credit p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.new-footer-credit a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.new-footer-credit a:hover {
    color: var(--hover-color);
}

.new-footer-nav .nav-link {
    display: inline-block;
    padding: 0;
}





.contact-icons {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.contact-icon {
    display: flex;
    margin: 8px 0;
    color: white;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.contact-icon.whatsapp {
    background-color: #25D366;
}

.contact-icon.email {
    background-color: var(--secondary-color);
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon.whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.contact-icon.email:hover {
    background-color: var(--hover-color);
    color: white;
}

.contact-icon.call {
    background-color: #34b7f1;
}

.contact-icon.call:hover {
    background-color: #006f99;
    color: white;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), rgba(46, 43, 38, 0.9));
    color: var(--text-color);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.cookie-text {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--light-color);
    text-decoration: underline;
    transition: color var(--transition-speed) ease;
}

.cookie-text a:hover {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.cookie-btn.accept {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cookie-btn.decline {
    background-color: var(--hover-color);
    color: var(--text-color);
}

.cookie-btn:hover {
    transform: scale(1.05);
}

.flag-link {
    z-index: 999999999999999999999999999999999999999999999999999999999999999999999999999999999;
    display: inline-block;
    will-change: transform;
    text-decoration: none;
    color: var(--secondary-color);
}

.flag-icon {
    width: 50px;
    height: auto;
    border: none;
    transition: transform 0.3s ease;
}

.flag-link:hover .flag-icon {
    transform: scale(1.2);
    color: var(--hover-color);
}








@media (max-width: 2000px) and (min-width: 1200px) {
    .new-contact-img {
        max-width: 70%;
    }
}

@media (max-width: 1200px) {
    .new-title {
        font-size: 1.5rem;
    }

    .new-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .service-card-extra {
        padding: 10px;
    }

    .service-card {
        margin: 10px 0;
    }

    #chi-sono-new .row {
        flex-direction: column;
        align-items: center;
    }

    .new-title {
        font-size: 1.25rem;
    }

    .new-text {
        font-size: 0.9rem;
    }

    .new-card {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .new-card-body {
        padding: 1rem;
    }

    .new-card-title {
        font-size: 1rem;
    }

    .new-card-text {
        font-size: 0.875rem;
    }

    #contatti .row {
        flex-direction: column;
    }

    .new-contact-img {
        max-height: 50%;
        max-width: 50%;
        padding-bottom: 2rem;
        margin-top: -3rem;
    }

    .new-footer .main-footer {
        flex-direction: column;
        align-items: center;
    }

    .new-footer-img-col {
        text-align: center;
        margin-bottom: 1rem;
    }

    .new-footer-nav li {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding-top: 0;
        margin: 0;
    }

    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--primary-color);
        padding-bottom: 15px;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-link {
        font-size: 18px;
        color: var(--text-color);
        transition: color var(--transition-speed) ease-in-out;
    }

    .nav-link:hover {
        color: var(--hover-color);
    }

    .navbar-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height -4s ease-in-out;
    }

    .navbar-collapse.show {
        max-height: 500px;
    }

    #chi-sono .row>div {
        margin-bottom: 20px;
    }
}


@media (max-width: 576px) {
    .navbar-brand svg {
        max-width: 50vw !important;
    }

    .new-title {
        font-size: 1.1rem;
    }

    .new-text {
        font-size: 0.8rem;
    }

    .new-footer-img-col {
        display: none;
    }

    .new-footer-nav a {
        font-size: 0.9rem;
    }

    .new-footer-quote {
        font-size: 0.85rem;
    }

    .new-footer-credit p {
        font-size: 0.8rem;
    }

    .contact-icon {
        margin-top: -1.2rem;
    }
}

@media (max-width: 281px) {
    .navbar-brand svg {
        max-width: 40vw !important;
    }
}