/*
Theme Name: The Newspaper Child
Theme URI: http://cmsmasters.net/the-newspaper-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: The Newspaper Child Theme - Scuola dei Concetti APS
Template: the-newspaper
Version: 1.0.0
License:
License URI:
Text Domain: the-newspaper-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* Hide headliner section on home page */


/*
body,page {
    background-color: #fefdf3!important;
}   

body.home .headline_outer,
body.home .headline,
.page-template-page-home .headline_outer,
.page-template-page-home .headline {
    display: none !important;
    background-color: #fefdf3!important;
}
*/

html body {
    min-height: 100vh;
}

/*Modifiche 05-12-25*/
.scuola-evento-content{
    padding:15px 0;
}

.scuola-eventi-swiper{
    padding:15px 0px!important;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.scuola-section-title{
    margin:30px 0!important;
}

.scuola-notizie-slider-wrapper{
    margin-bottom: 30px!important;
}

.scuola-notizia-btn, .scuola-eventi-list-btn{
    width: fit-content;
    background: transparent;
    border:1px solid #000;
    padding: 8px 25px;
    color: #000;
    text-transform: uppercase;
    font-weight: 400;
    font-style: normal;
    font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif;
    font-size: 13px;
    line-height: 1;
}

.scuola-notizia-btn:hover, .scuola-eventi-list-btn:hover{
    width: fit-content;
    background: #000;
    border:1px solid #000;
    padding: 8px 25px;
    color: #fff;
    text-transform: uppercase;
    font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif;
    font-size: 14px;
    font-style: normal;
    
}

.swiper-button-next{
    right:-10px!important;
}

.swiper-button-prev{
    left:-10px!important;
}

.scuola-evento-title{
    margin:0;
}

.scuola-evento-thumb img{
    height:200px;
    object-fit: cover;
    margin-bottom:15px;
}

.scuola-evento-data{
    display:block;
}

.container-dati{
    display:flex;
    flex-direction: column;
}

.scuola-evento-card {
    position: relative;
    height: 250px; /* tutte uguali */
    padding: 20px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .3s ease, box-shadow .3s ease;
}

.scuola-evento-card:hover {
    transform: translateY(-4px);
}

/* Overlay scuro - reduced opacity to allow background image visibility */
.scuola-evento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(2, 21, 68, 0.4));
    z-index: 1;
    border: 1px solid #000;
}

/* Contenuto interno */
.scuola-evento-inner {
    position: relative;
    z-index: 2;
}

/* Titolo */
.scuola-evento-title {
    margin: 0 0 10px;
}

.scuola-evento-title a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}
.scuola-evento-title a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}
/* Contenuto */
.scuola-evento-content {
    padding: 0;
}

.container-dati {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.scuola-evento-meta span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scuola-notizia-featured-card {
    display: flex;
    gap: 1.8rem;
    align-items: stretch;
}

.scuola-notizia-featured-image {
    flex: 0 0 35%;
}

.scuola-notizia-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.scuola-notizia-featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Mobile: stack verticale */
@media (max-width: 768px) {
    .scuola-notizia-featured-card {
        flex-direction: column;
    }

    .scuola-notizia-featured-image {
        flex: 0 0 auto;
    }
}

.scuola-eventi-list-item {
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}
.scuola-eventi-list-item:last-of-type {
    border-bottom: none;
}

.scuola-eventi-list-heading {
    margin-bottom: 3px;
}

.scuola-eventi-list-title {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.scuola-eventi-list-title:hover {
    text-decoration: underline;
}

.scuola-eventi-list-meta {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scuola-eventi-list-time::before {
    content: "•";
    margin: 0 4px 0 0;
}

/* Pulsante finale */
.scuola-eventi-list-footer {
    margin-top: 12px;
}


.newsletter-form-wrapper{
    max-width:560px;
    margin:0 auto;
}
/*Fine Modifiche 05-12-25*/

/* Eventi Archive Styles */
.eventi-archive {
    padding: 20px 0;
}

.eventi-archive .page-title {
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: bold;
}

.eventi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.evento-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.evento-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.evento-thumbnail {
    width: 100%;
    overflow: hidden;
}

.evento-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.evento-item:hover .evento-thumbnail img {
    transform: scale(1.05);
}

.evento-content {
    padding: 20px;
}

.evento-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.evento-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.evento-title a:hover {
    color: #0073aa;
}

.evento-meta {
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

.evento-meta strong {
    color: #333;
    margin-right: 5px;
}

.evento-time {
    margin-left: 10px;
}

.evento-excerpt {
    margin: 15px 0;
    line-height: 1.6;
}

.evento-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.evento-read-more:hover {
    background: #005a87;
    color: #fff;
}

.eventi-pagination {
    margin-top: 40px;
    text-align: center;
}

/* Single Evento Styles */
.evento-single {
    max-width: 800px;
    margin: 0 auto;
}

.evento-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.evento-title {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.evento-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.evento-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.evento-meta-label {
    font-weight: bold;
    color: #333;
}

.evento-meta-value {
    color: #666;
}

.evento-featured-image {
    margin: 30px 0;
}

.evento-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.evento-content {
    margin: 30px 0;
    line-height: 1.8;
}

.evento-content h2,
.evento-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.evento-iscrizione {
    margin: 40px 0;
    text-align: center;
}

.evento-button {
    display: inline-block;
    padding: 15px 40px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.evento-button:hover {
    background: #005a87;
    color: #fff;
}

.evento-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.evento-navigation a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.evento-navigation a:hover {
    color: #005a87;
}

/* Newsletter Form Styles */
.brevo-newsletter-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.brevo-newsletter-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.brevo-newsletter-form .form-group {
    margin-bottom: 15px;
}

.brevo-newsletter-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.brevo-newsletter-form input[type="email"],
.brevo-newsletter-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.brevo-newsletter-form input[type="email"]:focus,
.brevo-newsletter-form input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

.brevo-newsletter-form button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.brevo-newsletter-form button[type="submit"]:hover:not(:disabled) {
    background: #005a87;
}

.brevo-newsletter-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Payment Success Page */
.payment-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin: 30px 0;
}

.success-icon svg {
    margin: 0 auto;
}

.success-message {
    font-size: 1.3em;
    color: #4CAF50;
    font-weight: bold;
    margin: 20px 0;
}

.payment-success p {
    margin: 15px 0;
    line-height: 1.8;
}

.next-steps {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.next-steps h3 {
    margin-top: 0;
    color: #333;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.action-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.action-buttons .button:hover {
    background: #005a87;
    color: #fff;
}

.action-buttons .button.secondary {
    background: #666;
}

.action-buttons .button.secondary:hover {
    background: #555;
}

/* PayPal Button Container */
#paypal-button-container {
    margin: 20px 0;
    max-width: 500px;
}

/* Logo Styles - Override theme defaults */
.header_mid .logo_wrap .logo img.custom-logo {
    max-height: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    vertical-align: middle;
    transition: max-height 0.3s ease, min-width 0.3s ease;
}

/* Logo reduced size on scroll */
body.header-scrolled .header_mid .logo_wrap .logo img.custom-logo,
#header.scrolled .header_mid .logo_wrap .logo img.custom-logo {
    max-height: 80px !important;
    min-width: 100px !important;
}

.header_mid .logo_wrap .logo {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.header_mid .logo_wrap .logo a {
    display: block;
    line-height: 1;
}

/* Ensure SVG logos are visible and have dimensions */
.header_mid .logo_wrap .logo img[src$=".svg"],
.header_mid .logo_wrap .logo img.custom-logo[src$=".svg"] {
    max-height: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    width: auto !important;
    min-height: 50px !important;
    transition: max-height 0.3s ease, min-width 0.3s ease;
}

/* SVG logo reduced size on scroll */
body.header-scrolled .header_mid .logo_wrap .logo img[src$=".svg"],
body.header-scrolled .header_mid .logo_wrap .logo img.custom-logo[src$=".svg"],
#header.scrolled .header_mid .logo_wrap .logo img[src$=".svg"],
#header.scrolled .header_mid .logo_wrap .logo img.custom-logo[src$=".svg"] {
    max-height: 80px !important;
    min-width: 100px !important;
}

@media (max-width: 768px) {
    .header_mid .logo_wrap .logo img.custom-logo {
        max-height: 100px !important;
        min-height: 40px !important;
    }
    
    /* Logo reduced size on scroll - tablet */
    body.header-scrolled .header_mid .logo_wrap .logo img.custom-logo,
    #header.scrolled .header_mid .logo_wrap .logo img.custom-logo {
        max-height: 60px !important;
        min-width: 80px !important;
    }
}

@media (max-width: 480px) {
    .header_mid .logo_wrap .logo img.custom-logo {
        max-height: 80px !important;
        min-height: 30px !important;
    }
    
    /* Logo reduced size on scroll - mobile */
    body.header-scrolled .header_mid .logo_wrap .logo img.custom-logo,
    #header.scrolled .header_mid .logo_wrap .logo img.custom-logo {
        max-height: 50px !important;
        min-width: 70px !important;
    }
}

/* Home Page Custom Styles */
.home-page-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-intro-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.home-main-title {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.2;
}

.home-intro-text.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.home-intro-text.two-columns .column {
    line-height: 1.8;
    color: #555;
}

.home-intro-text.two-columns .column p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.home-intro-text.two-columns .column p:last-child {
    margin-bottom: 0;
}

/* Newsletter Section */
.home-newsletter-section {
    margin-top: 60px;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.newsletter-intro {
    font-size: 1.1em;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form-centered {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.newsletter-form-centered .form-group {
    margin-bottom: 20px;
}

.newsletter-form-centered label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.newsletter-form-centered .newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.newsletter-form-centered .newsletter-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.newsletter-form-centered .newsletter-submit {
    width: 100%;
    padding: 14px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.newsletter-form-centered .newsletter-submit:hover:not(:disabled) {
    background: #005a87;
}

.newsletter-form-centered .newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-form-centered .newsletter-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.newsletter-form-centered .newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-form-centered .newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.paypal-btn{
    width:180px;
    height:66px;
    display: inline-block;
    background:url(images/ppalbtn.png);
    background-repeat:no-repeat;
    background-size:cover;
    transform:scale(1);
    transition:all 0.2s ease;
}
.paypal-btn:hover{
    transform:scale(1.15);
    transition:all 0.2s ease;
}
/* Responsive Styles */
@media (max-width: 768px) {
    .home-main-title {
        font-size: 2.2em;
    }
    
    .home-intro-text.two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .home-newsletter-section {
        padding: 40px 15px;
    }
    
    .newsletter-form-centered {
        padding: 25px 20px;
    }
    
    .newsletter-title {
        font-size: 1.8em;
    }
    .eventi-grid {
        grid-template-columns: 1fr;
    }
    
    .evento-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .evento-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .brevo-newsletter-form {
        max-width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .button {
        width: 100%;
    }
}

/* Footer Styles - Scuola dei Concetti APS */
.footer_scuola_info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_organization {
    text-align: center;
}

.footer_org_name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.footer_org_desc {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.footer_copyright {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    line-height: 1.6;
}

.footer_policy_link {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer_policy_link:hover {
    opacity: 0.8;
}
.headline_outer .headline_inner.align_left .headline_text {
    padding-left: 0px;
}
header.cmsmasters_archive_item_header.entry-header {
    margin-top: 10px;
}

ul.lista-eventi li:before {
    content: "";
    width: 0;
    padding: 0;
    margin: 0;
}
ul.lista-eventi li span {
    font-size: 13px;
    text-transform: uppercase;
}
ul.lista-eventi li a{
    font-weight:700;
}
@media (max-width: 768px) {
    .footer_scuola_info {
        margin: 15px 0;
        padding: 12px 0;
    }
    
    .footer_org_name {
        font-size: 1em;
    }
    
    .footer_org_desc {
        font-size: 0.85em;
    }
    
    .footer_copyright {
        font-size: 0.85em;
        margin-top: 15px;
        padding-top: 12px;
    }
}


/* Footer Styles - Scuola dei Concetti APS */
.footer_scuola_info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_organization {
    text-align: center;
}

.footer_org_name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.footer_org_desc {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.footer_copyright {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    line-height: 1.6;
}

.footer_policy_link {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer_policy_link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer_scuola_info {
        margin: 15px 0;
        padding: 12px 0;
    }
    
    .footer_org_name {
        font-size: 1em;
    }
    
    .footer_org_desc {
        font-size: 0.85em;
    }
    
    .footer_copyright {
        font-size: 0.85em;
        margin-top: 15px;
        padding-top: 12px;
    }
}

/* Hide comments section completely */
.comments-area,
#comments,
.comment-respond,
.comment-form,
.comments-title,
.comment-list,
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
.post_comments,
.comments_nav,
.commentlist,
.nocomments {
    display: none !important;
}


.sidebar > aside.widget {
    padding-left: 20px;
    padding-right: 0;
}