/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ==========================================================
   PDO Archive — Griglia categoria / tag
   Da aggiungere in: child-theme/style.css
   ========================================================== */

/* ── Hero intestazione ── */
.pdo-archive-hero {
    background-color: #4a5e1a; /* verde scuro come in img2 — adatta al tuo brand */
    color: #fff;
    text-align: center;
    padding: 48px 24px 36px;
}

.pdo-archive-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
	font-family: "Belleza", Sans-serif;
}

.pdo-archive-desc {
    font-size: 1rem;
    margin: 0 0 16px;
    opacity: .85;
}

/* Breadcrumb */
.pdo-breadcrumb {
    font-size: .85rem;
    opacity: .8;
}
.pdo-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.pdo-breadcrumb a:hover {
    text-decoration: underline;
}
.pdo-breadcrumb-sep {
    margin: 0 6px;
}

/* ── Wrapper contenuto ── */
.pdo-archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ── Barra filtri tag ── */
.pdo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}
a.pdo-filter-btn {
	color: #000000;
}

.pdo-filter-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all .2s ease;
    cursor: pointer;
}

.pdo-filter-btn:hover,
.pdo-filter-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ── Griglia 3 colonne ── */
.pdo-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .pdo-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .pdo-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card ── */
.pdo-post-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.pdo-post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
}

/* Immagine */
.pdo-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.pdo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.pdo-post-card:hover .pdo-card-img {
    transform: scale(1.04);
}

/* Badge categoria sopra immagine */
.pdo-card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c8a000; /* giallo oro — adatta al tuo brand */
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
    z-index: 1;
}

/* Body card */
.pdo-card-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Titolo */
.pdo-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pdo-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.pdo-card-title a:hover {
    color: #c8a000;
}

/* Meta (data + tag) */
.pdo-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .78rem;
    color: #888;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pdo-meta-date,
.pdo-meta-tag {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdo-meta-date svg,
.pdo-meta-tag svg {
    flex-shrink: 0;
    color: #aaa;
}

/* Excerpt */
.pdo-card-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

/* Bottone Read More — uguale UAE default */
.pdo-read-more {
    display: inline-block;
    background: #FECC00 !important; /* giallo UAE — adatta al tuo colore esatto */
    color: #000000 !important;
    font-size: .875rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background .2s ease, color .2s ease;
}

.pdo-read-more:hover {
    background: #95C12B !important;
    color: #000000 !important;
}

/* ── Paginazione ── */
.pdo-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pdo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .875rem;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all .2s ease;
}

.pdo-pagination .page-numbers.current,
.pdo-pagination .page-numbers:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* Nessun post */
.pdo-no-posts {
    text-align: center;
    color: #888;
    padding: 48px 0;
    font-size: 1rem;
}

/* ==========================================================
   PDO Single Post — Hero + corpo full width
   Da aggiungere in fondo a: child-theme/style.css
   ========================================================== */

/* ── HERO ── */
.pdo-single-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1a1a; /* fallback senza immagine */
}

/* Immagine */
.pdo-single-hero__img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pdo-single-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay scuro graduato dal basso */
.pdo-single-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

/* Fallback senza immagine */
.pdo-single-hero__no-img {
    position: absolute;
    inset: 0;
    background: #2c2c2c;
}

/* Contenuto testo sull'overlay */
.pdo-single-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 52px;
    color: #fff;
}

/* Breadcrumb chiaro */
.pdo-breadcrumb--light {
    color: rgba(255,255,255,.75);
    margin-bottom: 18px;
}

.pdo-breadcrumb--light a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}

.pdo-breadcrumb--light a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Badge categoria */
.pdo-single-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pdo-badge--cat {
    display: inline-block;
    background: #c8a000 !important;
    color: #fff !important;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    transition: background .2s;
}

.pdo-badge--cat:hover {
    background: #a88600 !important;
    color: #fff !important;
}

/* Titolo hero */
.pdo-single-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Meta: data + tag */
.pdo-single-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}

.pdo-single-hero__meta .pdo-meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdo-single-hero__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pdo-badge--tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.4);
    transition: background .2s;
}

.pdo-badge--tag:hover {
    background: rgba(255,255,255,.35);
    color: #fff;
}

/* ── CORPO ARTICOLO ── */
.pdo-single-body {
    background: #fff;
    padding: 56px 24px 72px;
}

.pdo-single-body__inner {
    max-width: 860px;
    margin: 0 auto;
}

/* Contenuto WordPress */
.pdo-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.pdo-single-content p {
    margin-bottom: 1.4em;
}

.pdo-single-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2em 0 .6em;
    color: #1a1a1a;
}

.pdo-single-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.6em 0 .5em;
    color: #1a1a1a;
}

.pdo-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5em 0;
}

.pdo-single-content ul,
.pdo-single-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.pdo-single-content li {
    margin-bottom: .4em;
}

.pdo-single-content a {
    color: #c8a000;
    text-decoration: underline;
}

.pdo-single-content blockquote {
    border-left: 4px solid #c8a000;
    margin: 1.5em 0;
    padding: 12px 24px;
    background: #faf8f0;
    font-style: italic;
    color: #555;
}

/* ── Footer tag ── */
.pdo-single-footer-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: .875rem;
}

.pdo-single-footer-tags__label {
    color: #888;
    font-weight: 600;
    margin-right: 4px;
}

.pdo-badge--tag-outline {
    display: inline-block;
    background: transparent;
    color: #555;
    font-size: .78rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    text-decoration: none;
    transition: all .2s;
}

.pdo-badge--tag-outline:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ── Navigazione prev/next ── */
.pdo-single-nav {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .pdo-single-nav {
        flex-direction: column;
    }
}

.pdo-single-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.pdo-single-nav__item:hover {
    border-color: #c8a000;
    box-shadow: 0 2px 12px rgba(200,160,0,.12);
}

.pdo-single-nav__item--next {
    text-align: right;
}

.pdo-single-nav__label {
    font-size: .75rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pdo-single-nav__title {
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ── Responsive hero ── */
@media (max-width: 600px) {
    .pdo-single-hero {
        min-height: 360px;
    }

    .pdo-single-hero__title {
        font-size: 1.6rem;
    }
}