/*
 * Adattamenti per WordPress.
 * Il CSS originale del template Joomla e in style.css e NON e stato modificato.
 */

/* Barra di amministrazione di WordPress (visibile solo a chi e collegato) */
#wpadminbar img { width: auto; margin: 0; }
body.admin-bar .navbar-fixed-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar-fixed-top { top: 46px; } }
@media (max-width: 767px) { body.admin-bar .navbar-fixed-top { top: 0; } }

/* Slideshow (sostituisce Nivo Slider) */
.sporting-slider { position: relative; overflow: hidden; }
#slideshow .sporting-slider img.sporting-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; margin: 0; opacity: 0; transition: opacity 1s ease; z-index: 1;
}
#slideshow .sporting-slider img.sporting-slide:first-child { position: relative; height: auto; }
#slideshow .sporting-slider img.sporting-slide.is-active { opacity: 1; z-index: 2; }
.sporting-slider-nav {
    position: absolute; top: 50%; z-index: 1000; margin-top: -22px; width: 44px; height: 44px;
    line-height: 44px; text-align: center; color: #fff; font-size: 18px;
    background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s;
}
.sporting-slider-nav:hover, .sporting-slider-nav:focus { color: #fff; background: rgba(223,37,28,.9); text-decoration: none; }
.sporting-slider:hover .sporting-slider-nav, .sporting-slider-nav:focus { opacity: 1; }
.sporting-slider-prev { left: 10px; }
.sporting-slider-next { right: 10px; }
@media (max-width: 767px) { .sporting-slider-nav { opacity: .8; } }

/* Menu inseriti come widget nel fondo pagina e nelle colonne */
.widgetRight .menu, .widgetLeft .menu { list-style: none; }
.footer-above ul.nav li ul.sub-menu { display: none; }

/* Testo copyright e voce del fondo pagina */
.footer-below .copy { padding: 10px 0; }
.footer-below .copy p { margin: 0; text-align: inherit; }

/* Ricerca nella barra rossa */
.searchC form { margin: 0; }
.searchC input#mod-search-searchword { -webkit-appearance: none; border-radius: 0; }
.searchC input#mod-search-searchword::placeholder { color: rgba(255,255,255,.8); }

/* Modulo di ricerca nel contenuto */
.search-form input[type="text"] { margin-left: 0; min-width: 240px; max-width: 100%; }
.search-results dd { margin-bottom: 4px; }
.search-results .result-text p { margin-bottom: 10px; }

/* Titoli e schede: se nei widget si usa il blocco "Titolo" (h2) prende lo stile h3 */
.feature-col .wp-block-heading, .widgetLeft .wp-block-heading, .widgetRight .wp-block-heading {
    font-size: 1.75em !important; margin: 1.2em 0 .6em 0 !important; font-weight: 500;
}
.feature-col .moduletable > h3:first-child, .feature-col .wp-block-heading:first-child { margin-top: 0 !important; }

/* Classi standard dell'editor di WordPress */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
img.alignleft, img.alignright { max-width: 300px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9em; color: #666; margin-top: -12px; margin-bottom: 15px; }
.wp-block-image { margin: 0 0 1em 0; }
.wp-block-button__link, .wp-element-button {
    background-color: #df2526; color: #fff; border-radius: 0; text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0,0,0,.4); padding: 6px 15px;
}
.wp-block-button__link:hover, .wp-element-button:hover { background-color: #4A2500; color: #fff; text-decoration: none; }
.wp-block-file__button { border-radius: 0; background: #df2526; }
.screen-reader-text, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Colori della tavolozza dell'editor */
.has-rosso-color { color: #df2526 !important; }
.has-marrone-color { color: #4a2500 !important; }
.has-arancio-color { color: #ff7d14 !important; }
.has-grigio-color { color: #eaeaea !important; }
.has-testo-color { color: #333 !important; }
.has-bianco-color { color: #fff !important; }
.has-rosso-background-color { background-color: #df2526 !important; }
.has-marrone-background-color { background-color: #4a2500 !important; }
.has-arancio-background-color { background-color: #ff7d14 !important; }
.has-grigio-background-color { background-color: #eaeaea !important; }
.has-testo-background-color { background-color: #333 !important; }
.has-bianco-background-color { background-color: #fff !important; }

/* Paginazione WordPress dentro lo stile originale */
.pagination { display: block; }
.pagination ul li .current { background: #df2526; color: #fff; }

/* Testo scorrevole (avvisi ai soci) */
.sporting-scroller { overflow: hidden; position: relative; margin-bottom: 16px; }
.sporting-scroller:hover { overflow-y: auto; }
.sporting-scroller-inner > :last-child { margin-bottom: 0; }
.sporting-edit-link { font-size: .85em; margin: -10px 0 16px; }

/* Modulo contatti */
.sporting-contact-form .inputbox, .sporting-contact-form .textarea { width: 100%; margin: 3px 0; color: #000; }
.sporting-contact-form .sc-trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.sporting-contact-form .sc-privacy { font-size: .9em; text-align: left; }
.sporting-contact-form .sc-privacy input { margin-right: 4px; }
.sporting-contact .alert ul { margin: 0; padding-left: 18px; }

/* Elenco notizie su due colonne */
.blogItem .items-row { margin-left: -15px; margin-right: -15px; }
.blogItem .item .page-header h2 { font-size: 28px !important; }
