:root {
    --restore-accent: #9a1d0f;
    --restore-accent-2: #f39201;
    --restore-text: #2a2522;
    --restore-max: 1170px;
    --restore-header-h: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--restore-text);
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    line-height: 1.6;
    background: #fff;
}

body.admin-bar,
body {
    padding-top: var(--restore-header-h);
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrapper,
.container,
.single-page-container,
.header--row-inner,
.footer--row-inner {
    width: 100%;
}

.container {
    max-width: var(--restore-max);
    margin: 0 auto;
    padding: 0 20px;
}

.row--wrapper,
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(31, 21, 17, 0.08);
}

.header--row {
    display: block;
}

.header-main-inner {
    min-height: var(--restore-header-h);
    display: flex;
    align-items: center;
}

.site-header .container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.hfg-slot.right,
.builder-item.has-nav,
.item--inner.builder-item--primary-menu,
.nv-nav-wrap,
.nav-menu-primary {
    width: 100%;
}

.site-logo img,
.neve-site-logo {
    width: 88px;
    height: auto;
    display: block;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.menu-desktop,
.menu-mobile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-desktop {
    justify-content: flex-end;
}

.menu-desktop > li,
.menu-mobile > li {
    position: relative;
}

.nav-ul li > .wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-ul a {
    display: inline-flex;
    align-items: center;
    color: #4c1911;
    font-weight: 600;
}

.nav-ul > li > .wrap > a,
.nav-ul > li > .wrap > button,
.nav-ul > li > .wrap > div[role="button"] {
    min-height: 44px;
}

.nav-ul .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(39, 28, 20, 0.14);
}

.nav-ul .sub-menu li a {
    padding: 10px 16px;
    width: 100%;
}

.menu-desktop > li:hover > .sub-menu,
.menu-desktop > li:focus-within > .sub-menu {
    display: flex;
}

.caret-wrap,
.navbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6b2b1f;
    cursor: pointer;
}

.hide-on-desktop {
    display: none;
}

.header-menu-sidebar,
.header-menu-sidebar-overlay {
    display: none !important;
}

.neve-main > .container,
.single-page-container {
    max-width: var(--restore-max);
    margin: 0 auto;
    padding: 0 20px;
}

body.home .single-page-container {
    max-width: none;
    padding: 18px 0 0;
}

body.home .single-page-container > .row,
body.home .nv-single-page-wrap.col {
    display: block;
    max-width: none;
    width: 100%;
}

body.home .entry-content > :not(#carouselExampleAutoplaying) {
    max-width: var(--restore-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nv-content-wrap {
    width: 100%;
}

.alignfull {
    width: 100%;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #d7d2cc;
}

body.home .carousel {
    width: 100%;
    border-radius: 0;
    margin: 0;
}

.carousel-inner {
    position: relative;
    min-height: 72vh;
}

.carousel-item {
    position: relative;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    min-height: 72vh;
    height: 72vh;
    object-fit: cover;
    display: block;
    filter: brightness(0.62);
}

body.home .carousel-inner,
body.home .carousel-item img {
    min-height: calc(100vh - var(--restore-header-h) - 18px);
}

body.home .carousel-item img {
    height: calc(100vh - var(--restore-header-h) - 18px);
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(22, 10, 6, 0.62) 0%, rgba(22, 10, 6, 0.18) 70%);
}

.imgtitle {
    position: absolute;
    z-index: 2;
    left: 8%;
    right: 8%;
    bottom: 13%;
    width: min(760px, 84%);
    color: #fff;
}

body.home .imgtitle {
    left: min(7vw, 92px);
    right: min(7vw, 92px);
    bottom: 10%;
}

.imgtitle h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 8vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.homeP {
    max-width: 640px !important;
    font-size: 1.25rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

#homeButt,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--restore-accent-2);
    color: #26150f;
    font-weight: 700;
    cursor: pointer;
}

.wp-block-columns.is-layout-flex {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin: 50px 0 0;
}

.wp-block-column {
    text-align: center;
    padding: 28px 24px 30px;
    border-radius: 22px;
    background: #faf7f3;
    box-shadow: 0 12px 30px rgba(60, 41, 27, 0.06);
}

.wp-block-column h2 {
    margin: 12px 0;
}

.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.cover {
    position: relative;
    min-height: 72vh;
}

.cover span {
    inset: 0;
}

.cover-container {
    opacity: 1;
    width: min(720px, 88%);
}

.cover-container img {
    width: min(220px, 45vw);
}

.descr {
    font-size: clamp(30px, 4vw, 48px);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 60px;
}

.image-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

#banner {
    margin: 30px auto 0;
    border-radius: 24px;
    background-position: center;
}

.site-footer {
    margin-top: 70px;
    background: #6c1200;
    color: #fff7f2;
}

.footer-bottom-inner {
    padding: 48px 0;
}

.widget-area,
.widget_block,
.block-footer,
.footer {
    width: 100%;
}

.footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

#footer-menu-container,
.social,
#link-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    margin-right: 10px;
    color: #fff7f2;
}

.list {
    display: grid;
    gap: 12px;
}

.list li {
    line-height: 1.5;
}

.list a {
    color: #fff7f2;
}

.component-wrap {
    display: none !important;
}

.cky-consent-container,
.cky-modal,
.cky-btn-revisit-wrapper {
    display: none !important;
}

.neve-skip-link {
    position: absolute;
    left: -9999px;
}

.neve-skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 1200;
    padding: 8px 10px;
    background: #fff;
}

/* Global full-width normalization and fallback media styling */
:root {
    --restore-max: 1440px;
    --restore-content-pad: 88px;
    --restore-header-h: 94px;
}

.container,
.neve-main > .container,
.single-page-container,
.site-footer .container {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding-left: var(--restore-content-pad);
    padding-right: var(--restore-content-pad);
}

.single-page-container,
.single-page-container > .row,
.nv-single-page-wrap.col,
.nv-content-wrap.entry-content,
.wrapper,
.neve-main {
    max-width: none !important;
    width: 100%;
}

.site-header {
    border-bottom: 1px solid rgba(80, 46, 36, 0.08);
}

.site-header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.site-header .row--wrapper,
.header-main-inner,
.menu-desktop,
.builder-item--logo,
.builder-item--logo .item--inner,
.site-logo {
    min-height: var(--restore-header-h);
    align-items: center;
}

.site-logo img,
.neve-site-logo {
    width: 92px;
}

.site-header .row--wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
}

.site-header .hfg-slot.left,
.site-header .hfg-slot.right {
    display: flex;
    align-items: center;
    min-height: var(--restore-header-h);
}

.site-header .hfg-slot.left,
.site-header .builder-item.desktop-left,
.site-header .builder-item.tablet-left,
.site-header .builder-item.mobile-left {
    flex: 0 0 auto;
    width: auto;
}

.site-header .hfg-slot.right {
    flex: 1 1 auto;
    justify-content: flex-end;
    width: auto;
}

.site-header .builder-item.has-nav,
.site-header .item--inner.builder-item--primary-menu,
.site-header .nv-nav-wrap,
.site-header .nav-menu-primary,
.site-header .menu-desktop {
    width: auto;
}

.site-header .menu-desktop {
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-height: var(--restore-header-h);
}

.entry-content > *:not(.alignfull):not(.alignwide),
.nv-page-title-wrap {
    padding-left: 0;
    padding-right: 0;
}

.nv-page-title-wrap {
    padding-top: 14px;
    padding-bottom: 14px;
}

.nv-page-title h1 {
    margin: 0;
    color: #6f1d11;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

body.home .single-page-container {
    padding-top: 8px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: none !important;
}

body.home .single-page-container > .row,
body.home .nv-single-page-wrap.col,
body.home .entry-content {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .entry-content > #carouselExampleAutoplaying,
body.home .entry-content > .home-video {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

body.home .entry-content > :not(#carouselExampleAutoplaying):not(.home-video) {
    max-width: none;
}

body.home .carousel-inner,
body.home .carousel-item img {
    min-height: calc(100vh - var(--restore-header-h) - 8px);
}

body.home .carousel-item img {
    height: calc(100vh - var(--restore-header-h) - 8px);
}

body.home #carouselExampleAutoplaying,
body.home #carouselExampleAutoplaying.carousel,
body.home .home-video,
body.home .home-video .cover {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0;
}

body.home .home-video > div,
body.home .home-video > div > div {
    width: 100%;
    margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 1;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background-image: none;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
}

.carousel-control-prev-icon::before {
    left: 21px;
    border-left: 3px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
}

.carousel-control-next-icon::before {
    right: 21px;
    border-right: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.cover,
.wp-block-cover {
    overflow: hidden;
    background: linear-gradient(135deg, #6e625b 0%, #a89b91 100%);
}

.cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover > span {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(18, 10, 6, 0.34) 0%, rgba(18, 10, 6, 0.18) 100%);
}

.cover video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.cover-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

body.home .home-cards,
body.home .home-blog,
body.home .home-percorsi {
    margin-left: var(--restore-content-pad);
    margin-right: var(--restore-content-pad);
}

body.home .home-video {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    position: relative;
    left: auto;
    right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home-section {
    position: relative;
}

.home-cards,
.home-blog,
.home-percorsi {
    padding-top: 32px;
    padding-bottom: 20px;
}

.home-blog {
    padding-top: 12px;
}

.home-video {
    margin-top: 20px;
    margin-bottom: 18px;
}

.home-video .cover {
    position: relative;
    min-height: 74vh;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: none;
    border-radius: 0;
}

.home-video .cover-container {
    width: min(860px, 90%);
}

.home-cards .wp-block-columns,
.home-blog > h2,
.home-blog > p,
.home-blog .wp-block-buttons,
.home-percorsi #divTexts,
.home-percorsi .image-gallery,
.home-percorsi #banner {
    margin-left: 0;
    margin-right: 0;
}

.home-blog {
    text-align: left;
}

.home-percorsi .image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-percorsi .image-gallery img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

#neve_body .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#neve_body .image-gallery img {
    aspect-ratio: 1.45 / 1;
}

.wp-block-cover {
    min-height: min(78vh, 820px) !important;
}

.wp-block-cover__background {
    background: linear-gradient(90deg, rgba(24, 11, 6, 0.48) 0%, rgba(24, 11, 6, 0.18) 100%);
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    padding-left: var(--restore-content-pad);
    padding-right: var(--restore-content-pad);
}

.wp-block-cover__inner-container p {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.4rem) !important;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.wp-block-cover.is-missing-media .wp-block-cover__image-background,
img.is-missing-media {
    display: none !important;
}

.wp-block-spacer {
    height: 40px !important;
}

.image-gallery img {
    background: #e5ddd6;
}

.entry-content {
    padding-bottom: 36px;
}

#divTexts {
    padding: 0 var(--restore-content-pad);
    margin: 0 0 28px;
}

#titleStaccoGaller {
    margin: 0 0 8px;
    color: #6f1d11;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
}

#divTexts h6 {
    margin: 0;
    color: #6f615a;
    font-size: 1rem;
    font-weight: 500;
}

#banner {
    min-height: 280px;
    margin-top: 28px;
    border-radius: 24px;
    cursor: pointer;
    background-image: url("https://web.archive.org/web/20230713190010im_/https://www.terredicosenza.it/wp-content/uploads/2023/04/BANNER.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-section {
    position: relative;
}

.page-section + .page-section {
    margin-top: 18px;
}

.page-section.page-title-section {
    margin-top: 0;
}

.page-section.page-hero-section + .page-section {
    margin-top: 26px;
}

@media (max-width: 959px) {
    :root {
        --restore-header-h: 76px;
    }

    .site-logo img,
    .neve-site-logo {
        width: 72px;
    }

    .hide-on-mobile.hide-on-tablet {
        display: none;
    }

    .hide-on-desktop {
        display: block;
    }

    .hide-on-desktop .row--wrapper {
        justify-content: space-between;
    }

    .hide-on-desktop .builder-item--nav-icon {
        display: flex;
    }

    .hide-on-desktop .navbar-toggle {
        padding: 10px 0 10px 14px;
    }

    .hide-on-desktop .bars {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
    }

    .hide-on-desktop .icon-bar {
        width: 22px;
        height: 2px;
        background: #5d2317;
        display: block;
    }

    .header-menu-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 360px);
        height: 100vh;
        padding: 92px 22px 24px;
        background: #fff;
        box-shadow: 18px 0 48px rgba(30, 19, 14, 0.18);
        transform: translateX(-110%);
        transition: transform 0.28s ease;
        z-index: 1100;
    }

    .header-menu-sidebar.open {
        display: block !important;
        transform: translateX(0);
    }

    .header-menu-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(14, 8, 5, 0.4);
        z-index: 1090;
    }

    .header-menu-sidebar-overlay.open {
        display: block !important;
    }

    .header-menu-sidebar .menu-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-menu-sidebar .sub-menu {
        position: static;
        display: flex;
        min-width: 0;
        margin: 6px 0 0 14px;
        padding: 8px 0;
        box-shadow: none;
        background: transparent;
    }

    .carousel-inner,
    .carousel-item img,
    .cover {
        min-height: 62vh;
    }

    body.home .single-page-container {
        padding-top: 10px;
    }

    body.home .entry-content > :not(#carouselExampleAutoplaying) {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.home .carousel {
        border-radius: 0;
    }

    body.home .carousel-inner,
    body.home .carousel-item img {
        min-height: calc(92vh - var(--restore-header-h));
    }

    body.home .carousel-item img {
        height: calc(92vh - var(--restore-header-h));
    }

    .imgtitle {
        left: 22px;
        right: 22px;
        bottom: 32px;
        width: auto;
    }

    .homeP {
        font-size: 1rem;
        max-width: 100% !important;
    }

    .wp-block-columns.is-layout-flex,
    .footer,
    .image-gallery {
        grid-template-columns: 1fr;
    }

    :root {
        --restore-content-pad: 28px;
        --restore-header-h: 76px;
    }

    .container,
    .neve-main > .container,
    .single-page-container,
    .site-footer .container,
    .wp-block-cover__inner-container {
        padding-left: var(--restore-content-pad);
        padding-right: var(--restore-content-pad);
    }

    .site-logo img,
    .neve-site-logo {
        width: 68px;
    }

    body.home .single-page-container {
        padding-top: 6px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 44px;
        height: 44px;
    }

    .carousel-control-prev-icon::before {
        left: 17px;
    }

    .carousel-control-next-icon::before {
        right: 17px;
    }

    #banner {
        min-height: 180px;
        border-radius: 18px;
    }

    .home-cards,
    .home-blog,
    .home-percorsi {
        margin-left: var(--restore-content-pad);
        margin-right: var(--restore-content-pad);
    }

    .home-video .cover {
        min-height: 62vh;
    }

    .home-percorsi .image-gallery {
        grid-template-columns: 1fr;
    }

    #neve_body .image-gallery {
        grid-template-columns: 1fr;
    }
}
