/* La Torretta - menu redesign + carousel + footer */

/* =========================================================
   HEADER / LAYOUT SHARED WIDTH
   ========================================================= */
.header-new {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 20px auto 0 !important;
    padding: 18px 30px !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}

header.header-new,
main[role="main"],
footer.site-footer-card {
    width: calc(100% - 40px);
    max-width: 1200px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area,
.logo-area:link,
.logo-area:visited,
.logo-area:hover,
.logo-area:active,
.logo-area:focus {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: inherit !important;
}

.logo-img {
    height: 60px;
}

.logo-text {
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #6f6b3f;
    line-height: 1;
}

.logo-sub {
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #6f6b3f;
    margin-top: 4px;
}

.menu-new {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-new a {
    text-decoration: none;
    font-family: "OpenSansSemibold", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1.2;
}

.menu-new a:hover {
    background: #eae7dc;
    color: #6f6b3f;
}

.menu-new a.active {
    border-bottom: 2px solid #6f6b3f;
    color: #6f6b3f;
}

.languages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.languages a {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    line-height: 1;
}

.languages img {
    height: 14px;
    display: block;
}

/* =========================================================
   MAIN + BOX BIANCO
   ========================================================= */
main[role="main"] {
    background: transparent !important;
    margin: 30px auto 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.box.box-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(6px) !important;
    padding: 24px 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.box.box-wrapper:before,
.box.box-wrapper:after {
    content: none !important;
    display: none !important;
}

.box.box-wrapper > *:last-child,
.box.box-wrapper p.aright {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.box.box-wrapper p.aright {
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

.content-slider-bg,
.tabcontent,
.contentSlider {
    background: transparent !important;
    border: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.box.box-wrapper p:not(.msg-warning),
.box.box-wrapper li,
.box.box-wrapper dt,
.box.box-wrapper dd {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.65;
    hyphens: auto;
}

/* =========================================================
   FOOTER CARD
   ========================================================= */
footer.site-footer-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 24px auto 24px !important;
    max-width: 1200px !important;
}

footer.site-footer-card p,
footer.site-footer-card .site-footer-card__info,
footer.site-footer-card .site-footer-card__links {
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer-card__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    padding: 12px 30px;
    text-align: left;
}

.site-footer-card__info {
    font-family: "OpenSansRegular", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #5a5a52;
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer-card__links {
    font-family: "OpenSansSemibold", Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #6f6b3f;
    flex: 0 0 auto;
    white-space: nowrap;
}

.site-footer-card__links a {
    color: #6f6b3f;
    text-decoration: none;
    font-weight: 600;
}

.site-footer-card__links a:hover {
    text-decoration: underline;
}

.site-footer-card__links span {
    margin: 0 8px;
    color: #a39d86;
}

/* =========================================================
   HOME CAROUSEL
   ========================================================= */
.lt-carousel {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 18px auto 4px;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.lt-carousel__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 620px;
    overflow: hidden;
    background: #1e1e1e;
    border-radius: 18px 18px 0 0;
}

.lt-carousel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.lt-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.lt-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lt-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lt-carousel__arrow {
    position: absolute;
    top: calc(50% - 22px);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: Georgia, serif;
}

.lt-carousel:hover .lt-carousel__arrow,
.lt-carousel__arrow:focus-visible {
    opacity: 1;
}

.lt-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.lt-carousel__arrow--prev { left: 14px; }
.lt-carousel__arrow--next { right: 14px; }

.lt-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background: #4a4a4a;
    border-radius: 0 0 18px 18px;
}

.lt-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lt-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.lt-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* =========================================================
   SOLUZIONI.PHP — ROYALSLIDER
   ========================================================= */
.content-slider-bg {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 0 !important;
    background: transparent !important;
}

.tabcontents {
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
}

.tabcontent {
    width: 100%;
}

#tab_ul.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

#tab_ul.tabs li {
    width: auto !important;
    margin: 0 !important;
}

#tab_ul.tabs li a {
    padding: 8px 18px !important;
    border-radius: 10px !important;
}

.royalSlider.contentSlider.rsDefault {
    width: 100% !important;
    max-width: 980px !important;
    margin: 18px auto 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.royalSlider.contentSlider .rsOverflow,
.royalSlider.contentSlider .rsContainer,
.royalSlider.contentSlider .rsSlide {
    width: 100% !important;
    max-width: 100% !important;
    background: #f3f3f0 !important;
}

.royalSlider.contentSlider .rsImg {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

.royalSlider.contentSlider .rsArrow {
    opacity: 1;
}

.royalSlider.contentSlider .rsArrowIcn {
    background-color: rgba(0, 0, 0, 0.72) !important;
    border-radius: 10px !important;
}

.royalSlider.contentSlider .rsBullets {
    background: rgba(70, 70, 70, 0.95) !important;
}

.royalSlider.contentSlider .rsBullet span {
    background: rgba(255, 255, 255, 0.45) !important;
}

.royalSlider.contentSlider .rsBullet.rsNavSelected span {
    background: #fff !important;
}

.tabcontent > p {
    max-width: 980px;
    margin: 14px auto 0 !important;
}

.tabcontent > .box {
    display: none !important;
}

/* =========================================================
   STORIA
   ========================================================= */
.storia-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 18px;
}

.storia-testo {
    flex: 1 1 auto;
    min-width: 0;
}

.storia-foto {
    flex: 0 0 320px;
    max-width: 320px;
}

.storia-foto img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
}

.storia-testo p {
    margin: 0;
    text-align: left;
    line-height: 1.65;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 680px) {
    .header-new {
        width: calc(100% - 20px);
        margin: 18px auto 0 !important;
        padding: 14px 18px !important;
    }

    header.header-new,
    main[role="main"],
    footer.site-footer-card {
        width: calc(100% - 20px);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-new {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-img { height: 52px; }
    .logo-text { font-size: 24px; }
    .logo-sub { font-size: 12px; letter-spacing: 1.5px; }

    .box.box-wrapper {
        padding: 18px 18px 20px !important;
    }

    footer.site-footer-card {
        margin: 22px auto 20px !important;
    }

    .site-footer-card__inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 12px 18px;
    }

    .site-footer-card__info,
    .site-footer-card__links {
        font-size: 12px;
    }

    .lt-carousel,
    .royalSlider.contentSlider.rsDefault {
        max-width: 100% !important;
    }

    .lt-carousel__viewport {
        aspect-ratio: 4 / 3;
        max-height: 360px;
    }

    .lt-carousel__arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
        opacity: 1;
        background: rgba(0, 0, 0, 0.65);
    }
}

/* DOVE SIAMO */
.dove-siamo-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 18px;
}

.dove-siamo-mappa {
    flex: 0 0 56%;
}

.dove-siamo-mappa iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: 0;
    border-radius: 14px;
}

.dove-siamo-testo {
    flex: 1 1 44%;
    text-align: left;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 8px;
}

.dove-siamo-testo p {
    margin: 0 0 18px 0;
    line-height: 1.55;
}

.dove-siamo-testo p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .dove-siamo-layout {
        flex-direction: column;
    }

    .dove-siamo-mappa,
    .dove-siamo-testo {
        width: 100%;
        flex: 1 1 100%;
    }

    .dove-siamo-mappa iframe {
        height: 420px;
    }

    .dove-siamo-testo {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .dove-siamo-testo {
        flex: 1 1 44%;
        text-align: justify;
        text-justify: inter-word;
        max-height: 700px;
        overflow-y: auto;
        padding-right: 8px;
    }

    .dove-siamo-testo p {
        margin: 0 0 18px 0;
        line-height: 1.55;
        hyphens: auto;
    }

    .dove-siamo-testo p {
        text-align: justify;
    }

    .storia-layout {
        flex-direction: column;
    }

    .storia-foto {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .storia-foto img {
        max-width: 100%;
    }
}

/* =========================================================
   MOBILE HAMBURGER MENU
   ========================================================= */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid rgba(111, 107, 63, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #6f6b3f;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #f3efe4;
    border-color: rgba(111, 107, 63, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.menu-toggle__bars {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: background .2s ease;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.menu-toggle__bars::before {
    top: -7px;
}

.menu-toggle__bars::after {
    top: 7px;
}

.header-new.menu-open .menu-toggle__bars {
    background: transparent;
}

.header-new.menu-open .menu-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.header-new.menu-open .menu-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 767px) {
    .header-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .logo-area {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        margin-top: 6px;
        align-self: flex-start;
    }

    .menu-new {
        display: none;
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 14px 0 0 0;
        padding: 10px 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border-top: 1px solid rgba(111, 107, 63, 0.12);
        box-sizing: border-box;
        overflow: hidden;
    }

    .header-new.menu-open .menu-new {
        display: flex;
    }

    .header-new.menu-open .logo-area {
        display: none;
    }

    .header-new.menu-open .header-inner {
        justify-content: flex-end;
    }

    .menu-new a {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        text-align: left;
        white-space: normal;
        font-size: 16px;
        line-height: 1.3;
        padding: 12px 16px;
        border-radius: 14px;
        background: #ede8dc;
        color: #444;
    }

    .menu-new a:hover,
    .menu-new a:focus-visible {
        background: #e4dece;
    }

    .menu-new a.active {
        background: #dfd7c6;
        color: #6f6b3f;
        border-bottom: 0;
    }

    .menu-new .languages {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        margin: 4px 0 0 0;
        padding: 10px 0 0 0;
        border-top: 1px solid rgba(111, 107, 63, 0.10);
        box-sizing: border-box;
    }

    .menu-new .languages a {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        margin: 0;
        background: transparent !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .menu-new .languages img {
        height: 18px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 10px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        margin-top: 4px;
    }

    .menu-new {
        margin-top: 10px;
    }

    .menu-new a {
        font-size: 15px;
        padding: 11px 14px;
    }
}