/* ===== Vestige Moto — Override per Guzzi a Trieste ===== */

/* Font principale: Roboto (corpo) + Playfair Display (titoli) */
body, p, a, li, td, input, textarea, select, button,
.lead, .notice-bar, .site-footer, label {
    font-family: 'Roboto', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.widget-title, .skewed-title-bar h4,
.featured-block h3, .eventi-title,
.page-header.parallax span {
    font-family: 'Playfair Display', serif !important;
}

/* Contact Form 7 */
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 15px;
    font-family: inherit;
    background: #f9f9f9;
    transition: border-color .2s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: #F23827;
    outline: none;
    background: #fff;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { font-weight: normal; font-size: 13px; }
.wpcf7 .wpcf7-acceptance { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 15px; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label { font-size: 13px; color: #555; line-height: 1.5; }
.wpcf7 input[type="submit"] {
    background: #F23827;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: #d42c1c; }
.wpcf7 .wpcf7-not-valid-tip { color: #F23827; font-size: 12px; }
.wpcf7 .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 10px 15px;
    border-radius: 2px;
    font-size: 14px;
}
.wpcf7 .wpcf7-mail-sent-ok { background: #dff0d8; border-color: #3c763d; color: #3c763d; }
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng { background: #f2dede; border-color: #F23827; color: #a94442; }

/* Forza accento rosso (color4) su elementi chiave */
a, .accent-color, .widget-title, .sidebar-widget .widget-title,
.sf-menu > li > a:hover, .sf-menu > li.sfHover > a,
.featured-block h3 a:hover, .basic-link, address strong,
.exhibition-time, .grid-item h4 a {
    color: #F23827;
}
.btn-primary, .accent-bg,
.nav-pills > li.active > a,
.skewed-title-bar h4,
.sort-source li.active a::before {
    background-color: #F23827 !important;
    border-color: #d42c1c !important;
}

/* Hero FlexSlider — rimuove bordo e ombra default */
.hero-slider.flexslider {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Hero FlexSlider — frecce */
.hero-slider.flexslider .flex-direction-nav a:before {
    font-family: FontAwesome !important;
    font-size: 30px;
    line-height: 100px;
}
.hero-slider.flexslider .flex-direction-nav a.flex-prev:before {
    content: "\f104" !important;
}
.hero-slider.flexslider .flex-direction-nav a.flex-next:before {
    content: "\f105" !important;
}

/* Hero FlexSlider */
.hero-slider.flexslider .slides li {
    min-height: 520px;
    background-size: cover;
    background-position: center;
}
.hero-slider.flexslider .slides li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.flex-caption {
    position: absolute;
    bottom: 80px;
    left: 8%;
    z-index: 10;
    max-width: 600px;
}
.flex-caption h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
}
.flex-caption p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Page header parallax */
.page-header.parallax {
    background-size: cover;
    background-position: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    position: relative;
}
.page-header.parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.page-header.parallax > div {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}
.page-header.parallax span {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
}

/* Notice bar */
.notice-bar {
    background: #222;
    border-bottom: 2px solid #F23827;
    padding: 10px 0;
}
.notice-bar .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 6px 0;
}
.notice-bar .breadcrumb > li + li::before { color: #999; }
.notice-bar .lead { margin: 0; font-size: 22px; color: #ccc; font-weight: bold;}

/* Topbar */
.topbar { background: #111; border-bottom: 1px solid #2a2a2a; }
.topbar p { color: #aaa; font-size: 13px; margin: 0; line-height: 36px; }

/* Site header */
.site-header { border-bottom: 2px solid #F23827; }

/* Logo */
.site-logo img { max-height: 80px; width: auto; }

/* Sidebar nav list */
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-list li { border-bottom: 1px solid #eee; }
.nav-list li a { display: block; padding: 8px 0; color: #444; }
.nav-list li a:hover { color: #F23827; text-decoration: none; }
.nav-list li.current-menu-item > a { color: #F23827; font-weight: 600; }

/* Sidebar partner logos — colorati, non invertiti */
.sidebar .widget img { max-width: 100%; }

/* Footer — font uniformi */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer li,
.site-footer address,
.site-footer small,
.site-footer span,
.site-footer-bottom,
.site-footer-bottom p {
    font-family: 'Roboto', sans-serif !important;
    font-style: normal !important;
}
.site-footer .widget-title,
.site-footer h4 {
    font-family: 'Playfair Display', serif !important;
}

/* Footer nav cleanup */
.site-footer .widget_links ul { list-style: none; padding: 0; margin: 0; }
.site-footer .widget_links ul li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }

/* WP block content */
.post-content figure { margin: 1.5em 0; }
.post-content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.post-content .wp-block-gallery figure { flex: 1 1 calc(33% - 8px); margin: 0; }
.post-content .wp-block-gallery figure img { width: 100%; height: 200px; object-fit: cover; border-radius: 3px; }
.post-content p { line-height: 1.8; text-align: justify; }
.post-content strong { color: #F23827; }
.post-content blockquote { border-left: 3px solid #F23827; }

/* Lista eventi (pagina index eventi) */
.eventi-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 10px; }
.eventi-thumb-wrap { flex-shrink: 0; }
.eventi-thumb { width: 160px; height: 110px; object-fit: cover; border-radius: 3px; display: block; }
.eventi-body { flex: 1; }
.eventi-title { font-size: 18px; margin: 0 0 8px; }
.eventi-title a { color: #222; }
.eventi-title a:hover { color: #F23827; text-decoration: none; }
.eventi-excerpt { color: #555; font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
@media (max-width: 600px) {
    .eventi-item { flex-direction: column; }
    .eventi-thumb { width: 100%; height: 180px; }
}

/* Responsive */
@media (max-width: 768px) {
    .flex-caption h1 { font-size: 30px; }
    .flex-caption { bottom: 40px; }
}
