/* =========================================================================
   Template "winger" — riproduzione del layout JA Mendozite di winger.it
   Valori presi da templates/ja_mendozite/css/{template,layout,customw2l}.css
   ========================================================================= */

@font-face {
    font-family: "Audiowide";
    src: url("../fonts/audiowide-latin.woff2") format("woff2");
    font-display: swap;
}

:root {
    --w-blue: #216397;        /* colore principale */
    --w-blue-header: #6492b6; /* box logo */
    --w-blue-dark: #124771;   /* footer */
    --w-blue-darker: #002e4f; /* barra ragione sociale */
    --w-text: #555;
    --w-page: 980px;
}

/* ---------------------------------------------------------------- base */
body.site {
    background: #eee;
    color: var(--w-text);
    font-family: Arial, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}
a { color: var(--w-blue); text-decoration: none; }
a:hover, a:focus { color: #d05338; }
h1, h2, h3, h4, h5, h6 { font-family: Arial, Tahoma, sans-serif; font-weight: normal; color: var(--w-blue); }
h2 { font-size: 20px; }
img { max-width: 100%; height: auto; }

.w-page {
    max-width: var(--w-page);
    margin: 0 auto;
    padding: 0 30px;
    background: #fff;
}

/* fascia blu dietro testata, menu e slideshow */
.w-band { background: var(--w-blue); }
.w-top { padding-top: 20px; }

/* ---------------------------------------------------------------- testata */
.w-header { background: var(--w-blue-header); }
.w-brand { height: 80px; padding: 18px 0 0 30px; color: #fff; }
.w-brand .moduletable, .w-brand p { margin: 0; }
.w-brand h1, .w-brand h1.logo-txt {
    margin: 0;
    font: bold 2.6em/1em Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}
.w-brand a, .w-brand h1 a { color: #fff; }
.w-brand p { font-size: 14px !important; line-height: normal; }

/* ---------------------------------------------------------------- menu principale */
.w-nav {
    padding: 0;
    background: url("../images/mainnav-bg.png") repeat-x left top #111;
    min-height: 40px;
}
.w-nav-toggle { color: #fff; border: 0; padding: 10px 15px; font-size: 13px; text-transform: uppercase; }
.w-nav .mod-menu, .w-nav ul.mod-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.w-nav .mod-menu > li { position: relative; border-right: 1px solid #000; box-shadow: 1px 0 0 #333; }
.w-nav .mod-menu > li > a,
.w-nav .mod-menu > li > span,
.w-nav .mod-menu > li > button {
    display: block;
    padding: 0 11px;
    line-height: 40px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.w-nav .mod-menu > li > a img { margin: -3px 7px 0 0; vertical-align: middle; }
.w-nav .mod-menu > li.active > a,
.w-nav .mod-menu > li.current > a,
.w-nav .mod-menu > li > a:hover,
.w-nav .mod-menu > li:hover > span,
.w-nav .mod-menu > li:hover > button { background: var(--w-blue); color: #fff; }
.w-nav .mod-menu > li > button { background: transparent; border: 0; }
.w-nav .mod-menu > li > button .separator { color: #fff; font-size: 12px; }
.w-nav .mod-menu > li > button .icon-chevron-down { font-size: 8px; margin-left: 6px; opacity: .7; }
/* sottomenu (Formazione) */
.w-nav .mod-menu ul,
.w-nav .mod-menu ul.mod-menu__sub {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 100%;
    min-width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #101010;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}
.w-nav .mod-menu li:hover > ul, .w-nav .mod-menu li:focus-within > ul { display: block; }
.w-nav .mod-menu ul li a { display: block; padding: 8px 15px; color: #fff; font-size: 12px; border-bottom: 1px solid #222; }
.w-nav .mod-menu ul li a:hover { background: var(--w-blue); }

/* ---------------------------------------------------------------- slideshow / testate pagina */
.w-slideshow { background: #fff; }
.w-slideshow .carousel-item img { width: 100%; height: auto; aspect-ratio: 920 / 310; object-fit: cover; }
.winger-slide-caption {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.winger-slide-caption h3 { margin: 0; font-size: 1.95em; text-transform: uppercase; }
.winger-slide-caption .riga1 { color: var(--w-blue); font-family: "Audiowide", Tahoma, Arial, sans-serif; }
.winger-slide-caption .riga2 { color: #333; margin-left: 8px; font-family: "Audiowide", Tahoma, Arial, sans-serif; }
.winger-pagehead { overflow: hidden; }
.winger-pagehead img { display: block; width: 100%; animation: w-kenburns 12s ease-in-out infinite alternate; }
@keyframes w-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .winger-pagehead img { animation: none; } }

.w-slogan { background: rgba(100, 146, 182, .9); }
.w-slogan p { margin: 0; color: #fff !important; padding: 10px 20px !important; font-size: 1.2em !important; }

/* ---------------------------------------------------------------- 3 box (Privacy / 231 / Consulenze) */
.w-body { padding-top: 20px; }
.w-topsl { border-bottom: 1px solid var(--w-blue); margin: 0 0 20px; padding-bottom: 15px; }
.w-topsl .moduletable { text-align: center; padding: 0 10px; }
.w-topsl .moduletable p { margin: 0; }
.w-topsl .moduletable img { margin: 0 0 10px; }
.w-topsl h3 { margin: 0 0 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.w-topsl h3 a { color: var(--w-blue); }
.w-topsl p a { color: var(--w-blue); }
.w-topsl .moduletable:hover h3 a { color: #d05338; }

/* ---------------------------------------------------------------- contenuto */
.w-main { margin: 0; flex-wrap: nowrap; }
.w-main > * { padding-left: 0; padding-right: 0; }
.w-content { padding: 0 35px 20px 0 !important; flex: 1 1 auto; width: auto; min-width: 0; }
.w-right { flex: 0 0 215px; width: 215px; }
.w-content h2, .w-content .page-header h2, .w-content .page-header h1 { font-size: 20px; color: var(--w-blue); }
.w-content p { text-align: justify; }

/* pagine istituzionali (Company, Privacy, D.Lgs., Consulenze): titolo nella barra blu h1bar.jpg */
.body-company-c .w-content, .body-privacy-c .w-content, .body-dlgs-c .w-content, .body-consulenze-c .w-content { padding-left: 15px !important; }
.body-company-c .com-content-article .page-header h1, .body-company-c .com-content-article .page-header h2,
.body-privacy-c .com-content-article .page-header h1, .body-privacy-c .com-content-article .page-header h2,
.body-dlgs-c .com-content-article .page-header h1, .body-dlgs-c .com-content-article .page-header h2,
.body-consulenze-c .com-content-article .page-header h1, .body-consulenze-c .com-content-article .page-header h2,
.area-riservata .com-content-category-blog > h2,
.area-riservata .com-content-category-blog .category-name {
    max-width: 630px;
    height: 52px;
    margin: 0 0 30px;
    padding-left: 46px;
    background: url("../images/h1bar.jpg") no-repeat 0 center #1f5e93;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 20px;
    line-height: 41px;
    text-transform: uppercase;
}

/* blog / home: immagine a sinistra, nastro "Focus on", leggi tutto */
.blog-featured .blog-item, .blog .blog-item {
    position: relative;
    display: flow-root;
    padding: 25px 0;
    border-bottom: 1px dotted #e5e5e5;
}
.blog-featured .item-image, .blog .blog-item .item-image {
    float: left;
    width: 200px;
    margin: 0 15px 10px 0;
}
.blog-featured .item-image img, .blog .item-image img { width: 200px; height: 140px; object-fit: cover; }
.blog-featured .item-content, .blog .blog-item .item-content { overflow: hidden; }
.blog-featured .item-title, .blog .item-title { font-size: 22px; margin: 0 80px 5px 0; line-height: 1.2; }
.blog-featured .item-title a, .blog .item-title a { color: var(--w-blue); }
.blog-featured .article-info, .blog .article-info { color: #999; font-size: 11px; margin: 0 0 10px; }
.article-info dt { display: none; }
.article-info dd { margin: 0; }
.article-info .icon-calendar { display: none; }
/* nastro "Focus on": nel 2.5 solo in home (body.homecontent) */
p.focus-on { display: none; }
.homecontent p.focus-on { display: block; }
.news-blog .w-content { padding-left: 15px !important; }
.blog .article-info, .blog-featured .article-info { display: flex; flex-wrap: wrap; gap: 0 10px; }
.article-info .icon-folder-open, .article-info .icon-folder { display: none; }
.homecontent p.focus-on {
    position: absolute;
    top: 10px;
    right: 0;
    width: 71px;
    height: 71px;
    margin: 0;
    background: url("../images/focus-on-ribbon.png") no-repeat 0 0;
    text-indent: -999em;
    overflow: hidden;
}
.w-content p.readmore, .readmore { text-align: right; clear: right; }
.readmore .btn, p.readmore a, .readmore a {
    background: url("../images/readmore.png") no-repeat left center;
    border: 0;
    padding: 0 0 0 15px;
    color: #333;
    font-size: 12px;
}
.readmore .btn .icon-chevron-right, .readmore .btn .icon-chevron-left { display: none; }
.readmore .btn:hover { color: #d05338; background-color: transparent; }

/* paginazione a pillole */
.com-content-category-blog__pagination, .blog-featured .pagination__wrapper, .pagination__wrapper {
    display: flex; justify-content: space-between; align-items: center; padding-top: 10px;
}
.pagination { margin: 0; gap: 5px; flex-wrap: wrap; }
.pagination .page-link {
    border: 1px solid #ddd;
    border-radius: 12px !important;
    padding: 1px 9px;
    font-size: 12px;
    color: #333;
    background: linear-gradient(#fff, #eee);
}
.pagination .active .page-link { background: #4a8bc9; border-color: #3b74ab; color: #fff; }
.pagination .disabled .page-link { color: #bbb; }
.counter { color: #555; font-size: 12px; }

/* barra titolo tipo h1bar.jpg (pagine interne, area riservata) */
.page-header.w-bar, .com-content-category-blog > h2, .com-content-category-blog .category-name {
    color: #fff;
}

/* ---------------------------------------------------------------- colonna destra */
.w-right { padding: 0 0 20px; }
.w-right .moduletable { margin: 0 0 20px; }
/* box con intestazione (Richiesta preventivo, L'esperto risponde, menu corsi) */
.w-right .bar-header { margin: 0; border-radius: 5px 5px 0 0; overflow: hidden; }
.w-right .bar-header h3, .w-right .menu-bar > h3, .w-right .moduletable_wrisponde > h3 {
    margin: 0;
    padding: 10px 0;
    background: url("../images/bg-hsbar.jpg") no-repeat 0 0 #2b6aa3;
    background-size: 100% 100%;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}
.w-right .bar-header h3 a { color: #fff; }
.w-right .menu-bar, .w-right .moduletable_wrisponde {
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    overflow: hidden;
}
.w-right .noheader { border-radius: 0 0 5px 5px; border-top: 0; margin-top: 0; }
.w-right .menu-bar .mod-ct, .w-right .moduletable_wrisponde .mod-ct {
    background: linear-gradient(180deg, #7fa5d3 0%, #9cbde5 60%, #a6c4e8 100%); /* come bg-sbar.jpg, senza giunture */
}
.w-right .menu-bar ul, .w-right ul.mod-menu, .w-footer-cols ul.mod-menu { display: block; list-style: none; margin: 0; padding: 0; }
.w-right .menu-bar li { border-bottom: 1px dotted #dedede; }
.w-right .menu-bar li a { display: block; padding: 6px 10px; color: #fff; font-size: 12px; }
.w-right .menu-bar li a:hover, .w-right .menu-bar li.current > a { color: #fff; background: rgba(255, 255, 255, .15); }
.w-right .moduletable_wrisponde .mod-ct { padding: 10px 15px 15px; text-align: center; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.w-right .moduletable_wrisponde a { color: #fff; }
.w-right .moduletable_wrisponde h4 { font-size: 15px; color: #fff; margin: 10px 0; }
.w-right .moduletable_wrisponde ul.icons { list-style: none; padding: 0; margin: 0 0 10px; }
.w-right .moduletable_wrisponde ul.icons li { padding: 4px 0; }
.w-right .moduletable_wrisponde i.icon-ok { display: none; }
.w-right .mod-login { background: #f5f8fc; padding: 10px; border: 1px solid #d5e1ee; border-radius: 5px; }

/* ---------------------------------------------------------------- disclaimer cookie + "Top" */
.w-disclaimer-row { padding: 15px 0; border-top: 1px solid #eee; }
.w-disclaimer-row p { margin: 0; text-align: center; }
.w-navhelper { border-top: 1px solid var(--w-blue); margin: 0 -30px; padding: 6px 45px 6px; text-align: right; font-size: 11px; }
.w-navhelper a { color: #333; }

/* ---------------------------------------------------------------- footer */
.w-footer { background: var(--w-blue); }
.w-footer-cols {
    background: url("../images/footer_bottom.jpg") repeat 0 0 var(--w-blue-dark);
    border-top: 1px solid #124e7d;
    color: #effffa;
    padding-top: 20px;
    padding-bottom: 25px;
    min-height: 250px;
}
.w-footer-cols .moduletable > h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid #fff;
}
.w-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.w-footer-cols li { margin: 0 0 5px; }
.w-footer-cols a, .w-footer-cols li a { color: #fff; font-size: 12px; }
.w-footer-cols a:hover { color: #cfe3f7; }
.w-footer-cols .mod-articleslatest li { padding: 3px 0 6px; }
.w-footer-cols .moduletable_contatti .mod-ct {
    background: url("../images/brands-map.png") no-repeat center center;
    min-height: 190px;
}
.w-footer-cols .moduletable_contatti p { line-height: 2.8em; color: #fff; margin: 0; }
.w-footer-cols .moduletable_contatti img.bicon { margin: 0 12px 0 0; vertical-align: middle; }
.w-footer-bar { background: var(--w-blue-darker); color: #fff; padding: 10px 30px; }
.w-footer-bar p { margin: 0; text-align: center; font-size: 11px; }

/* ---------------------------------------------------------------- area riservata / allegati */
.winger-allegati { padding-left: 18px; }
.winger-allegati li { padding: 3px 0; }
.winger-corso-video { width: 100%; max-width: 640px; background: #000; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .w-page { padding: 0 15px; }
    .w-brand { padding: 15px 0 0 15px; height: auto; min-height: 70px; }
    .w-nav .mod-menu { flex-direction: column; width: 100%; }
    .w-nav .mod-menu > li { border-right: 0; box-shadow: none; border-top: 1px solid #222; }
    .w-nav .mod-menu ul { position: static; display: block; box-shadow: none; background: #1b1b1b; }
    .w-nav .mod-menu ul li a { padding-left: 30px; }
    .w-main { flex-wrap: wrap; }
    .w-content { padding-right: 0 !important; flex: 1 1 100%; }
    .w-right { flex: 1 1 100%; width: 100%; max-width: 420px; margin: 0 auto; }
    .w-navhelper { margin: 0 -15px; padding: 6px 15px; }
    .w-footer-cols .col-md-4 + .col-md-4 { margin-top: 20px; }
}
@media (max-width: 575.98px) {
    .winger-slide-caption h3 { font-size: 1.1em; }
    .w-slogan p { font-size: 1em !important; }
    .blog-featured .item-image, .blog .blog-item .item-image { float: none; width: 100%; margin: 0 0 10px; }
    .blog-featured .item-image img, .blog .item-image img { width: 100%; height: auto; }
    .blog-featured .item-title, .blog .item-title { margin-right: 60px; font-size: 18px; }
}

/* pagina d'errore */
.w-error { padding: 20px 0 30px !important; }
.w-error h1 { font-size: 22px; }
.w-error-code { color: #999; }

/* JotForm caricato al clic */
.winger-jotform { border: 1px solid #d5e1ee; background: #f5f8fc; border-radius: 5px; padding: 15px 20px; margin: 15px 0; }
.winger-jotform p { text-align: left !important; }
.winger-jotform-frame { width: 100%; min-height: 600px; border: 0; }

/* Pagine con modulo JotForm ("Richiesta preventivo", "L'esperto risponde"): regole del vecchio customw2l.css */
.ric-prev, .esperto-risponde { max-width: 100%; position: relative; }
/* rientro del contenuto del 2.5 (#ja-main #ja-contentwrap { padding-left: 15px }) */
.w-content:has(.ric-prev), .w-content:has(.esperto-risponde) { padding-left: 15px !important; }
.ric-prev div.text-prev, .esperto-risponde div.text-wr { clear: both; padding: 20px 40px 0; }
.ric-prev .text-prev p, .esperto-risponde .text-wr p { text-align: left; }
.ric-prev > div[style*="float"]:first-child, .esperto-risponde > div[style*="float"]:first-child { white-space: nowrap; } /* colonna di pochi px più stretta dei 900px originali */
.esperto-risponde ul.ul1 { list-style: none; }
.esperto-risponde .ul1 i.icon-ok { display: none; }
.ric-prev .winger-jotform, .esperto-risponde .winger-jotform { clear: both; margin: 15px 40px 0; }
/* immagine a destra del modulo (div.img-mod {position:absolute; top:425px; left:530px}): solo a modulo caricato */
.esperto-risponde div.img-mod { display: none; position: absolute; top: 425px; left: 530px; }
.esperto-risponde.winger-form-loaded div.img-mod { display: block; }
.esperto-risponde div.img-mod img { height: 380px; width: auto !important; }
/* a modulo caricato il riquadro sparisce: come nel 2.5 il modulo sta direttamente nella pagina */
.winger-jotform.is-loaded { border: 0; background: none; padding: 0; }
@media (max-width: 991.98px) {
    .esperto-risponde.winger-form-loaded div.img-mod { display: none; }
    .ric-prev div.text-prev, .esperto-risponde div.text-wr { padding: 15px 0 0; }
    .ric-prev .winger-jotform, .esperto-risponde .winger-jotform { margin: 15px 0 0; }
    .ric-prev > div[style*="float"], .esperto-risponde > div[style*="float"] { white-space: normal; float: none !important; width: auto !important; height: auto !important; padding: 0 !important; text-align: left !important; }
}

/* ---------------------------------------------------------------- bottoni come nel 2.5 (ja_mendozite, tema blue) */
/* misurati sul sito attuale: sfondo #55b5c2 + grad.png, bordo #5fbfcb, raggio 3px, maiuscolo 80%, hover senza gradiente */
.site .btn {
    --bs-btn-bg: #55b5c2;
    --bs-btn-border-color: #5fbfcb;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #55b5c2;
    --bs-btn-hover-border-color: #5fbfcb;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #55b5c2;
    --bs-btn-active-border-color: #5fbfcb;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 85, 181, 194;
    background-image: url("../images/btn-grad.png");
    background-repeat: repeat-x;
    background-position: left top;
    border-radius: 3px;
    box-shadow: 1px 1px 1px #fafafa;
    font-family: Arial, sans-serif;
    font-size: 80%;
    font-weight: normal;
    line-height: normal;
    padding: 4px;
    text-transform: uppercase;
}
.site .btn:hover, .site .btn:focus, .site .btn:active { background-image: none; }

/* ---------------------------------------------------------------- login come nel 2.5 (etichetta 200px, campo 165px) */
.w-login-form fieldset { padding-top: 15px; }
.w-login-form .login-fields { margin: 0 0 10px; display: flow-root; }
.w-login-form label { float: left; width: 200px; font-weight: bold; line-height: 19.2px; }
.w-login-form input[type="text"], .w-login-form input[type="password"] {
    box-sizing: border-box;
    width: 165px;
    height: 24px;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: 12px Arial, Helvetica, sans-serif;
}
.w-login-form input:hover, .w-login-form input:focus { border-color: #bfbfbf; outline: 0; }
.w-login-form .btn { margin: 0 0 20px 200px; }
@media (max-width: 575.98px) {
    .w-login-form label { float: none; display: block; width: auto; }
    .w-login-form .btn { margin-left: 0; }
}

/* ---------------------------------------------------------------- corsi e test (layout articolo "corso", ex K2 h2.itemTitle) */
.w-corso .page-header { max-width: 655px; margin: 0 0 20px; } /* 655px = larghezza di h1bar.jpg e del contenuto nel 2.5 */
.w-content .w-corso .w-corso-title {
    box-sizing: border-box;
    height: 52px;
    margin: 0;
    padding: 0 0 0 46px;
    background: url("../images/h1bar.jpg") no-repeat left center #2a65a0;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    color: #fff;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 41px;
    text-shadow: -1px 1px 0 #333;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.w-corso-video { display: block; margin-top: 4px; text-align: right; }
