@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");

@font-face {
    font-family: 'Halcyon-Regular';
    src: url('/content/media/files/fonts/3583C2_0_0.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Halcyon-Bold';
    src: url('/content/media/files/fonts/3583C2_6_0.woff2') format('woff2');
    font-display: swap;
}

:root {
    --dark-blue: #193755;
    --light-blue: #0069B4;
    --purple: #831F84;
    --grey: #656b73;
    --green: #26be2d;
    --shadow: 0px 0px 25px #00000040;
    --shadow-light-blue: 0 0 16px 0 rgba(0, 160, 230, 0.25);
    --shadow: 0px 3px 4px 1px rgba(51, 51, 51, 0.5);
    --shadow-catalog: 0 8px 24px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Halcyon-Regular';
    color: var(--dark-blue);
    font-weight: normal;
}

img{
   width: 100%;
}

:is(h1, h2, h3, h4, h5) {
    font-family: 'Halcyon-Bold', sans-serif;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    letter-spacing: -0.3px;
    -webkit-background-clip: text;
    font-weight: 600;
}

:is(ul, ol) {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    color: var(--dark-blue);
    text-decoration: none;
}

.purple{
    color: var(--purple);
}

.blue{
    background-color: var(--dark-blue);
}

.light-blue{
    color: var(--light-blue);
}

/*NAVBAR*/
.header{
    box-shadow: var(--shadow-catalog);
}

.navbar-main {
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.header-navbar {
    background: linear-gradient(90deg, color-mix(in srgb, var(--dark-blue) 85%, #000 15%), var(--dark-blue));
    box-shadow: var(--shadow-catalog);
}

.menu-horizontal{
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-horizontal a{
    color: #ffff;
}

.products-menu{
    display: flex;
}

.products-menu a{
    margin-left: 2rem;
}

.nav-toggle, .catalog-toggle{
  display: none;
}
  
.nav-toggle-btn, .catalog-toggle-btn {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-right: 1rem;
}

 .catalog-toggle-btn{
  display: none;
}

.nav-toggle-btn::before, 
.nav-toggle-btn::after,
.nav-toggle-btn .line,
.catalog-toggle-btn .line,
.catalog-toggle-btn .line::before,
.catalog-toggle-btn .line::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2px;
  background: #ffff;
  border-radius: 999px;
  transition: 0.25s ease;
}

.catalog-toggle-btn .line,
.catalog-toggle-btn .line::before,
.catalog-toggle-btn .line::after {
  background-color: var(--light-blue);
}

.nav-toggle-btn::before, 
.catalog-toggle-btn .line::before{
  transform: translateY(-7px);
}

.nav-toggle-btn .line, 
.catalog-toggle-btn .line{
  transform: translateY(0);
}

.nav-toggle-btn::after, 
.catalog-toggle-btn .line::after{
  transform: translateY(7px);
}

.nav-toggle:checked + .nav-toggle-btn::before, 
.catalog-toggle:checked + .catalog-toggle-btn .line::before{
  transform: translateY(0) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-btn .line {
  opacity: 0;
  transform: translateY(0);
}

.catalog-toggle:checked + .catalog-toggle-btn .line {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-btn::after, 
.catalog-toggle:checked + .catalog-toggle-btn .line::after{
  transform: translateY(0) rotate(-45deg);
}

.menu-horizontal {
    position: absolute;
    top: 100%;
    right: 10rem;
    min-width: 210px;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(90deg, color-mix(in srgb, var(--dark-blue) 85%, #000 15%), var(--dark-blue));
    border-radius: 1rem;
    box-shadow: var(--shadow-catalog);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 100;
}

.nav-toggle:checked ~ .menu-horizontal {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.menu-horizontal li {
  display: block;
  width: 100%;
  padding: 1rem;
    position: relative;
text-align: center;
}

.menu-horizontal li a,
.products-menu li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    color: var(--light-blue);
    text-decoration: none;
    transition: 
        color .22s ease,
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;
    border-radius: .65rem;
}

.menu-horizontal li a, .products-menu li a{
   color: #ffff;
   padding-top: .5rem;
}

 .products-menu li a{
   background: linear-gradient(135deg, #831F84, #0095ff);
}

.navbar-product{
    display: flex;
}

.navbar-main .d-flex.flex-row.gap-2 {
  position: relative;
  align-items: center;
  margin-left: auto;
}

.menu-horizontal li  a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--purple);
    border-radius: 2px;
    opacity: .8;
    transform: scaleX(1);
    transition: all .25s ease;
}

.menu-horizontal li a:hover,
.products-menu li a:hover {
    transform: translateY(-1px);
}

.menu-horizontal li a:hover::after,
.products-menu li a:hover::after,
.menu-horizontal li a.is-active::after,
.products-menu li a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-brand img {
    width: 250px;
    transition: transform .25s ease, filter .25s ease;
}

.navbar-brand:hover img {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/*FOOTER*/
.wrapper-copyright {
    background: #193755;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative;
    padding-top: 2rem;
}

.lista-footer {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.lista-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-footer li {
    margin-bottom: 6px;
}

.lista-footer a {
    text-decoration: none;
    opacity: 0.9;
    transition: opacity .2s ease;
}

.lista-footer a:hover {
    opacity: 1;
}

.lista-footer-columns {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
    justify-content: center;
    text-align: center;
}

.wrapper-copyright a {
    color: #ffffff;
}

.footer-cta h2{
    color: #ffff;
}

.footer-cta-button {
    display: flex;
    justify-content: space-evenly;
}

.wrapper-copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 0.4rem;
    background: var(--light-blue);
    border-radius: 0 0 999px 999px;
}

/*BACKTOTOP*/
 #btn-back-to-top {
 position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    z-index: 9999;
    border-radius: 1rem;
    width: 4rem;
    height: 4rem;
    padding: 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.5;
   background: linear-gradient(135deg, #831F84, #0095ff);
}

 #btn-back-to-top:hover{
 opacity: 1;
 transition: 0.25s ease;
}

/*HOMEPAGE*/
.intro-home a{
   width: fit-content;
   margin: 0 auto;
}

.homepage-header {
    padding: 1.5rem 0;
}

.homepage-header h1, 
.section-tecnici h2{
  position: relative;
  text-align: center;
}

.homepage-header h1::after,
.section-tecnici h2::after,
.section-card-contatti h1::after{
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.3rem;
  background: linear-gradient(135deg, #831F84, #0095ff);
  border-radius: 1rem;
}

.section-card-contatti h1::after{
  top: 7rem;
}

.section-business, .dividing-section, .section-privati{
    background-color: var(--dark-blue);
    color: #ffff;
}

.section-business h2, .dividing-section h2, .section-privati h2{
    color: #ffff;
}

/* === CAROUSEL === */
.carousel-caption {
    top: 3rem;
    right: 10%;
    text-align: right;
    z-index: 10;
    background-color: #193755c7;
    padding: 2rem;
    width: fit-content;
    left: auto;
    height: fit-content;
   border-radius: 1rem;
}

.carousel-caption p{
    font-size: 1.5rem;
}

  .carousel-caption h2,
  .carousel-caption p{
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    padding-bottom: 2rem;
  }

a.btn-primary, 
a.btn-secondary,
.products-menu a{
  padding: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #831F84, #0095ff);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

 a.btn-secondary{
  background: linear-gradient(135deg, #831F84, #0095ff);
}

a.btn-primary:hover, 
a.btn-secondary:hover, 
.products-menu a:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-catalog);
}


/* === SEZIONE PERCHE SIAMO DIFFERENTI=== */

.section-different-text{
    padding: 2rem;
}


/* === MAPPA=== */

.bg-map {
  background: var(--light-blue);     
  padding: 5rem 1rem;          
}

.map-frame {
  margin: 0 auto;          
  border-radius: 1rem;  
  overflow: hidden;         
  box-shadow: var(--shadow-catalog);
}

.map-frame iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
}

.map-title {
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  background: #fff;
  -webkit-background-clip: text;
  color: transparent;
}

/* === NEWS HOME=== */
.container-news {
  row-gap: 2rem;
  justify-content: center;
}

.news {
    background: #f7f9fc;
    margin: 0.5rem;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 0 0 1rem;
    box-shadow: var(--shadow-catalog);
    transition: 0.25s ease;
    height: 100%;
}

.news:hover, .card:hover, 
.card-contatti:hover, 
.ws-suggested-product:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-catalog);
  z-index: 1;
}

.news .ws-image {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  display: block;
  transition: 0.3s ease;
}

.news time {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(25,55,85,0.7);
}

.container-news h2, .container-news p{
   position: relative;
   text-align: center;
}

.container-news h2::after, .bottom-line::after{
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.3rem;
    background: linear-gradient(135deg, #831F84, #0095ff);
    border-radius: 1rem;
}

.container-news img{
   width: 100%;
}

.container-news-home .btn-secondary {
    display: flex;
    width: fit-content;
    margin: 3rem auto;
    justify-content: center;
}

.container-news-home .card .btn-secondary {
    width: auto;
    margin: 1rem;
}

.container-news-home img{
    width: 100%;
}

/* === PAGINAZIONE=== */
.ws-pagination {
    border-top: 1px solid var(--dark-blue);
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.ws-pagination a{
    font-size: 1.5rem;
    padding: 0 1rem;
}

.ws-pagination > span {
    display: none;
}

.ws-pagination-page {
    position: relative;
    padding: 0.2rem 0.4rem;
    color: #193755;
    text-decoration: none;
    font-weight: 500;
}

.ws-pagination-page::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #193755;
    transition: width 0.25s ease;
}

.ws-pagination-page:hover::after,
.ws-pagination-page.current::after {
    width: 100%;
}

.ws-pagination-page.current {
    color: #193755;
    font-weight: 700;
}

/* === CATALOGO=== */
/* === BREADCRUMBS=== */
.ws-breadcrumbs ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.6rem;
}

.ws-breadcrumbs a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.ws-breadcrumbs .ws-breadcrumb-piece a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.ws-breadcrumbs .ws-breadcrumb-piece:not(:last-child)::after {
    content: "›";
    margin-left: 0.6rem;
    color: var(--purple); 
}

.ws-breadcrumbs ol li:first-child {
    display: block !important;
}

.ws-breadcrumbs ol li:not(:last-child) {
    display: none;
}

/* === INTRO CATALOGO=== */
.intro-product, #product-filter{
    margin: 5rem auto;
    padding: 2rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding-left: 1rem;
    border-left: 4px solid var(--dark-blue);
}

.intro-product article p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.card {
    box-shadow: var(--shadow-catalog);
    border-radius: 1rem;
}

#product-filter .cta-phone {
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
    padding-bottom: 2px;
}

#product-filter .cta-link {
    font-weight: 700;
    color: var(--purple);
}

#store-product-category[data-ws-item-id="10"] #product-filter{
    display: none;
}

.intro-servizi img{
   width: 5rem;
   height: 5rem;
}

/*PRODOTTO*/
#descrizioneOfferta strong {
    color: var(--light-blue);
}

.badge {
    --size: 26px;
    display: inline-block;
    position: absolute;
    margin-left: .25rem;
    content: '';
    width: var(--size);
    height: var(--size);
}

.badge-FWA {
    background-image: url('/content/media/files/img/badge_FWA.svg');
    background-size: var(--size);
    background-repeat: no-repeat;
}

.badge-FTTH {
    background-image: url('/content/media/files/img/badge_FTTH.svg');
    background-size: var(--size);
    background-repeat: no-repeat;
}

.icon {
    --size: 26px;
    display: inline-block;
    position: absolute;
    margin-left: .25rem;
    content: '';
    width: var(--size);
    height: var(--size);
}

.icon-phone {
    background-image: url('/content/media/files/img/telephone-fill.svg');
    background-size: var(--size);
    background-repeat: no-repeat;
    filter: invert(57%) sepia(81%) saturate(345%) hue-rotate(82deg) brightness(87%) contrast(90%);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-instagram {
    background-image: url("/content/media/files/img/instagram.svg");
    background-size: var(--size);
    background-repeat: no-repeat;
    filter: invert(17%) sepia(7%) saturate(6372%) hue-rotate(173deg) brightness(93%) contrast(89%);


}

.icon-facebook {
    background-image: url("/content/media/files/img/facebook.svg");
    background-size: var(--size);
    background-repeat: no-repeat;
    filter: invert(17%) sepia(7%) saturate(6372%) hue-rotate(173deg) brightness(93%) contrast(89%);
}

#store-product .accordion-button, #store-product  .accordion-button:not(.collapsed){
    background-color: var(--dark-blue);
    color: white;
}

#store-product .accordion-body {
    padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
    border: 2px solid var(--dark-blue);
    border-bottom-right-radius: var(--bs-accordion-border-radius);
    border-bottom-left-radius: var(--bs-accordion-border-radius);
    margin-top: -1rem;
}

#store-product .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

#store-product .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* WS */
.ws-form,
.ws-form section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ws-form section {
    padding: .75rem;
    box-shadow: var(--shadow);
    border-radius: 1rem;
}

.ws-form textarea {
    width: 100%;
    padding: .75rem .5rem;
    border: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--light-blue);
    resize: none;
    background: transparent;
    border-bottom: 1px solid;
}

.ws-form select,
.ws-form input {
    width: 100%;
    padding: .75rem .5rem;
    border-radius: 1rem;
    border: 1px solid rgba(25, 55, 85, 0.2);
}

.ws-form input[type="submit"],
#ws-contact-form-input-1252,
#btn-form {
    background-color: var(--purple);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    padding: .5rem .7rem;
    width: 160px;
    border: none;
border-radius: 1rem;
}

.ws-form input[type="checkbox"] {
    width: auto;
}

.ws-form h2 {
    color: var(--dark-blue);
}

.ws-form label {
    font-weight: 600;
    margin-bottom: .25rem;
}

.ws-message.ws-error {
    color: red;
}

.ws-message.ws-success {
    color: green;
}

.section-installazione .row .col-12,
.section-intestatario .row .col-12,
.ws-form .row .col-12 {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.ws-product-attributes {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.ws-product-attributes-group {
    width: 100%;
}

.ws-product-attributes-group h4 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.ws-product-attributes-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5rem;
}

/* WS  PRODOTTI SUGGERITI*/
.ws-related-products, .ws-suggested-products {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.ws-suggested-product {
    position: relative;
    display: flex;
    margin: 0 1rem;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    width: 33%;
    box-shadow: var(--shadow-catalog);
    transition: 0.25s ease;
}

.ws-suggested-product a {
    display: flex;
    flex-wrap: wrap;
    text-decoration: none!important;
    padding: 2rem;
    padding-left: 8rem;
}

.ws-product-name{
    font-size: 1.5rem;
}

.ws-suggested-product .ws-product-reference {
    display: none;
}

.ws-product-attribute.ws-disabled {
    display: none;
}

.ws-product-attribute {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 60px;
    font-weight: 600;
    padding: 1rem .75rem;
    border: solid 1px rgba(25, 55, 85, 0.6);
    border-radius: 7px;
    cursor: pointer;
}

.ws-product-attribute:not(.selected) {
    box-shadow: none;
    transition: box-shadow .4s ease-out;
}

.ws-product-attribute.ws-selected {
    border-color: var(--light-blue);
    color: var(--light-blue);
    box-shadow: var(--shadow-light-blue);
}

.ws-product-upc {
    display: block;
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.ws-product-upc span {
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: white;
    color: var(--dark-blue);
    border-radius: 15px;
}

.ws-product-ean13 {
    display: block;
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: 15px;
    font-size: .1rem;
    color: transparent;
    margin-top: 1.5rem;
}

.ws-product-ean13 span {
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: white;
    color: var(--dark-blue);
    border-radius: 15px;
}

.ws-product-price-wrapper {
    display: inline;
}

.ws-product-price-tax {
    display: none;
}

/* === NEWSLETTER=== */
.container-newsletter {
    background: linear-gradient(180deg, var(--light-blue) 0 50%, #ffffff 50% 100%);
    padding: 4rem 0;
    color: #ffff;
}

.section-newsletter-form {
    background: #ffffff;
    color: var(--dark-blue);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-catalog);
}

#ws-newsletter-panel-lists::-webkit-scrollbar {
    width: 6px;
}

#ws-newsletter-panel-lists::-webkit-scrollbar-track {
    background: transparent;
}

#ws-newsletter-panel-lists::-webkit-scrollbar-thumb {
    border-radius: 999px;
}

.section-newsletter-form small {
    color: #9ca3af;
}

#ws-newsletter-panel-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-catalog);
    filter: brightness(1.04);
}

#ws-newsletter-panel-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-catalog);
}

#ws-newsletter-panel-form input[type="submit"] {
    width: fit-content;
    aspect-ratio: 1;
    padding: .75rem;
    background-color: var(--dark-blue);
    border: 1.5rem solid var(--purple);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* === LISTA COMUNI=== */
.container-lista {
    padding: 3rem 0;
}

.lista-comuni {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lista-comuni li a, .ws-tag a{
    padding: 0.5rem 1rem;
}

.lista-comuni li a, .ws-tag{
    display: inline-block;
    background: #f5f7fa;
    border: 1px solid var(--dark-blue);
    border-radius: 999px;
    color: #193755;
    text-decoration: none;
    transition: 0.18s ease;
    margin-top: 1rem;
}

.lista-comuni li a:hover, .ws-tag:hover{
    background: #193755;
    color: #ffffff;
    transform: translateY(-2px);
}

.ws-tag a{
    width: 100%;
}

.ws-tag a:hover{
    color: #ffffff;
}

.ws-tags{
    padding: 2rem 0;
}

.ws-tag-count{
   display: none;
}

/* BS5 */
.nav-link:focus,
.nav-link:hover {
    color: white;
}

.modal {
    --bs-modal-width: 80vw;
}

.card {
    --bs-card-border-width: 0;
    --bs-card-cap-bg: none;
    transition: 0.25s ease;
    position: relative;
    justify-content: space-between;
}

#store-product-category .card img,
 .product-showcase .card img,
.ws-suggested-product img{
    position: absolute;
    width: 7rem;
    top: 0rem;
    left: -1rem;
    rotate: -31deg;
}

.card-title {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
    z-index: 1;
    text-align: center;
}

.card-title h2{
    padding-left: 5rem;
}

 .card-body {
    display: flex;
    flex-direction: column;
}

 .container-guide .card-body {
    justify-content: space-between;
}

#store-product-category .card-body {
    border-top: 1px solid rgba(25,55,85,0.15);
    border-bottom: 1px solid rgba(25,55,85,0.15);
}

.card-body strong {
    color: var(--dark-blue);
}

.card-body ul {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.card-body ul li::before, 
.section-business-text ul li::before,
.section-privati-text  ul li::before{
    content: '';
    width: 1rem;
    height: 1rem;
    display: inline-block;
    margin-right: .25rem;
    background-image: url('/content/media/files/img/icons-check.png');
    background-size: 1rem;
    background-repeat: no-repeat;
}

.card-footer p {
    color: var(--dark-blue);
    text-align: center;
    display: inline;
}

.card-footer strong {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-footer span {
    color: var(--dark-blue);
    font-weight: 600;
}

#store-product .accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-color: var(--light-blue);
    --bs-accordion-active-bg: none;
}

#store-product .accordion-collapse.collapse:not(.show) {
    display: block;
    height: 200px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: top, bottom;
}

.collapsing {
    height: 200px;
}

.product-showcase .card {
    box-shadow: var(--shadow-catalog);
    width: 375px;
    border-radius: 0  0 1rem 1rem;
    height: auto;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px; 
  background: linear-gradient(135deg, #831F84, #0095ff);
}

.card-footer {
    padding: 1rem;
}

.card-footer a {
    margin-top: 2rem;
}

#store-product[data-ws-item-id="3"] .btn-secondary ,
#store-product[data-ws-item-id="6"] .btn-secondary {
    --bs-btn-bg: var(--dark-blue);
    --bs-btn-border-color: var(--dark-blue);
    --bs-btn-hover-bg: var(--dark-blue);
    --bs-btn-hover-border-color: var(--dark-blue);
    --bs-btn-active-bg: var(--dark-blue);
    --bs-btn-active-border-color: var(--dark-blue);
}

#store-product[data-ws-item-id="3"] .ws-product-ean13,
#store-product[data-ws-item-id="6"] .ws-product-ean13,
#store-product[data-ws-item-id="6"] .ws-product-upc {
    display: none;
}

#store-product main a{
    text-decoration: underline;
}

.phone-number {
    border: 3px solid #40b25b;
    color: #40b25b !important;
    border-radius: 30px;
    padding: .1rem 0.5rem;
    font-weight: bold;
    padding-bottom: 0.2rem;
    position: relative;
    padding-left: 2.5rem;
}

/* === CONTATTI=== */
.card-contatti{
    background-color: var(--dark-blue);
    padding: 3rem 1rem;
    color: #fff;
    font-weight: 700;
    border-radius: 1rem;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-catalog);
    position: relative;
}

.card-contatti::after{
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(135deg, #831F84, #0095ff);
}

.card-contatti img{
    width: 10rem;
}

.card-contatti a{
    color: #ffff;
}

.claim-partner {
    position: absolute;
    top: 0;
    left: 0;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.claim-partner>p {
    margin-bottom: 0;
    text-align: center;
}

.claim-partner>p>span {
    font-weight: 600;
    text-decoration: underline;
    color: var(--light-blue);
}

.container-lista {
    margin: 0 2.5rem;
    padding-bottom: 2rem;
    color: var(--dark-blue);
}

.lista-footer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem 3rem;
}

.lista-footer a {
    color: white;
}

.wrapper-copyright {
    background-color: var(--dark-blue);
    padding-bottom: 1.5rem;
}

.banner-comune {
    width: 100%;
}

.banner-comune>img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/4;
}

.article-comune>p {
    text-align: justify;
}

.article-comune {
    margin-bottom: 4rem;
}

/*NEWS*/
.wrapper-news-card {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.news-card {
    box-shadow: var(--shadow-catalog);
    border-radius: 0 0 20px 20px;
}

.news-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.news-card-body {
    padding: 1rem 1.5rem;
}

.news-card-body h5 {
    height: 48px;
    overflow: hidden;
}

.news-card-body p {
    height: 144px;
    overflow: hidden;
}

.news-card-body > h5 > a:hover {
    color:inherit;
}

.news-article {
    min-height: 700px;
}

.news-article p {
    text-align: justify;
}

.container-news-img {
    float: right;
    padding: 0 0 2.5rem 2.5rem;
    min-width: 350px;
    max-width: 500px;
    width: 50%;
}

.container-news-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.ws-related-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

address {
    margin-bottom: 0;
}

.news-socials {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2.5rem;
}

#facebookShare {
    text-decoration: underline;
}

/*CHI SIAMO*/
.banner-chiSiamo{
    aspect-ratio: 16/4;
    object-fit: cover;
}

.intro-chiSiamo{
    background-color: var(--dark-blue);
    padding: 3rem 0;
}

.intro-chiSiamo .container{
    background-color: #ffff;
    color: var(--dark-blue);
    padding: 3rem;
    box-shadow: var(--shadow-catalog);
    border-radius: 1rem;
}

.section-tecnici-icon {
    border: 4px solid var(--light-blue);
    border-radius: 2rem;
    padding: 2rem 0;
}


.section-tecnici-icon img{
   width: 10rem;
}

.timeline {
  position: relative;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1300px;
}

.timeline h3{
  font-weight: normal;
}

.timeline:before {
  content: '';
  position: absolute;
  height: 100%;
  border: 1px solid var(--purple);
  right: 40px;
  top: 0;
}
.timeline:after {
  content: "";
  display: table;
  clear: both;
}

.timeline__item {
  padding: 1rem;
  border: 2px solid var(--purple);
  border-image-slice: 1;
  position: relative;
  margin: 1rem 3rem 1rem 1rem;
  clear: both;
  border-radius: 1rem;
}

.timeline__item:after,
.timeline__item:before {
  content: '';
  position: absolute;
}

.timeline__item:before {
  right: -10px;
  top: calc(50% - 5px);
  border-style: solid;
  border-color: var(--purple) var(--purple) transparent transparent;
  border-width: 10px;
  transform: rotate(45deg);
}

.timeline__item--year {
  text-align: center;
  max-width: 150px;
  margin: 0 50px 0 auto;
  font-size: 1.8rem;
  background-color: #ffff;
  line-height: 1;
  border-image: none;
  padding: .5rem 1rem 1rem;
    -webkit-background-clip: border-box;
}

.timeline__item--year:before {
  display: none;
}

.timeline__title {
  margin: 0;
  font-size: 1.5em;
}

.timeline__blurb {
  line-height: 1.5;
  font-size: 1rem;
  margin: .5rem 0 0;
}

#ws-contact-form-input-1196,
#ws-contact-form-input-1197,
#ws-contact-form-input-1140,
#ws-contact-form-input-1141,
#ws-contact-form-input-1142,
#ws-contact-form-input-1143,
#ws-contact-form-input-1259 {
    color: initial;
    font-weight: initial;
    font-size: initial;
    border-radius: 7px;
    border: 1px solid rgba(25, 55, 85, 0.2);
}

.ws-related-item {
padding: 0 1rem;
}

/* RESPONSIVE */
@media (min-width: 1200px) {
    .ws-related-product, .ws-suggested-product {
        width: 25%;
    }

 #store-product-category .card{
   top: 0;
}
}


@media (max-width: 991px) {
/* === SEZIONE PERCHE SIAMO DIFFERENTI=== */
.section-different-text{
    margin-left: 0;
}

  .carousel-caption h2,
  .carousel-caption p{
    padding-bottom: 1rem;
  }

a.btn-primary, a.btn-secondary, 
.products-menu a{
   padding: .5rem;
}

.products-menu a{
    margin-left: 1rem;
}

.ws-suggested-products {
    display: flex;
    width: 90%;
    flex-direction: column;
    margin: 0 auto;
    gap: 3rem;
}

.ws-suggested-product{
    width: auto;
}
}

@media screen and (min-width: 700px) {
/* CHI SIAMO*/
  .timeline__item {
    width: 44%;
    margin: 1rem;
  border-radius: 1rem;
  }

  .timeline__item:nth-of-type(2n) {
    float: right;
    margin: 1rem;
    border-image-slice: 1;
  }

  .timeline__item:nth-of-type(2n):before {
    right: auto;
    left: -10px;
    border-color: transparent transparent var(--purple) var(--purple);
  }

  .timeline {
    padding: 2rem;
  }

  .timeline:before {
    left: calc(50% - 1px);
    right: auto;
  }

  .timeline__item--year {
    text-align: center;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .timeline__item--year:nth-of-type(2n) {
    float: none;
    margin: 0 auto;
    border-image: none;
  }

  .timeline__item--year:nth-of-type(2n):before {
    display: none;
  }
  }


@media (max-width: 767px) {
.navbar-main .d-flex.flex-row.gap-2{
    margin: 0;
}

.navbar-brand{
   padding-bottom: 0;
}

.nav-toggle-btn{
   display:none!important;
}

.phone-number {
    border: 2px solid #40b25b;
    padding: 0 0.3rem;
    padding-bottom: 0;
    padding-left: 1.5rem;
}

.icon {
    --size: 15px;
}

/* HAMBURGER MENU*/
.menu-horizontal{
   display: none;
}

    .header-product .products-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .header-product .products-menu li a {
     display: block;
     padding: 0.5rem;
     color: #ffff;
     text-decoration: none;
    width: fit-content;
    background: transparent;
    color: var(--dark-blue);
    border-bottom: 2px solid var(--purple);
    border-radius: inherit;
    padding: 0;
    }

    .catalog-toggle:checked ~ div .products-menu {
        display: flex;
        position: absolute;
        z-index: 10;
        background-color: #ffff;
        right: 0;
       z-index: 99;
        gap: 1rem;
       padding: 3rem 1rem;
       border: 1px solid var(--dark-blue);
    }

    .header-product {
        padding: 0;
    }

    .modal {
        --bs-modal-width: 100vw;
    }

    .ws-product-attributes-list {
        justify-content: center;
    }

    .lista-comuni {
        column-count: 2;
        max-width: 900px;
    }

    .carousel-caption h2,
    .carousel-caption a,
    .carousel-caption p {
        display: none;
    }

    .container-news-img {
        float: none;
        padding: 1rem;
        width: 100%;
    }

    th,
    td {
        padding: 0;
        font-size: .8rem;
    }

    #table1 th {
        width: 24%;
    }

    .box-list {
        flex-direction: column;
    }

    /* Carousel mobile */

    #mainCarousel .carousel-caption {
       display: none;
    }

    #store-product-category .card-title h2 {
        margin-top: 3rem;
    }

    .navbar-brand img {
        width: 185px;
    }

    .primary-navigation {
        position: fixed;
        inset: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 2em;
        background-color: var(--dark-blue);
        overflow-y: scroll;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    body:has(.primary-navigation[data-visible="true"]) {
        overflow-y: hidden;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .primary-nav {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        padding: 5em 0 min(20vh, 1rem);
        border: 0;
        margin-top: 2rem;
        position: relative;
    }

    .primary-nav::before,
    .primary-nav::after {
        display: none;
    }

    .mobile-menu-toggler {
        display: block;
        z-index: 100;
        background-color: var(--dark-blue);
        border: 0;
        width: auto;
    }

    .animated-icon {
        width: 30px;
        height: 20px;
        position: relative;
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .animated-icon span {
        position: absolute;
        height: 3px;
        width: 100%;
        left: 0;
        border-radius: 9px;
        background: white;
        transition: .25s ease-in-out;
    }

    .animated-icon span:nth-child(1) {
        top: 0;
        transform-origin: left center;
    }

    .animated-icon span:nth-child(2) {
        top: 10px;
        transform-origin: left center;
    }

    .animated-icon span:nth-child(3) {
        top: 20px;
        transform-origin: left center;
    }

    .animated-icon.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 0;
        left: 8px;
    }

    .animated-icon.open span:nth-child(2) {
        width: 0;
        opacity: 0;
    }

    .animated-icon.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: 21px;
        left: 8px;
    }

    .nav-item .dropdown-menu {
        left: -5rem;
    }

.navbar-product{
    justify-content: end;
}

.catalog-toggle-btn {
    display: flex!important;
    z-index: 100;
    padding: 1.5rem 0;
}

.footer-cta-button{
    flex-direction: column;
    gap: 2rem;
    width: fit-content;
    text-align: center;
    margin: 0 auto;
}

.section-privati-text a{
   display: flex;
   justify-content: center;
}
}

@media (max-width: 575px) {
    .ws-related-items {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
}




















.verde-scuro::before{
  content: "";
  width: 2rem;
  height: 2rem;
  background: #267301;
}

.verde-chiaro::before{
  content: "";
  width: 2rem;
  height: 2rem;
  background: #70a701;
}

.giallo::before{
  content: "";
  width: 2rem;
  height: 2rem;
  background: #fee100;
}

.arancione::before{
  content: "";
  width: 2rem;
  height: 2rem;
  background: #ffa101;
}
