/*
Theme Name: azione5
Author: Studio Azione S.r.l.
Author URI: https://studioazione.it/
Description: azione5 comprende alcune funzionalità di base, griglie e componenti HTML/CSS. Non vendibile singolarmente ;)
Requires at least: 5.3
Tested up to: 5.6
Version: 2020.1
Requires PHP: 7.0
Text Domain: saz
*/

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/

#map-test-openstreetmap {
    height: 500px;
    width: 100%;
}

body.admin-bar nav.fixed-top {
    top: 46px;
}

@media (min-width: 783px) {

    /* NB questo breakpoint è definito in WP, non in Bootstrap */
    body.admin-bar nav.fixed-top {
        top: 32px;
    }
}

/*
Breakpoint predefiniti in WP per la admin bar:
max-width: 782px
max-width: 600px
max-width: 400px
*/

#primary {
    margin-top: 66px;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
    word-wrap: break-word;
}

ol.comment-list,
ol.comment-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
    text-indent: 0;
    clear: both;
}

ol.comment-list li {
    margin-top: 20px;
    padding: 20px;
    position: relative;
}

ol.comment-list li div.vcard img.avatar {
    display: block;
}

ol.comment-list li ul.children li.depth-2,
ol.comment-list li ul.children li.depth-3,
ol.comment-list li ul.children li.depth-4,
ol.comment-list li ul.children li.depth-5 {
    margin: 0 0 .25em;
}

ol.comment-list .says {
    display: none;
}

ol.comment-list li ul.children li.odd {}

ol.comment-list li.even {
    background: #FFF;
    border: 1px solid #f0f0f0;
}

ol.comment-list li.odd {
    background: #f0f0f0;
}

.comment-awaiting-moderation {
    font-style: italic;
}

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

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

.alignnone {
    display: block;
    max-width: 100%;
    height: auto;
}

.alignleft {
    display: inline;
    float: left;
}

.alignright {
    display: inline;
    float: right;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {}

.wp-caption-text {
    background-color: #f0f0f0;
    text-align: center;
    font-size: 85%;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 10px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 5px;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

div.gallery figure {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
## FIX CF7
--------------------------------------------------------------*/

.wpcf7-form .checkbox input[type="checkbox"] {
    position: relative;
    margin: 0 5px 0 -13px;
}

/*--------------------------------------------------------------
## WooCommerce
--------------------------------------------------------------*/
@font-face {
    font-family: star;
    src: url(fonts/star.eot);
    src: url(fonts/star.eot?#iefix) format("embedded-opentype"), url(fonts/star.woff) format("woff"), url(fonts/star.ttf) format("truetype"), url(fonts/star.svg#star) format("svg");
    font-weight: 400;
    font-style: normal
}

.single-product .woocommerce-product-rating .star-rating {
    float: left;
    margin-right: .25em;
}

.single-product .woocommerce-product-rating {
    margin-bottom: 2em;
    line-height: 1;
}

.widget_rating_filter li .star-rating {
    float: left;
    margin-top: .3em
}

ul.products li.product .star-rating {
    display: block;
    margin-bottom: .75em
}

.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star
}

.star-rating::before {
    content: '\73\73\73\73\73';
    float: left;
    top: 0;
    left: 0;
    position: absolute
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em
}

.star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0
}

.woocommerce #reviews li.comment,
.woocommerce #reviews li.review {
    list-style: none;
    margin-right: 0;
    margin-bottom: 2.5em
}

.woocommerce #reviews li.comment .avatar,
.woocommerce #reviews li.review .avatar {
    max-height: 36px;
    width: auto;
    float: right
}

.woocommerce #reviews li.comment p.meta,
.woocommerce #reviews li.review p.meta {
    margin-bottom: .5em
}

.woocommerce #reviews p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
    box-shadow: none
}

.woocommerce #reviews p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: star;
    content: '\73';
    text-indent: 0
}

.woocommerce #reviews p.stars a:hover~a::before {
    content: '\73'
}

.woocommerce #reviews p.stars.selected a.active::before,
.woocommerce #reviews p.stars:hover a::before {
    content: '\53'
}

.woocommerce #reviews p.stars.selected a.active~a::before {
    content: '\73'
}

.woocommerce #reviews p.stars.selected a:not(.active)::before {
    content: '\53'
}

/*--------------------------------------------------------------
## Flickity
--------------------------------------------------------------*/


/* Hamburger */

.navbar-toggler {
    padding: 0 0 0 15px;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent !important;
    border-radius: 0;
}

#nav-icon4 {
    width: 22px;
    height: 22px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon4 span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    border-radius: 0;
    opacity: 1;
    right: 0;
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon4 span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 10px;
    left: 0;
}

#nav-icon4 span:nth-child(2) {
    width: 0%;
    opacity: 0;
    top: 10px;
    left: 0;
}

#nav-icon4 span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 10px;
    left: 0;
}

.collapsed #nav-icon4 span {
    opacity: 1;
    right: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
}

.collapsed #nav-icon4 span:nth-child(1) {
    top: 2px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

.collapsed #nav-icon4 span:nth-child(2) {
    top: 10px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
    width: 100%;
}

.collapsed #nav-icon4 span:nth-child(3) {
    top: 18px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

/*Modale Search */

#searchModal .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#searchModal button.close {
    position: absolute;
    top: 30px;
    right: 30px;
    opacity: .9;
    text-shadow: none;
}

.modal-backdrop {
    opacity: 1 !important;
}

#searchModal .modal-content {
    width: 35%;
    background-color: transparent;
    border: none;
}

#searchModal .search-form-modale .form-control {
    background: rgba(255, 255, 255, 1);
    border: none;
    font-size: 2rem;
    border-bottom: none;
    cursor: pointer;
    border-radius: 100px;
}

.modal-body .fa-search {
    position: absolute;
    left: 40px;
}

#searchModal input::placeholder {
    /* Firefox, Chrome, Opera */
    color: rgba(0, 0, 0, 0.8) !important;
}

#searchModal input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(0, 0, 0, 0.8) !important;
}

#searchModal input::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(0, 0, 0, 0.8) !important;
}

.wp-block-search__button-outside input::placeholder {
    /* Firefox, Chrome, Opera */
    color: rgba(0, 0, 0, 0.6) !important;
}

.wp-block-search__button-outside input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(0, 0, 0, 0.6) !important;
}

.wp-block-search__button-outside input::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(0, 0, 0, 0.6) !important;
}

.notes {
    opacity: 1;
    font-size: 0.875rem;
    pointer-events: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    margin: 0.5rem 1rem;
}

@media (min-width: 992px) {
    .navbar-azione {
        height: 70px;
    }
    .card-modulo .card-body {
        display: flex!important;
        justify-content: space-between;
        align-items: center;
    }
    .title-modulo {
        display: flex!important;
        align-items: center;
        width: 50%;
    }
}

@media (max-width: 991px) {
    .carousel-saz-gallery img {
        display: block;
        height: 350px !important;
    }
    .box-dettagli{
        text-align: center;
    }
}


/*===== Modifiche area riservata =====*/

.percent {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.percent svg {
    position: relative;
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.percent svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #dde7f0;
    stroke-width: 10;
    stroke-linecap: round;
}

.percent svg circle:last-of-type {
    stroke-dasharray: 625px;
    stroke-dashoffset: calc(625px - (625px * var(--percent)) / 100);
    stroke: #2c62a9;
}

.percent .number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.percent .number div {
    font-weight: 200;
    font-size: 3.5rem;
}

.percent .number div span {
    font-size: 2rem;
}

.card:nth-child(1) svg circle:last-of-type {
    stroke: #f39c12;
}

.dettagli-corso {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dettagli-corso li{
    padding: 5px 0;
}
.bg-gray-ars{
    background: #f4f4f4;
}
.card-moduli {
    border: none;
    border-radius: 0;
    background: transparent;
}
.card-moduli .card-header {
    background: transparent;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-modulo:hover{
    -webkit-box-shadow: 0px 10px 10px -10px rgba(0, 0, 0, .2);
    box-shadow: 0px 10px 10px -10px rgba(0, 0, 0, .2);
}
.card-modulo:hover a{
    text-decoration: none;
}
.card-modulo .card-body {
    display: block;
}
.circle-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50rem;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-module-progress {
    flex: 1 1 50%;
    margin: 0;
}
.detail-module-progress__duration {
    flex: 0 1 13%;
    margin: 0 12px;
}
.detail-module-progress__progress {
    flex: 0 0 133px;
    margin: 0 12px;
    width: auto;
}
.detail-module-progress__cta {
    flex: 0 0 24px;
    text-align: right;
}
.accordion > .card-moduli > .card-header {
    border-radius: 0;
   margin-bottom: 0;
}
