/* Variables */
:root {
    --app-color-blue: #163c71;
    --app-color-blue-rgb: 38, 158, 193;
    --app-color-light-blue: #1EA6D8;
    --app-text-bold-weight: bold;
    --app-color-yellow: #E5AC33;
    --app-color-light-yellow: #FAEED6;
    --app-color-orange: #EC6607;
    --app-color-light-gray: #D3D3D3;
    --app-color-gray: #707070;
    --app-color-very-light-gray: #F5F5F5;
    --app-color-dark-gray: #373737;
    --app-color-white: #FFF;
    --app-color-black: #000;
    --app-font-size-small: 16px;
    /* */
    --bs-body-bg: #FFF;
    --bs-body-font-family: Roboto, Helvetica, Arial, sans-serif;
    --bs-body-font-size: 18px;
    --bs-body-font-weight: 400;
    --bs-body-color: #373737;
    --bs-link-color-rgb: var(--app-color-blue-rgb);
    --bs-link-hover-color-rgb: var(--app-color-blue-rgb);
    --bs-link-opacity: 1;
    --bs-heading-color: var(--app-color-light-blue);
    --bs-navbar-toggler-border-color: var(--app-color-blue);
    --bs-navbar-toggler-border-radius: 0;
    --bs-btn-hover-bg: var(--app-color-orange);
    --bs-btn-hover-color: var(--app-color-light-yellow);
    /* */
}

#menu-bar .navbar-nav {
    --bs-nav-link-font-weight: bold;
    --bs-navbar-active-color: var(--app-color-blue);
    --bs-nav-link-color: var(--app-color-gray);
    --bs-nav-link-font-size: 18px;
}

#menu-bar .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--app-color-gray);
    --bs-dropdown-spacer: 0;
    --bs-dropdown-padding-y: 0;
    --bs-border-width: 0;
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-bg: var(--app-color-gray);
}

#menu-bar .navbar-toggler {
    --bs-navbar-toggler-border-radius: 0;
    --bs-navbar-toggler-border-color: var(--app-color-gray);
}

#menu-bar .dropdown-item {
    --bs-dropdown-item-border-radius: 0;
}

#menu-bar .dropdown-item:hover {
    --bs-dropdown-link-hover-bg: var(--app-color-blue);
}

.table {
    --bs-table-border-color: var(--app-color-blue);
}

/* Style */

body {
    /* Importante */
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    /* */
}


.font-brand {
    font-family: p22_sloganregular, Roboto, Helvetica, Arial, sans-serif;
}

/* Menu */
#menu-bar {
    background-color: var(--bs-body-bg);
    padding: 5px 0;
    border-bottom: 1px solid var(--app-color-light-blue);
}

#menu-bar .container-fluid {
    min-height: 100px;
}

#menu-bar .nav-link {
    color: var(--app-color-light-blue);
}

#menu-bar .nav-item.active a {
    color: var(--app-color-blue);
}

#menu-bar .dropdown-menu {
    margin: 0;
}

#menu-bar .dropdown-item {
    border-top: 1px solid var(--app-color-white);
}

#menu-bar .dropdown-item.active {
    background-color: var(--app-color-blue);
}

#menu-bar .dropdown-menu .nav-link {
    color: var(--app-color-white);
}

#menu-bar .navbar-toggler, #menu-bar .navbar-toggler:focus {
    outline-style: none;
}

#menu-bar .navbar-toggler .bar1, #menu-bar .navbar-toggler .bar2, #menu-bar .navbar-toggler .bar3 {
    width: 24px;
    height: 2px;
    background-color: var(--bs-navbar-toggler-border-color);
    margin: 6px 0;
    transition: 0.4s;
    display: block;
}

#menu-bar .navbar-toggler.collapsed .bar1, #menu-bar .navbar-toggler.collapsed .bar2, #menu-bar .navbar-toggler.collapsed .bar3 {
    transform: none;
    opacity: 1;
}

#menu-bar .navbar-toggler .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

#menu-bar .navbar-toggler .bar2 {
    opacity: 0;
    transition: 0.2s;
}

#menu-bar .navbar-toggler .bar3 {
    transform: rotate(45deg) translate(-5px, -5px);
}

#nav-flag img {
    max-width: 35px;
}

#nav-flag .section-content {
    display: flex;
    gap: 15px;
}

#main-menu {
    margin-left: auto;
    text-transform: uppercase;
}

#menu-bar .brand-main {
    display: inline-block;
    max-width: 250px;
}


/* Footer */
footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

footer .block-col {
    gap: 130px;
}

footer .logo {
    margin-top: -20px;
}

/* Bar */
#bar-top .section-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 3px 0;
}

/* */
.back-to-top {
    position: fixed;
    bottom: 5px;
    right: 5px;
    text-decoration: none;
    color: #1e1e1e;
    background-color: #f5f5f5;
    font-size: 18px;
    padding: 8px 6px;
    display: none;
    border: 2px solid #1e1e1e;
    z-index: 2;
    /* */
    -webkit-transition: opacity 1.5s ease-in-out;
    -moz-transition: opacity 1.5s ease-in-out;
    transition: opacity 1.5s ease-in-out;
}

a.back-to-top:hover {
    color: var(--app-color-white);
}

.back-to-top:hover {
    background-color: var(--app-color-blue);
}

/* */
.whatsapp-button {
    overflow: auto;
    position: fixed;
    left: 3px;
    bottom: 3px;
    z-index: 2;
    filter: drop-shadow(0px 0px 2px #6d6e71);
    display: none;
}


/* Common */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h1, .h1, .text-h1 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.2;
}

h2, .h2, .text-h2 {
    font-size: 30px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.2;
}

h3, .h3, .text-h3 {
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.2;
}

h4, .h4, .text-h4 {
    font-size: 20px;
}

h5, h6, .h5, .h6 .text-normal, h3.text-normal, h4.text-normal {
    font-size: var(--bs-body-font-size);
}

a {
    text-decoration: none;
}

h1 .font-brand, .h1 .font-brand, .text-h1 .font-brand {
    color: var(--app-color-black);
    font-size: 85px;
    padding-bottom: 10px;
    font-weight: normal;
}

.text-small {
    font-size: 16px
}

.text-body-color {
    color: var(--bs-body-color);
}

.text-body-color a, .text-body-color a:hover, .text-body-color a:visited {
    color: var(--bs-body-color);
}


.text-white, .text-white * {
    color: var(--app-color-white);
}

.text-white a, .text-white a:hover, .text-white a:visited {
    color: var(--app-color-white);
}

.text-yellow, .text-yellow * {
    color: var(--app-color-yellow);
}

.text-blue, .text-blue * {
    color: var(--app-color-blue);
}

.text-black, .text-black * {
    color: var(--app-color-black);
}

.text-orange, .text-orange * {
    color: var(--app-color-orange);
}

.text-dark-gray, .text-dark-gray * {
    color: var(--app-color-dark-gray);
}

.bk-white {
    background-color: var(--app-color-white);
}

.bk-yellow {
    background-color: var(--app-color-yellow);
}

.bk-light-yellow {
    background-color: var(--app-color-light-yellow);
}

.bk-light-gray {
    background-color: var(--app-color-light-gray);
}

.bk-very-light-gray {
    background-color: var(--app-color-very-light-gray);
}

.bk-blue {
    background-color: var(--app-color-blue);
}

.bk-light-blue {
    background-color: var(--app-color-light-blue);
}


.bk-orange {
    background-color: var(--app-color-orange);
}

.padding-0 {
    padding: 0;
}

.padding-10 {
    padding: 10px;
}

.padding-30 {
    padding: 30px;
}

.padding-40 {
    padding: 40px;
}

.padding-50 {
    padding: 50px;
}

.padding-y-0, .section-default.padding-y-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-y-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.padding-bottom-0, .section-default.padding-bottom-0 {
    padding-bottom: 0;
}

.margin-0 {
    margin: 0;
}

.margin-10 {
    margin: 10px;
}

.margin-20 {
    margin: 20px;
}

.margin-30 {
    margin: 30px;
}

.margin-50 {
    margin: 50px;
}

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

.margin-top-30 {
    margin-top: 30px;
}

.margin-top-40 {
    margin-top: 40px;
}

.margin-top-50 {
    margin-top: 50px;
}

.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-bottom-40 {
    margin-bottom: 40px;
}

.margin-bottom-50 {
    margin-bottom: 50px;
}

.bk-image-wide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bk-image-wide-left {
    background-position-x: left;
}

.direction-rtl, .direction-rtl-lg {
    direction: rtl;
}

.visible-desktop {
    display: block;
}

.visible-mobile {
    display: none;
}

.section-area {
    width: 100%;
}

.section-1 {
    min-height: 770px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.section-default {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-default.text-left, p.text-left, h3.text-left, h4.text-left, h5.text-left {
    text-align: left;
}

.section-default.padding-0 {
    padding: 0;
}

.section-full {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
    margin-left: 0;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.block-col {
    display: flex;
    text-align: left;
}

.block-col>div {
    width: 100%;
}

.block-col-2>div {
    width: 50%;
}

.block-col-3>div {
    width: 33.33%;
}

.block-col-4>div {
    width: 25%;
}

.block-gap-5 {
    gap: 5px !important;
}

.block-gap-40 {
    gap: 40px !important;
}

.block-v-center {
    align-items: center;
}

.grid-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.grid-col-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.grid-gap-40 {
    grid-gap: 40px;
}

.column-v-center {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}


.btn-orange, a.btn-orange, .btn-blue, a.btn-blue {

    border-radius: 30px;
    color: #FFFF;
    padding: 15px 30px;
    display: inline-block;
    font-size: 25px;
    text-align: center;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
}

.btn-orange, a.btn-orange {
    background-color: var(--app-color-orange);
}

.btn-blue, a.btn-blue {
    background-color: var(--app-color-blue);
}

.btn-orange-small, a.btn-orange-small {
    background-color: var(--app-color-orange);
    border-radius: 5px;
    color: var(--app-color-white);
    padding: 6px 12px;
    display: inline-block;
    font-size: 18px;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: normal;
}

.table.bottom-line {
    border-bottom: 3px solid var(--app-color-blue);
}

ul.list-square {
    list-style: none;
}

ul.list-square li::before {
    content: "\25A0";
    color: var(--app-color-blue);
    font-weight: bold;
    font-size: 22px;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.line-bottom-yellow {
    border-bottom: 10px solid var(--app-color-yellow);
}

.block-text-left {
    padding-right: 50px;
}

.block-text-right {
    padding-left: 50px;
}

ul.list-image {
    list-style: none;
    padding-left: 0;
}

ul.list-image li {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    align-items: start;
}

ul.list-image.v-center li {
    align-items: center;
}

.item-report {
    display: flex;
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    align-items: center;
}

.item-report h3 {
    min-width: 270px;
    max-width: 270px;
}

.item-report p {
    margin: 0;
}

.map-iframe {
    width: 100%;
    height: 580px;
    margin-bottom: -8px;
}

main {
    padding-top: 40px;
    padding-bottom: 40px;
}

.border-radius-def
{
    border-radius: 10px;
}

/* Form vari */
.form-control {
    border: 2px solid var(--app-color-blue);
    border-radius: 5px;
    color: #000;
}

.form-control:focus {
    border-color: var(--app-color-blue);
    color: #000;
}

.form-control::placeholder {
    color: var(--app-color-blue);
}

textarea.form-control {
    border-radius: 20px;
}

hr {
    color: var(--app-color-blue);
    border-width: 1px;
    opacity: 1;
    margin: 16px 0 16px 0;
}

/* News */
p.category-widget-item-date {
    margin-bottom: 3px;
}

.category-widget-item, .category-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.text-white .category-widget-item {
    border-color: var(--app-color-white);
}

.category-widget-news .category-widget-item, .category-items .category-item {
    background-color: var(--app-color-blue);
    color: var(--app-color-white);
}

.category-widget-news .category-widget-item *, .category-items .category-item * {
    color: var(--app-color-white);
}

.category-widget-news .category-widget-item a, .category-items .category-item a {
    display: block;
}

.category-widget-news .category-widget-item:hover, .category-items .category-item:hover {
    background-color: var(--app-color-light-blue);
}


.category-widget-promo .category-widget-item {
    background-color: var(--app-color-orange);
    color: var(--app-color-white);
}

.category-widget-promo .category-widget-item * {
    color: var(--app-color-white);
}

.category-widget-promo .category-widget-item a {
    display: block;
}

.category-item {
    margin-bottom: 20px;
}

p.category-item-date {
    margin-bottom: 3px;
}

.article-block img {
    max-width: 100%;
    height: auto;
}

/* Home */
.container-homepage {
    display: flex;
    flex-direction: row;
}

.preventivi-illuminazione {
    margin-top: 10%;
    display: block;
    max-width: 260px;
    border-radius: 10px;
    border: 1px solid var(--app-color-orange);
    overflow: hidden;
}

.bar-blue-title {
    font-size: 24px;
}

.home-icon-img {
    border-radius: 10px;
    background-color: var(--app-color-white);
    width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 10px;
}

.home-news img {
    max-width: 100%;
    height: auto;
}

/* Partners */

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    grid-gap: 20px;
}

.partners-grid>div {
    text-align: center;
    padding: 10px;
}

.partners-grid a {
    display: block;
}

.partners-grid p {
    margin-top: 20px;
    color: var(--app-color-blue);
}

/* */

.contatti-container
{
    border: 2px solid var(--app-color-light-blue);
    border-radius: 10px;
    padding: 20px;
}

/* Media query */
@media (min-width: 1930px) {
    .section-1 {
        min-height: 1000px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1114px;
    }

}

@media (min-width: 992px) {
    .bk-image-wide-desktop-top {
        background-position-y: top;
    }

}


/* Large devices (desktops, less than 1200px) */

@media (max-width: 1199.98px) {

    #nav-flag img {
        max-width: 32px;
    }

    #menu-bar .navbar-brand {
        max-width: 280px;
    }

}

/* Medium devices (tablets, less than 992px) */

@media (max-width: 991.98px) {

    .section-default, main {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .block-col {
        flex-direction: column;
    }

    .block-col>div, .block-col-2>div, .block-col-3>div {
        width: auto;
    }

    .grid-col-2, .grid-col-3 {
        grid-template-columns: 1fr;
    }

    .block-text-right, .block-text-left {
        padding: 30px;
    }

    .block-reverse-mobile {
        flex-direction: column-reverse;
    }

    .line-bottom-yellow-mobile {
        border-bottom: 10px solid var(--app-color-yellow);
    }

    .border-0-mobile {
        border: 0;
    }

    .margin-top-0-mobile {
        margin-top: 0;
    }

    .margin-top-25-mobile {
        margin-top: 25px;
    }

    .margin-bottom-25-mobile {
        margin-bottom: 25px;
    }

    .margin-0-mobile {
        margin: 0;
    }

    .padding-bottom-0-mobile {
        padding-bottom: 0;
    }

    .visible-desktop {
        display: none;
    }

    .visible-mobile {
        display: block;
    }

    .text-center-mobile {
        text-align: center;
    }

    /* Footer */
    footer {
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    footer .block-col {
        gap: 30px;
    }

    footer .block-col>div {
        margin: auto;
        width: auto;
    }

    .item-report {
        flex-direction: column;
    }

    .img-fluid-mobile {
        max-width: 100%;
        height: auto;
    }

    /* Menu */
    #menu-bar .container-fluid {
        min-height: auto;
    }

    #menu-bar .navbar-toggler {
        order: 2;
    }

    #menu-bar .navbar-collapse {
        order: 3;
    }

    #menu-bar .nav-item, #menu-bar .dropdown-item {
        text-align: center;
    }

    #menu-bar .navbar-brand {
        max-width: 300px;
    }

    #menu-bar #nav-flag {
        margin-left: auto;
        margin-right: 20px;
    }

    #menu-bar .brand-main {
        max-width: 160px;
    }

    #nav-flag img {
        max-width: 35px;
    }

    /* Homepage */
    .container-homepage {
        display: flex;
        flex-direction: column;
    }

    .container-homepage #main {
        order: 1;
    }

    .container-homepage #aside {
        margin-left: 0;
    }

    /* */
    .whatsapp-button {
        display: block;
    }

    .section-1 {
        min-height: 400px;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: 1fr 1fr;
        font-size: var(--app-font-size-small);
    }

    /* Table in colonne */
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
    }

    tbody, thead, tfoot, tr {
        display: block;
    }

    th, td {
        display: block;
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 767.98px) {


    .section-1 {
        min-height: 300px;
    }

    /* Home */
    .la-guida-elettrica {
        max-width: 160px;
        display: block;
    }

    .preventivi-illuminazione {
        max-width: 150px;
    }


}

/* Extra small devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) {
    h1, .h1, .text-h1 {
        font-size: 35px;
    }

    h2, .h2, .text-h2 {
        font-size: 28px;
    }

    h3, .h3, .text-h3 {
        font-size: 20px;
    }

    h1 .font-brand, .h1 .font-brand, .text-h1 .font-brand {
        color: var(--app-color-black);
        font-size: 80px;
    }


    .block-text-right, .block-text-left {
        padding: 0;
    }

    /* Menu */
    #menu-bar #nav-flag {
        margin-right: auto;
        margin-left: 0;
    }

    #menu-bar .navbar-brand {
        max-width: 250px;
    }

    .section-1 {
        flex-direction: column;
        min-width: 100%;
        width: 100%;
        justify-content: flex-start;
        padding: 50px 30px;
        margin-bottom: 0;
        min-height: 200px;
        text-align: center;
    }

    .no-container-xs {
        margin-right: calc(var(--bs-gutter-x) * -0.5);
        margin-left: calc(var(--bs-gutter-x) * -0.5);
    }

    .no-container-col-xs {
        padding-right: 0;
        padding-left: 0;
    }

    .no-border-radius-xs {
        border-radius: 0;
    }

    .padding-x-0-xs {
        padding-left: 0;
        padding-right: 0;
    }

    .padding-y-0-xs {
        padding-top: 0;
        padding-bottom: 0;
    }

    .padding-25-xs {
        padding: 25px;
    }

    .margin-25-xs {
        margin: 25px;
    }

    .bk-light-yellow-half-xs {
        background: linear-gradient(to bottom, transparent 50%, #faeed6 50%);
    }

}


/* Ultra small*/
@media (max-width: 365px) {
    #menu-bar .navbar-brand {
        max-width: 110px;
    }

    h1, .h1, .text-h1 {
        font-size: 30px;
    }

    h1 .font-brand, .h1 .font-brand, .text-h1 .font-brand {
        color: var(--app-color-black);
        font-size: 65px
    }


}