/*
 * ITROOM - stile comune del sito e del pannello cliente:
 * base, barra superiore, menu, menu fisso e mobile, footer, finestre modali, cookie, banner.
 * Sopra Bootstrap 5 e Font Awesome 6; le icone in "content" sono FA 6 Free solid (peso 900).
 */

/* ==========================================================================
   Colori comuni
   ========================================================================== */

:root {
    --action-bg: #a9652e;
    --action-hover: #925526;
    --action-active: #80491f;
    --itroom-focus: #618a9c;
    --itroom-page-bg: #f5f6f8;
    --itroom-topbar-bg: #1e2832;
    --itroom-topbar-border: #232f3a;
    --itroom-navbar-bg: #293541;
    --itroom-navbar-border: #414d59;
    --itroom-submenu-bg: #3a4048;
    --itroom-submenu-border: #272331;
    --itroom-navbar-submenu-bg: #303b46;
    --itroom-footer-bg: #242c37;
    --itroom-footer-border: #3d4957;
    --itroom-link-hover: #ff8000;
    --itroom-link-active: #ff9933;
    --itroom-mobile-bg: #333b40;
    --itroom-mobile-hover: #0496d5;
}

/* ==========================================================================
   Dimensioni del testo
   ========================================================================== */

/* il numero è la misura da 1400px in su; scende in modo lineare fino a 375px */
:root {
    --txt-12: 12px;
    --txt-13: clamp(12px, calc(12px + (100vw - 375px) / 1025), 13px);
    --txt-14: clamp(13px, calc(13px + (100vw - 375px) / 1025), 14px);
    --txt-15: clamp(14px, calc(14px + (100vw - 375px) / 1025), 15px);
    --txt-16: clamp(15px, calc(15px + (100vw - 375px) / 1025), 16px);
    --txt-17: clamp(15px, calc(15px + (100vw - 375px) * 2 / 1025), 17px);
    --txt-18: clamp(16px, calc(16px + (100vw - 375px) * 2 / 1025), 18px);
    --txt-20: clamp(17px, calc(17px + (100vw - 375px) * 3 / 1025), 20px);
    --txt-22: clamp(18px, calc(18px + (100vw - 375px) * 4 / 1025), 22px);
    --txt-24: clamp(20px, calc(20px + (100vw - 375px) * 4 / 1025), 24px);
    --txt-28: clamp(22px, calc(22px + (100vw - 375px) * 6 / 1025), 28px);
    --txt-32: clamp(24px, calc(24px + (100vw - 375px) * 8 / 1025), 32px);
}

/* !important come fs-* di Bootstrap: la classe nella pagina vince anche sulle regole con id */
.txt-12 {
    font-size: var(--txt-12) !important;
}

.txt-13 {
    font-size: var(--txt-13) !important;
}

.txt-14 {
    font-size: var(--txt-14) !important;
}

.txt-15 {
    font-size: var(--txt-15) !important;
}

.txt-16 {
    font-size: var(--txt-16) !important;
}

.txt-17 {
    font-size: var(--txt-17) !important;
}

.txt-18 {
    font-size: var(--txt-18) !important;
}

.txt-20 {
    font-size: var(--txt-20) !important;
}

.txt-22 {
    font-size: var(--txt-22) !important;
}

.txt-24 {
    font-size: var(--txt-24) !important;
}

.txt-28 {
    font-size: var(--txt-28) !important;
}

.txt-32 {
    font-size: var(--txt-32) !important;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
    margin-top: 0;
    background: var(--itroom-page-bg);
    color: #100d10;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.42857143;
}

a {
    color: #3a333a;
}

/* link senza sottolineatura, in tutti i componenti: per questo !important */
html body a:any-link {
    text-decoration: none !important;
}

/* Pulsanti principali: colore del sito (#a9652e, hover #925526, active #80491f) */
.btn-primary,
.btn:not([class*="btn-"]) {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--action-bg);
    --bs-btn-border-color: var(--action-bg);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--action-hover);
    --bs-btn-hover-border-color: var(--action-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--action-active);
    --bs-btn-active-border-color: var(--action-active);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--action-bg);
    --bs-btn-disabled-border-color: var(--action-bg);
    background-image: none;
    text-shadow: none;
}

.btn-primary:focus-visible,
.btn:not([class*="btn-"]):focus-visible {
    color: #fff;
    background-color: var(--action-hover);
    border-color: var(--action-hover);
}

/* classe vecchia, resta per index.php e il pannello; nel codice nuovo px-0 */
.nopadding {
    padding-right: 0;
    padding-left: 0;
}

/* ==========================================================================
   Animazioni del menu (fadeInDown, fadeOutUp, fadeInUp, fadeInLeft, zoomIn)
   Le classi le aggiunge js.js: menu fisso, logo compatto, menu mobile.
   ========================================================================== */

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeOutUp {
    animation-name: fadeOutUp;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

.zoomIn {
    animation-name: zoomIn;
}

.movedmenu-slide,
.ml-navigation,
.cookie-accept {
    animation-duration: 0.3s;
}

.movedmenu-slideup {
    animation-duration: 0.1s;
}

.menuimgspeed {
    animation-duration: 0.4s;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

/* ==========================================================================
   Barra superiore: Carrello, Contattaci, Registrati, Login
   Nel menu fisso la barra diventa .movedmenu.menu-fixed e riceve una copia del menu principale
   ========================================================================== */

#header-top {
    position: relative;
    height: 40px;
}

.topmenu {
    position: relative;
    z-index: 9999;
    height: 40px;
    background: var(--itroom-topbar-bg);
    border-bottom: 1px solid var(--itroom-topbar-border);
}

@media (max-width: 768px) {
    .topmenu {
        height: 48px;
    }
}

.itroom-cart {
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#nav-top li a {
    display: block;
    height: 40px;
    color: #cbcdd4;
    font-size: 13px;
    font-weight: lighter;
}

#nav-top .itroom-cart > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 9px 9px;
    outline: 0;
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #nav-top .itroom-cart > li > a {
        gap: 4px;
        padding-inline: 6px;
    }
}

/* FA 6 a 11px è grande come FA 4 a 13px */
#nav-top .itroom-cart .itroom-service-icon {
    flex: 0 0 auto;
    width: 14px;
    font-size: 11px;
    text-align: center;
}

/* voci: hover arancione, voce attiva arancione chiaro */
#nav-top .itroom-cart > li > a:hover,
#nav-top ul > li:hover > a,
.navigation .menu li a:hover,
.itroom-navbar-ul > li:hover > a {
    color: var(--itroom-link-hover);
    transition: color 0.5s;
}

#nav-top li a.itactive,
.navigation .menu > li > a.itactive {
    color: var(--itroom-link-active);
    transition: color 0.5s;
}

/* voce della pagina corrente nel sottomenu */
.itroom-navbar-container a.subitactive,
.itroom-navbar-container a.itsubactive {
    color: var(--itroom-link-active);
}

/* ==========================================================================
   Menu principale: navbar di Bootstrap, logo a sinistra e voci a destra
   ========================================================================== */

#header-top + .navbar {
    z-index: 999;
    height: 76px;
    padding: 0 0 5px;
    background-color: var(--itroom-navbar-bg);
    border: 1px solid var(--itroom-navbar-border);
    box-shadow: rgba(0, 0, 0, 0.4) 0 0 4px;
}

@media (min-width: 768px) {
    .navigation .menu,
    .move-totop > .menu {
        column-gap: 2px;
    }
}

.navigation .menu > li,
#nav-top .move-totop > ul > li {
    position: relative;
}

.navigation .menu > li {
    margin-top: -1px;
}

.navigation .menu > li > a,
#nav-top .move-totop > ul > li > a {
    position: relative;
    display: block;
}

.navigation .menu > li > a {
    padding: 24px 10px 27px;
    color: #e2e2e2;
    font-size: 17px;
    text-shadow: #23272f 1px 1px 0;
}

/* voce con sottomenu: sfondo al passaggio del mouse */
.has-submenu {
    background: transparent;
    transition: background 0.2s 0.2s;
}

.has-submenu:hover {
    background: var(--itroom-submenu-bg);
    transition: background 1s;
}

/* frecce delle voci (strelka_*, da functions.js); FA 6 a 10-11px è grande come FA 4 a 14-16px */
.navigation .strelka_down::after,
.navigation .strelka_up::after,
.strelka_left::after,
.strelka_left2::after {
    display: inline;
    float: right;
    margin-left: 4px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.navigation .strelka_down::after {
    content: "\f103";
    width: 9px;
    margin-top: 4px;
    font-size: 10px;
    line-height: 20px;
}

.navigation .strelka_up::after {
    content: "\f102";
    width: 9px;
    margin-top: 4px;
    font-size: 10px;
    line-height: 20px;
}

.strelka_left::after,
.strelka_left2::after {
    content: "\f105";
    font-size: 11px;
}

/* con il mouse sopra (strelka_left2) la freccia non si sposta e non cresce */
.navigation .itroom-navbar .itroom-navbar-ul > li > a.strelka_left::after,
.navigation .itroom-navbar .itroom-navbar-ul > li > a.strelka_left2::after,
.move-totop .itroom-navbar .itroom-navbar-ul > li > a.strelka_left::after,
.move-totop .itroom-navbar .itroom-navbar-ul > li > a.strelka_left2::after {
    margin-right: 5px;
    font-size: 11px;
}

/* sottomenu aperto verso sinistra, vicino al bordo destro dello schermo */
.strelka_right.strelka_left::after,
.strelka_right.strelka_left2::after {
    content: "\f104";
    float: left;
    margin-top: -1px;
    margin-left: -12px;
    font-size: 11px;
}

/* ==========================================================================
   Sottomenu a pannello (.itroom-navbar), posizione calcolata da navebar_position
   ========================================================================== */

.itroom-navbar {
    position: absolute;
    right: 0;
    left: 0;
    height: 200px;
    padding-top: 7px;
}

.navigation-block .itroom-navbar {
    left: -150%;
}

#nav-top .itroom-navbar {
    padding-top: 0;
}

.itroom-navbar-hide {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.itroom-navbar-show {
    opacity: 1;
    transition: opacity 0.5s;
}

.sub-ul-show {
    visibility: visible;
}

.itroom-navbar-container {
    z-index: 7;
    width: 600px;
    margin-top: -7px;
    background: var(--itroom-submenu-bg);
    border-right: 1px solid var(--itroom-submenu-border);
    border-bottom: 1px solid var(--itroom-submenu-border);
    border-left: 1px solid var(--itroom-submenu-border);
}

.topmenu .itroom-navbar-container {
    margin-top: -1px;
}

/* span: voce senza link (Hosting CMS) */
.itroom-navbar-container a,
.itroom-navbar-container span {
    color: #dbdfe6;
    text-shadow: #23272f 1px 1px 0;
    transition: color 0.5s;
}

.itroom-navbar-div {
    position: relative;
    display: block;
}

.itroom-navbar-container .itroom-navbar-div {
    height: 196px;
}

.itroom-navbar-ul {
    display: table-cell;
    padding-top: 7px;
    padding-left: 0;
    vertical-align: middle;
}

.itroom-navbar-container .itroom-navbar-div > .itroom-navbar-ul {
    position: absolute;
    top: 0;
    left: 330px;
    display: block;
    width: max-content;
}

.itroom-navbar-ul li {
    height: auto;
    font-size: 14px;
    line-height: 46px;
    text-indent: 4px;
    list-style-type: none;
    border-top: 1px solid #4e4f52;
    border-bottom: 1px solid #252628;
    cursor: pointer;
}

.itroom-navbar-ul li:first-child {
    border-top: none;
}

.itroom-navbar-ul li:last-child {
    border-bottom: none;
}

.itroom-navbar-ul > li > a {
    white-space: nowrap;
}

.topmenu .itroom-navbar-ul li {
    font-size: 15px;
    line-height: 35px;
    text-indent: 15px;
}

/* colonna descrittiva del pannello: icona, titolo, testo */
.itroom_menu_helper {
    position: relative;
    float: left;
    width: 320px;
    height: 300px;
    margin: 10px 10px 15px 0;
    padding: 0;
    overflow: hidden;
}

.itroom_menu_helper_right {
    float: right;
}

.itnav_helper {
    position: absolute;
    display: block;
    height: auto;
    padding-right: 7px;
    padding-left: 7px;
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #2d3032 #373a3c #5a5d5f;
    box-shadow: rgba(255, 255, 255, 0.1) 0 1px, rgba(0, 0, 0, 0.2) 0 2px 5px inset;
    color: #e0e0e0;
}

.topmenu .itnav_helper {
    padding: 0 5px;
}

.ithelper_header {
    color: #fff;
    font-size: 19px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: #000 1px 1px 0;
}

.ithelper_icon {
    width: 100%;
    max-height: 60px;
    margin-top: -5px;
    text-align: center;
}

.ithelper_icon img {
    width: auto;
    height: 80px;
    padding-top: 5px;
    padding-bottom: 8px;
}

[id*="itnavmenu"] .ithelper_icon img[data-src$=".svg"] {
    opacity: 0.7;
}

.ithelper_body {
    margin-top: 15px;
    color: #dbdfe6;
    text-align: center;
    text-shadow: #23272f 1px 1px 0;
}

.move-totop .ithelper_body {
    font-size: 14px;
}

#nav-top .ithas_helper > a {
    padding-top: 3px;
    font-size: 14px;
}

/* nel menu principale il pannello ha i colori della barra */
.navigation .has-submenu:hover,
.navigation .itroom-navbar-container,
.navigation .sub-ul {
    background-color: var(--itroom-navbar-submenu-bg);
}

.navigation .itroom-navbar-container,
.navigation .itroom-navbar-container .itnav_helper,
.navigation .sub-ul {
    border-color: var(--itroom-navbar-border);
}

/* secondo livello del pannello */
.sub-ul {
    position: absolute;
    z-index: 999;
    left: 101%;
    display: none;
    height: auto;
    min-width: 180px;
    margin: -52px 0 0;
    background: var(--itroom-submenu-bg);
    border-right: 1px solid var(--itroom-submenu-border);
    border-bottom: 1px solid var(--itroom-submenu-border);
    border-left: 1px solid var(--itroom-submenu-border);
    box-shadow: rgba(255, 255, 255, 0.2) -1px 0 0;
    text-transform: none;
    opacity: 0;
}

.topmenu .sub-ul {
    margin: -48px 0 0;
}

.itroom-navbar-container .itroom-navbar-div > .itroom-navbar-ul > li > .sub-ul {
    margin-left: 0;
}

.has-subsub {
    z-index: 999;
}

.has-subsub ul {
    padding-right: 7px;
    padding-left: 7px;
}

.has-subsub ul a {
    padding-left: 3px;
}

/* stato messo da functions.js: deve vincere sui colori di hover con #nav-top, per questo !important */
.menu_submenu_hover {
    color: #e06d05 !important;
    transition: color 0.5s;
}

.menu_submenu_defaut {
    color: #dbdfe6 !important;
    transition: color 0.2s;
}

/* ==========================================================================
   Menu fisso dopo lo scorrimento (.movedmenu.menu-fixed)
   ========================================================================== */

.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    transform: translateZ(0);
}

.topmenu-block .move-totop {
    float: left;
}

/* copia del menu principale nella barra fissa */
#nav-top .nav-pills > li > a {
    padding: 9px;
    outline: 0;
}

.move-totop li a {
    margin-top: 1px;
}

/* ==========================================================================
   Menu mobile (< 992 px): pannello .menumobile creato da functions.js
   ========================================================================== */

.logo-mobile,
.navigation-mobile {
    text-align: center;
}

@media (max-width: 768px) {
    .logo-mobile,
    .navigation-mobile {
        margin-top: 7px;
    }
}

.navigation-mobile .btn-primary {
    margin-top: -2px;
}

.mobile_block_body {
    overflow: hidden;
}

.menumobile {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background: var(--itroom-mobile-bg);
    box-shadow: rgba(0, 0, 0, 0.5) 0 2px 4px;
    color: #999;
    cursor: pointer;
    backface-visibility: hidden;
    transform: translate3d(-100%, 0, 0);
}

#nav-top + .menumobile-homemenu {
    background-color: var(--itroom-navbar-bg);
}

.home_itroom_mobile {
    float: left;
    width: 60%;
    padding: 9px 45px 9px 35px;
}

.ml-mobile-menu-button {
    float: right;
    padding: 3px 37px 8px 35px;
    color: #e77404;
    font-size: 32px;
}

.mobilemenu-menu,
.mobilehelp-menu {
    position: relative;
    background: var(--itroom-mobile-bg);
    line-height: 24px;
}

.mobilemenu-menu > ul > li:first-child {
    padding-top: 20px;
}

.mobilehelp-menu ul > li:last-child {
    padding-bottom: 20px;
}

.mobilemenu-menu > .nav {
    display: block;
}

/* voci di primo livello */
.mobilemenu-menu ul.menu > li,
.menumobile .itroom-cart li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #000;
    cursor: pointer;
}

.mobilemenu-menu > .nav > li {
    display: flow-root;
}

.mobilemenu-menu ul.menu > li:first-child {
    border-top: none;
}

.menumobile .itroom-cart li:last-child {
    border-bottom: none;
}

.menumobile-homemenu ul.menu > li > a,
.menumobile .itroom-cart > li > a {
    position: relative;
    display: block;
    padding: 9px 45px 9px 35px;
    color: #bbb;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: #000 1px 1px 1px;
}

.menumobile .itroom-cart > li > a {
    line-height: 25px;
}

.mobilemenu-menu ul.menu > li > a:hover,
.menumobile .itroom-cart > li > a:hover {
    background: #272b2f;
    color: var(--itroom-mobile-hover);
}

.mobilemenu-menu .has-submenu:hover > a,
.mobilemenu-menu .itactive,
.mobilemenu-menu ul.menu > li > a.itactive,
.mobilemenu-menu .itsubactive,
.mobilemenu-menu li ul li a:hover {
    color: var(--itroom-mobile-hover);
}

/* secondo livello, a fisarmonica */
.mobilemenu-menu .nav ul li {
    margin: 0;
    color: #fff;
}

.mobilemenu-menu .nav-child {
    text-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px;
}

.mobilemenu-menu li ul {
    display: none;
    padding-left: 20px;
    color: #515151;
    font-size: 13px;
    list-style-type: none;
}

.mobilemenu-menu li ul li a {
    color: #ddd;
    font-weight: 600;
    line-height: 25px;
}

.mobilemenu-menu .nav ul li a:hover {
    transition: 0.7s;
}

.menumobile-homemenu ul.menu > li > ul > li > a,
.menumobile-homemenu ul.menu > li > ul > li > span {
    position: relative;
    display: block;
    padding: 2px 45px 2px 1px;
}

.mobilemenu-menu .nav ul li a::before {
    content: "\f054";
    display: inline;
    margin-right: 11px;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

.mobilemenu-menu .nav ul li ul li a::before {
    margin-right: 5px;
    text-indent: 70px;
}

.has-submenu.yr-parent-accordion > a::after {
    content: "\f078";
    display: inline;
    float: right;
    font-family: "Font Awesome 6 Free";
    font-size: 1em;
    font-weight: 900;
}

/* ==========================================================================
   Footer (.footer > .itroom-footer, .footer2), nel colore scuro del banner.
   Colonne con la griglia di Bootstrap: fino a 991px i link due a due (col-6)
   ========================================================================== */

.footer {
    padding: 35px 0;
    background: var(--itroom-footer-bg);
}

.footer2 {
    padding: 5px 0;
    background: var(--itroom-footer-bg);
    border-top: 1px solid var(--itroom-footer-border);
}

.footer a {
    padding: 2px;
    color: #c8cacc;
    font-size: 14px;
    line-height: 23px;
    transition: color 0.5s;
}

/* telefono: link più alti, comodi da toccare */
@media (max-width: 767px) {
    .footer a {
        display: inline-block;
        padding: 7px 2px;
        font-size: 15px;
        line-height: 22px;
    }
}

.footer_menu .footerline_combined {
    margin-top: 20px;
    margin-bottom: 5px;
    color: #dbe2e9;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.5;
}

.footer_menu_li {
    margin: 5px 0;
}

.footer_menu_li li a:hover,
.footer_menu_li li a:focus {
    color: #fff;
}

.itroom-footer p {
    margin-top: 7px;
    color: #b9babc;
    font-size: 14px;
    line-height: 24px;
}

.footer2 p {
    margin: 5px 0 0;
    color: #b9babc;
    font-size: 15px;
    line-height: 26px;
}

.logo-footer {
    margin-left: -5px;
}

/* telefono: logo più grande */
@media (max-width: 767px) {
    .logo-footer {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

.scl {
    opacity: 0.5;
    cursor: pointer;
}

/* ==========================================================================
   Finestre modali (comuni al sito e al pannello cliente, larghezza 520 px).
   Nella pagina la finestra ha modal-dialog-centered e modal-dialog-scrollable:
   al centro dello schermo e, se è più alta, scorre solo il testo
   ========================================================================== */

body .modal {
    --bs-modal-width: 520px;
    --bs-modal-margin: 18px;
    --bs-modal-padding: 27px;
    --bs-modal-color: #223d49;
    --bs-modal-bg: #fff;
    --bs-modal-border-color: #d6e1e7;
    --bs-modal-border-radius: 12px;
    --bs-modal-header-padding: 25px 27px 12px;
    --bs-modal-header-border-width: 0;
    --bs-modal-footer-gap: 10px;
    --bs-modal-footer-border-width: 0;
}

@media (min-width: 576px) {
    body .modal {
        --bs-modal-margin: 24px;
    }
}

body .modal .modal-content {
    box-shadow: rgba(23, 59, 82, 0.17) 0 24px 75px;
    font: 14px / 1.7 Roboto, Arial, sans-serif;
}

body .modal .modal-header {
    align-items: flex-start;
    gap: 12px;
}

body .modal .modal-header .withline {
    margin: 0;
    padding: 0;
    background: none;
    color: #223d49;
    font: 600 21px / 1.4 Roboto, Arial, sans-serif;
    text-align: left;
}

body .modal .modal-header .btn-close {
    --bs-btn-close-opacity: 0.8;
    --bs-btn-close-hover-opacity: 1;
    --bs-btn-close-focus-shadow: none;
    flex: 0 0 auto;
    order: 2;
    margin: 0 0 0 auto;
}

body .modal .modal-header .btn-close:hover {
    background-color: #edf3f6;
}

/* testo senza spazio sopra e sotto: lo danno titolo e pulsanti */
body .modal .modal-body {
    padding: 0 var(--bs-modal-padding);
    overscroll-behavior: contain;
    color: #526b7a;
    line-height: 1.7;
    text-align: left;
}

body .modal .modal-body p,
body .modal .modal-body li {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

/* più spazio sotto i pulsanti che sopra */
body .modal .modal-footer {
    gap: 10px;
    padding: 22px 27px 27px;
}

body .modal .modal-footer > * {
    margin: 0;
}

body .modal .modal-footer .btn {
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 10px;
    --bs-btn-font-family: Roboto, Arial, sans-serif;
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 500;
    --bs-btn-line-height: 1.5;
    --bs-btn-border-radius: 6px;
    min-height: 44px;
}

body .modal a:focus-visible,
body .modal button:focus-visible {
    outline: 2px solid var(--itroom-focus);
    outline-offset: 3px;
}

body .modal-backdrop {
    --bs-backdrop-bg: #193748;
    --bs-backdrop-opacity: 0.45;
}

/* il CSS del catalogo dei temi (dsvcat.css) azzera l'opacità del fondo */
body .modal-backdrop.show {
    opacity: var(--bs-backdrop-opacity);
}

body.modal-open .topmenu {
    z-index: 1030;
}

/* finestre del catalogo dei temi (dsviewer): la loro pagina la scrive il componente, senza
   modal-dialog-centered e modal-dialog-scrollable, qui lo stesso effetto */
body .dsvmodal .modal-dialog,
body .dsvmodal-description .modal-dialog {
    display: flex;
    align-items: center;
    width: calc(100% - 36px);
    max-width: var(--bs-modal-width);
    min-height: calc(100% - 48px);
    margin: 24px auto;
}

.ir-cart-page #runmodal .modal-content,
.ir-cart-page .modal-remove-item .modal-content,
body .dsvmodal .modal-content,
body .dsvmodal-description .modal-content {
    max-height: calc(100dvh - 48px);
    overflow: hidden;
}

.ir-cart-page #runmodal .modal-body,
.ir-cart-page .modal-remove-item .modal-body {
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 575.98px) {
    body .modal {
        --bs-modal-padding: 22px;
        --bs-modal-header-padding: 22px 22px 12px;
    }

    body .modal .modal-footer {
        padding: 20px 22px 22px;
    }

    body .modal .modal-footer .btn:only-child {
        width: 100%;
    }
}

/* Pulsante "svuota campo" accanto al campo dominio (posizione da functions.js) */
.clear_input {
    position: absolute;
    z-index: 9;
    font-size: 17px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out;
}

.clear_input:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Avviso cookie in fondo alla pagina (html/htmlcookie.php)
   ========================================================================== */

.cookie-accept {
    position: fixed;
    bottom: 0;
    z-index: 999;
    width: 100%;
    padding: 10px 0;
    background: #30353c;
}

.cookie-mess p {
    margin: 0 0 0.5em;
    color: #cbcdd4;
    font-size: 14px;
}

.cookie-mess .btn {
    padding: 2px 12px;
}

/* ==========================================================================
   Banner delle pagine (home e hosting)
   Colonne con la griglia di Bootstrap: container > row.itp-main > col-md-7.itp-copy + col-md-5.itp-art
   ========================================================================== */

/* il sopratitolo sta a 50px dal menu, su telefono a 30px */
.itp-banner {
    padding-top: 50px;
}

@media (max-width: 575.98px) {
    .itp-banner {
        padding-top: 30px;
    }
}

.itroom-home-slide {
    color-scheme: dark;
    color: #edf1f5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    background: radial-gradient(ellipse at 83% 33%, #334653 0%, #28323e 42%, #242c37 79%);
}

.itroom-home-slide h1,
.itroom-home-slide p {
    padding: 0;
}

.itroom-home-slide a {
    text-decoration: none;
    text-transform: none;
}

.itroom-home-slide a:focus-visible {
    outline: 3px solid #618a9c;
    outline-offset: 4px;
}

.itroom-home-slide .itp-offer:focus-visible {
    position: relative;
    z-index: 2;
}

.itroom-home-slide .itp-main {
    padding-bottom: 14px;
}

.itroom-home-slide .itp-copy {
    position: relative;
    z-index: 1;
}

.itroom-home-slide .itp-copy > :last-child {
    margin-bottom: 0;
}

/* occhiello: trattino arancione e maiuscolo */
.itroom-home-slide .itp-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b8c3d0;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.3px;
    margin: 0 0 16px;
}

.itroom-home-slide .itp-eyebrow > span {
    width: 18px;
    height: 2px;
    background: #ef922f;
    flex: 0 0 auto;
}

.itroom-home-slide h1 {
    margin: 0 0 17px;
    font-size: clamp(30px, 3.9vw, 46px);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -1.35px;
    color: #f5f7f9;
}

.itroom-home-slide h1 em {
    font-style: normal;
    color: #f8a24c;
}

/* la riga sotto il titolo */
.itroom-home-slide .itp-description {
    color: #c5cfda;
    line-height: 1.7;
    margin: 0 0 23px;
}

@media (max-width: 480px) {
    .itroom-home-slide .itp-description {
        line-height: 1.6;
    }
}

.itroom-home-slide .itp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--action-bg);
    color: #fff;
    transition: background-color .25s ease;
    min-height: 45px;
    border-radius: 5px;
    padding: 12px 19px;
    line-height: 1.5;
    font-weight: 700;
}

.itroom-home-slide .itp-cta:hover,
.itroom-home-slide .itp-cta:focus-visible {
    background: var(--action-hover);
    color: #fff;
}

.itroom-home-slide .itp-art {
    height: 254px;
    position: relative;
    isolation: isolate;
}

/* riquadri sotto il banner: row-cols-2 row-cols-md-5 g-0 */
.itroom-home-slide .itp-offers {
    margin: 0;
    border: 1px solid #4b5663;
    border-radius: 7px;
    background: #2c3642;
}

.itroom-home-slide .itp-offer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 20px 15px;
    color: #eef2f5;
    border-right: 1px solid #4b5663;
}

.itroom-home-slide .itp-offer:last-child {
    border-right: 0;
}

.itroom-home-slide .itp-offer:hover {
    background: #35414e;
}

.itroom-home-slide .itp-offer-featured {
    background: #423b33;
    box-shadow: inset 0 3px 0 #f5a04b;
}

.itroom-home-slide .itp-offer-featured:hover {
    background: #4b4035;
}

.itroom-home-slide .itp-offer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    line-height: 1.4;
    color: #d7dfe7;
}

.itroom-home-slide .itp-offer-price {
    display: block;
    color: #f2f5f8;
    font-weight: 500;
    letter-spacing: -.6px;
    line-height: 1.2;
}

/* "+ IVA" va sotto quando non c'è posto */
.itroom-home-slide .itp-offer-price b {
    font-weight: inherit;
    white-space: nowrap;
}

.itroom-home-slide .itp-offer-price small {
    color: #afbbc7;
    font-size: var(--txt-13);
    font-weight: 400;
    letter-spacing: 0;
}

.itroom-home-slide .itp-offer-price b > span {
    font-size: var(--txt-20);
}

.itroom-home-slide .itp-offer-featured .itp-offer-price,
.itroom-home-slide .itp-offer-featured .itp-offer-title {
    color: #ffb76f;
}

.itroom-home-slide .itp-offer-note {
    color: #afbbc7;
    line-height: 1.4;
}

@media (max-width: 880px) {
    .itroom-home-slide h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .itroom-home-slide .itp-eyebrow {
        letter-spacing: .8px;
    }

    .itroom-home-slide .itp-offer {
        padding: 14px 13px;
    }
}

/* colonne una sotto l'altra */
@media (max-width: 767.98px) {
    .itroom-home-slide .itp-main {
        padding-bottom: 24px;
    }

    .itroom-home-slide .itp-art {
        display: block;
        height: auto;
        min-height: 76px;
        margin-bottom: 14px;
    }

    .itroom-home-slide .itp-offer {
        padding: 14px 18px;
        border-bottom: 1px solid #4b5663;
    }

    .itroom-home-slide .itp-offer:nth-child(2n) {
        border-right: 0;
    }

    .itroom-home-slide .itp-offer:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .itroom-home-slide h1 {
        font-size: clamp(29px, 6.7vw, 38px);
    }

    .itroom-home-slide .itp-desktop-break {
        display: none;
    }
}

.itroom-home-slide .itp-arrow {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 1;
}

.itroom-home-slide .itp-offer-title .itp-arrow {
    color: #f5a04b;
}

/* ==========================================================================
   Linea con i cerchi (Hosting WordPress, Cambia password del pannello):
   in cima il titolo, sotto le voci con una riga di spiegazione
   ========================================================================== */

.hov-linea {
    margin-top: 4px;
}

.hov-linea-radice {
    position: relative;
    display: block;
    padding: 0 0 8px 30px;
    color: var(--action-bg);
    font-weight: 700;
    line-height: 26px;
    letter-spacing: -.2px;
}

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

.hov-linea li {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 0 10px 30px;
}

.hov-linea li:last-child {
    padding-bottom: 0;
}

/* il cerchio ha il colore della pagina: copre la linea che gli passa sotto */
.hov-linea-radice::before,
.hov-linea li::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--action-bg);
    border-radius: 50%;
    background: var(--itroom-page-bg);
}

.hov-linea-radice::before {
    top: 7px;
}

.hov-linea-radice::after,
.hov-linea li::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: #cfdde4;
}

.hov-linea-radice::after {
    top: 13px;
}

/* sull'ultima voce la linea finisce al centro del cerchio */
.hov-linea li:last-child::after {
    bottom: auto;
    height: 9px;
}

.hov-linea strong {
    color: #4a5765;
    font-size: var(--txt-15);
    font-weight: 700;
    line-height: 18px;
}

.hov-linea li > span {
    color: #4e5c6a;
    font-size: var(--txt-15);
    line-height: 1.35;
}

/* ==========================================================================
   Selettore verticale (pagine hosting, Domini del pannello): voci a sinistra (col-lg-3),
   pannello bianco a destra fino al bordo; fino a 991px fisarmonica (jQuery.selettore_verticale)
   ========================================================================== */

.hov-switch {
    --hov-ink: #28323e;
    --hov-mute: #4e5c6a;
    --hov-line: #dde2e8;
    --hov-line-soft: #edf0f3;
    scroll-margin-top: 40px;
}

.hov-switch .hov-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    padding-left: 2px;
    color: var(--hov-mute);
    font-weight: 500;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.hov-switch .hov-kicker::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    background: #ef922f;
}

/* la colonna delle voci segue lo scorrimento sotto il menu fisso */
.hov-switch-side {
    position: sticky;
    top: 56px;
    align-self: start;
    padding-top: 28px;
}

.hov-switch-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 22px 28px 0;
}

.hov-switch-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hov-switch-item:hover {
    background: #fff;
}

.hov-switch-item[aria-selected="true"] {
    border-color: var(--hov-line);
    background: #fff;
    box-shadow: inset 3px 0 0 var(--action-bg), 0 4px 12px #28323e12;
    cursor: default;
}

.hov-switch-item:focus-visible {
    outline: 2px solid #618a9c;
    outline-offset: 1px;
}

.hov-switch-text {
    display: grid;
    gap: 1px;
}

.hov-switch-text strong {
    color: var(--hov-ink);
    font-size: var(--txt-16);
    font-weight: 600;
    line-height: 1.35;
}

.hov-switch-item[aria-selected="true"] .hov-switch-text strong {
    color: var(--action-bg);
}

.hov-switch-text small {
    color: var(--hov-mute);
    font-size: var(--txt-14);
    line-height: 1.4;
}

.hov-switch-panels {
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax 0 0);
}

.hov-switch-panel {
    padding: 36px 0 44px 40px;
}

.hov-switch-panel:focus-visible {
    outline: 2px solid #618a9c;
    outline-offset: -2px;
}

/* selettore aperto (jQuery.selettore_verticale): da 992px pannelli uno sotto l'altro divisi da una linea,
   la voce porta al suo pannello anche quando è illuminata */
@media (min-width: 992px) {
    .hov-switch-aperto .hov-switch-panel + .hov-switch-panel {
        border-top: 1px solid var(--hov-line-soft);
    }

    .hov-switch-aperto .hov-switch-item[aria-selected="true"] {
        cursor: pointer;
    }
}

/* fino a 991px fisarmonica: elenco e pannelli «sciolti» (display: contents)
   e messi in ordine voce 1, pannello 1, voce 2… */
@media (max-width: 991.98px) {
    .hov-switch {
        flex-direction: column;
        padding: 18px 0 28px;
    }

    .hov-switch-side,
    .hov-switch-list,
    .hov-switch-panels {
        display: contents;
    }

    .hov-switch .hov-kicker {
        order: 0;
        margin: 0 0 4px;
    }

    .hov-switch-list > :nth-child(1) {
        order: 1;
    }

    .hov-switch-panels > :nth-child(1) {
        order: 2;
    }

    .hov-switch-list > :nth-child(2) {
        order: 3;
    }

    .hov-switch-panels > :nth-child(2) {
        order: 4;
    }

    .hov-switch-list > :nth-child(3) {
        order: 5;
    }

    .hov-switch-panels > :nth-child(3) {
        order: 6;
    }

    .hov-switch-list > :nth-child(4) {
        order: 7;
    }

    .hov-switch-panels > :nth-child(4) {
        order: 8;
    }

    .hov-switch-list > :nth-child(5) {
        order: 9;
    }

    .hov-switch-panels > :nth-child(5) {
        order: 10;
    }

    /* voce: riga bianca con freccia */
    .hov-switch-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: 10px 0 0;
        padding: 14px 16px;
        border: 1px solid var(--hov-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: none;
    }

    .hov-switch-item::after {
        content: "\f078";
        flex: 0 0 auto;
        color: var(--hov-mute);
        font-family: "Font Awesome 6 Free";
        font-size: 13px;
        font-weight: 900;
        transition: transform .2s ease, color .2s ease;
    }

    .hov-switch-item[aria-selected="true"] {
        border-bottom-color: transparent;
        border-radius: 10px 10px 0 0;
        box-shadow: none;
        cursor: pointer;
    }

    .hov-switch-item[aria-selected="true"]::after {
        color: var(--action-bg);
        transform: rotate(180deg);
    }

    .hov-switch-panel {
        padding: 6px 16px 24px;
        border: 1px solid var(--hov-line);
        border-top: 0;
        border-radius: 0 0 10px 10px;
        background: #fff;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hov-switch-panel {
        padding: 6px 24px 28px;
    }
}

/* pagine (paginazione di Bootstrap) nei colori del sito: temi, documentazione */
.pagination {
    --bs-pagination-color: var(--action-bg);
    --bs-pagination-hover-color: var(--action-hover);
    --bs-pagination-focus-color: var(--action-hover);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-bg: var(--action-bg);
    --bs-pagination-active-border-color: var(--action-bg);
}
