/*
Theme Name: Libri nel Vento
Theme URI: https://librinelvento.it
Author: Ideama
Author URI: https://ideama.it
Description: Tema personalizzato per il sito Libri nel Vento di Pio Acito
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: librinelvento
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100%;
    background-color: #2DA45E;
    background-image: url('images/sfondo.jpg');
    background-repeat: repeat;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
}

a img {
    border: 0;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
#sfondo {
    width: 100%;
    position: relative;
    left: 50%;
    margin-left: -50%;
    margin-top: 10px;
}

/* Header */
#alto {
    width: 960px;
    height: 118px;
    background: url('images/top.jpg') no-repeat;
    margin: 0 auto;
}

#titolo {
    top: 50px;
    position: relative;
    left: 10pt;
    font-size: 32pt;
    font-family: Arial, sans-serif;
    color: #000000;
    font-weight: bold;
    width: 500px;
}

#titolo .vento {
    font-size: 48pt;
    color: #2DA45E;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */
#menuoperativo {
    position: relative;
    top: 0;
    height: 50px;
    display: block;
    width: 100%;
    left: 0;
    background: #000000 !important;
    background-color: #000000 !important;
    border-top: 2pt solid #ffffff;
    border-bottom: 2pt solid #D9D9D9;
}

#menucentro {
    width: 500px;
    display: block;
    position: relative;
    left: 50%;
    top: 0;
    margin-left: -479px;
    margin-top: 10px;
}

#menu {
    height: 29px;
    display: block;
    width: 900px;
    color: #ffffff;
    left: 80pt;
    font-size: 10pt;
    position: relative;
    line-height: 29px;
}

#menu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: relative;
    list-style-image: none;
}

#menu li {
    float: left;
    font-weight: bold;
}

#menu ul li a {
    padding-left: 20px;
    overflow: hidden;
    margin-top: 0;
    color: #B3B3B3;
    text-decoration: none;
    transition: color 0.3s ease;
}

#menu ul li a:hover,
#menu ul li.current-menu-item a {
    color: #ffffff;
    text-decoration: none;
}

/* Novità in rosso come nell'originale */
#menu ul li:last-child a {
    color: #ff0000;
}

#menu ul li:last-child a:hover {
    color: #ff6666;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
#centro {
    top: 0;
    position: relative;
    display: block;
    background: #ffffff;
    min-height: 400px;
}

#containercentro {
    width: 935px;
    padding: 10pt;
    display: block;
    position: relative;
    left: 50%;
    top: 0;
    margin-left: -479px;
    margin-top: 0;
    padding-bottom: 30px;
    overflow: hidden; /* clearfix per float */
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    color: #BD1D1F;
    font-size: 16pt;
    height: auto;
    margin: 0 0 10px;
}

h2 {
    color: #208BE1;
    font-size: 14pt;
}

h3 {
    font-size: 14pt;
    margin: 0;
    padding: 0;
    color: #2FA45E;
}

h4 {
    color: #000;
    font-weight: normal;
    font-size: 12pt;
    margin: 0;
    padding: 0;
}

h5 {
    color: #000;
    font-weight: normal;
    font-size: 10pt;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Content Elements
   ========================================================================== */
#testo_home {
    position: relative;
    left: 0;
    color: #000;
}

#testo_main {
    position: relative;
    left: 0;
    width: 900px;
    text-align: justify;
    overflow: hidden; /* clearfix */
}

#testo_main::after {
    content: "";
    display: table;
    clear: both;
}

#racconti_home {
    height: auto;
    min-height: 100px;
    width: 900px;
    margin-left: 10px;
    margin-top: 80px;
    padding-left: 10px;
    float: left;
    text-align: justify;
}

#eventi_home {
    height: auto;
    min-height: 100px;
    width: 300px;
    margin-left: 10px;
    margin-top: 80px;
    padding-left: 10px;
    float: left;
    text-align: justify;
}

/* ==========================================================================
   Lists - Racconti & Links
   ========================================================================== */
ul {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.list {
    overflow: hidden; /* clearfix */
}

ul.list li {
    width: 300px;
    min-height: 150px;
    padding: 5px 6px 5px 5px;
    margin: 0;
    float: left;
}

ul.links {
    overflow: hidden; /* clearfix */
}

ul.links li {
    margin: 20px 10px;
}

/* I Venti (Audio) */
#venti ul.links li {
    background: url('images/suono.jpg') no-repeat;
    padding-left: 50px;
}

/* I Venti Page */
.venti-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.venti-list .venti-item {
    background: url('images/suono.jpg') no-repeat left top;
    padding-left: 50px;
    margin-bottom: 30px;
    min-height: 80px;
}

.venti-list .venti-item h3 {
    color: #BD1D1F;
    margin: 0 0 10px 0;
}

.venti-list .venti-item .audio-player {
    margin-top: 10px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
ul.gallery {
    width: 100%;
    max-width: 915px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    overflow: hidden; /* clearfix */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

ul.gallery li {
    width: 100px;
    height: 100px;
    text-align: center;
    border: 5px solid #000000;
    padding: 0;
    list-style: none;
    background: #fff;
}

ul.gallery li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    box-sizing: border-box;
}

ul.gallery li a {
    display: block;
    width: 100%;
    height: 100%;
}

#fotogrande {
    margin: 20px;
    text-align: center;
}

#fotogrande img {
    padding: 3px;
    border: 5px solid #000000;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
#pagine {
    text-align: center;
    clear: both;
    padding: 20px 0;
}

.pagination {
    display: inline-block;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    background: #2DA45E;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover {
    background: #208BE1;
}

.pagination .current {
    background: #BD1D1F;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#bassocentrale {
    position: relative;
    display: block;
    width: 100%;
    left: 0;
    background: url('images/sfondo_basso.jpg') repeat-x;
    clear: both;
    padding-bottom: 60px;
}

#basso {
    width: 960px;
    height: 116px;
    margin: 0 auto;
    background: url('images/quadro-basso.jpg') no-repeat;
}

#basso ul {
    width: 200px;
    margin-top: 0;
    padding-top: 24pt;
    list-style-type: none;
    list-style-image: none;
    position: relative;
    left: 700px;
}

#basso li {
    float: left;
    font-weight: bold;
}

#basso ul li a {
    padding-left: 10pt;
    overflow: hidden;
    margin-top: 0;
    text-decoration: none;
    color: #333;
}

#basso ul li a:hover {
    color: #000000;
    text-decoration: none;
}

#copy {
    height: 52px;
    display: block;
    width: 960px;
    margin: 0 auto;
    padding-top: 10px;
}

#copy .license {
    float: left;
    font-size: 10px;
    margin-left: 200px;
}

#copy .credits {
    float: right;
}

/* ==========================================================================
   Audio Player (HTML5 replacement for Flash)
   ========================================================================== */
.audio-player {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.audio-player audio {
    width: 100%;
}

.audio-player .track-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2DA45E;
}

/* ==========================================================================
   Amici Slider
   ========================================================================== */
.slider-amici {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-amici .swiper-slide {
    text-align: center;
    padding: 20px;
}

.slider-amici .amico-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2DA45E;
}

.slider-amici .amico-nome {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* ==========================================================================
   Lightbox (GLightbox)
   ========================================================================== */
.glightbox-clean .gslide-description {
    background: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 980px) {
    #alto,
    #containercentro,
    #basso,
    #copy {
        width: 100%;
        margin-left: 0;
        left: 0;
    }
    
    #containercentro {
        padding: 15px;
    }
    
    #menu {
        width: 100%;
        left: 0;
    }
    
    #menucentro {
        width: 100%;
        margin-left: 0;
        left: 0;
    }
    
    ul.list li {
        width: 100%;
        float: none;
    }
    
    #testo_main,
    #racconti_home {
        width: 100%;
    }
    
    ul.gallery {
        width: 100%;
    }
    
    ul.gallery li {
        width: calc(25% - 14px);
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    #titolo {
        font-size: 20pt;
        width: 100%;
        text-align: center;
        left: 0;
    }
    
    #titolo .vento {
        font-size: 28pt;
    }
    
    #menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #menu li {
        float: none;
        margin: 5px;
    }
    
    #menuoperativo {
        height: auto;
        padding: 10px 0;
    }
    
    #basso ul {
        left: 0;
        width: 100%;
        text-align: center;
    }
    
    #basso li {
        float: none;
        display: inline-block;
    }
    
    #copy {
        text-align: center;
    }
    
    #copy .license,
    #copy .credits {
        float: none;
        position: static;
        display: block;
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    ul.gallery li {
        width: calc(50% - 14px);
    }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404-page {
    text-align: center;
    padding: 60px 20px;
}

.error-404-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #2DA45E;
    line-height: 1;
    display: block;
    text-shadow: 3px 3px 0 #000;
}

.error-404-page h1 {
    font-size: 28px;
    margin: 20px 0 10px;
    color: #000;
}

.error-404-page p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.btn-home {
    display: inline-block;
    background: #2DA45E;
    color: #fff !important;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border: 3px solid #000;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: #000;
    color: #2DA45E !important;
}

/* ==========================================================================
   Single Post Elements
   ========================================================================== */
.post-thumbnail-left {
    float: left;
    margin: 0 20px 20px 0;
}

.post-back-link {
    clear: both;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.post-link-external {
    margin-top: 20px;
}

.racconto-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Title link */
#titolo a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2DA45E;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 10001;
    }
    
    .menu-toggle.is-active .hamburger-line {
        background-color: #fff;
    }
    
    #menucentro {
        position: relative;
    }
    
    #menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        z-index: 10000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    #menu.is-open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    #menu ul {
        display: block !important;
        text-align: center;
        width: 100%;
    }
    
    #menu li {
        display: block !important;
        float: none !important;
        margin: 0 !important;
    }
    
    #menu li a {
        display: block;
        padding: 20px;
        font-size: 18pt;
        color: #2DA45E !important;
        border-bottom: 1px solid rgba(45, 164, 94, 0.2);
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    #menu li a:hover {
        background: rgba(45, 164, 94, 0.1);
    }
    
    #menu li:last-child a {
        border-bottom: none;
    }
    
    #menuoperativo {
        position: relative;
        min-height: 50px;
    }
}
