/*
Theme Name: TicketPrivateJet Child/Custom
Theme URI: https://www.ticketprivatejet.com/
Description: Tema Custom sviluppato su misura per TicketPrivateJet
Version: 1.0.0
Author: Taoticket Group
Text Domain: ticketprivatejet
*/

/* Menu a tendina WP (Non critico per la prima vista mobile/hero) */
.desktop-nav ul li { position: relative; }
.desktop-nav ul li.menu-item-has-children > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.7; }
.desktop-nav ul .sub-menu {
    position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 12px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s var(--ease-expo);
    display: block; border: 1px solid var(--gray-100);
}
.desktop-nav ul li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.desktop-nav ul .sub-menu li a { padding: 10px 20px; color: var(--gray-600); display: block; }
.desktop-nav ul .sub-menu li a:hover { background: var(--white-off); color: var(--primary); }

/* Footer */
.site-footer { background: var(--gray-900); color: white; padding: 4rem 0 2rem; border-top: 5px solid var(--primary); margin-top: auto; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem; margin-bottom: 2rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1.5rem; }
.footer-desc { color: var(--gray-400); font-size: 0.95rem; line-height: 1.6; }
.footer-title { margin-bottom: 1.5rem; font-weight: 800; font-size: 1.1rem; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--gray-300); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.payment-icon { background: white; border-radius: 6px; padding: 4px 8px; display: flex; align-items: center; justify-content: center; height: 36px; }
.payment-icon img { height: 20px; width: auto; object-fit: contain; }
.footer-bottom { text-align: center; color: var(--gray-500); font-size: 0.85rem; line-height: 1.8; }
.footer-credits a { color: var(--secondary); font-weight: bold; text-decoration: none; }

/* SEZIONE ULTIME NOTIZIE */
.news-section { padding: 4rem 0; background-color: var(--white-off); }
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: stretch; }

/* MAIN NEWS CARD */
.main-news-card { background: var(--white); border-radius: 24px; padding: 1.25rem; border: 1px solid var(--gray-200); box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; flex-direction: column; height: 100%; transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo); }
.main-news-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(24, 186, 173, 0.15); border-color: rgba(24, 186, 173, 0.3); }
.main-news-card .news-img-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: block; flex-shrink: 0; }
.main-news-card .news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.main-news-card:hover .news-img-wrapper img { transform: scale(1.04); }
.main-news-card .news-content { padding: 1.25rem 0.5rem 0.25rem; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.main-news-card .news-title { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.6rem; }
.main-news-card .news-title a { color: var(--gray-900); text-decoration: none; transition: color 0.2s; }
.main-news-card .news-title a:hover { color: var(--primary); }
.main-news-card .news-excerpt { color: var(--gray-600); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.25rem; }

.news-footer-wrapper { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.news-btn { align-self: flex-start; padding: 0.75rem 1.8rem; font-size: 0.95rem; border-radius: 50px; background: var(--gradient-main); color: var(--white); text-decoration: none; font-weight: 700; transition: all 0.3s var(--ease-expo); box-shadow: 0 8px 20px rgba(24, 186, 173, 0.25); white-space: nowrap; }
.news-btn-sm { padding: 0.45rem 1.1rem; font-size: 0.82rem; }
.news-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 186, 173, 0.35); color: var(--white); }
.btn-dark { background: var(--gray-900); color: var(--white); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }
.btn-dark:hover { background: #000000; color: var(--white); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); transform: translateY(-2px); }
.news-meta { font-size: 0.82rem; color: var(--gray-400); display: flex; gap: 0.5rem; font-weight: 500; }

/* SIDEBAR NEWS CARDS */
.news-sidebar-grid { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; }
.secondary-news-card { background: var(--white); border-radius: 20px; padding: 1rem; border: 1px solid var(--gray-200); box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; flex-direction: column; flex: 1; justify-content: space-between; transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo); }
.secondary-news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(24, 186, 173, 0.15); border-color: rgba(24, 186, 173, 0.3); }
.secondary-img-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: block; flex-shrink: 0; }
.secondary-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.secondary-news-card:hover .secondary-img-wrapper img { transform: scale(1.04); }
.secondary-news-content { padding: 0.75rem 0.25rem 0.25rem; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.secondary-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.secondary-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin-bottom: 0; flex: 1; }
.secondary-title a { color: var(--gray-900); text-decoration: none; transition: color 0.2s; }
.secondary-title a:hover { color: var(--primary); }
.secondary-title-row .news-btn-sm { flex-shrink: 0; align-self: center; }

/* ALTRE NOTIZIE */
.more-news-section { padding: 5rem 0; background-color: var(--white); border-top: 1px solid var(--gray-200); }
.more-news-wrapper { max-width: 950px; margin: 0 auto; }
.more-news-header { text-align: center; margin-bottom: 3.5rem; }
.more-news-header .section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--gray-900); margin-bottom: 0.75rem; text-align: center; }
.more-news-header .section-title span { color: var(--primary); }
.more-news-header .page-subtitle { font-size: 1.1rem; color: var(--gray-500); max-width: 700px; margin: 0 auto; line-height: 1.6; text-align: center; }
.news-horizontal-list { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3.5rem; }
.news-horizontal-item { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; background: var(--white); border-radius: 20px; padding: 1.25rem; border: 1px solid var(--gray-200); box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo); align-items: center; }
.news-horizontal-item:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(24, 186, 173, 0.15); border-color: rgba(24, 186, 173, 0.3); }
.news-horizontal-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; display: block; }
.news-horizontal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-horizontal-item:hover .news-horizontal-img img { transform: scale(1.05); }
.news-horizontal-content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 0.25rem 0; }
.news-horizontal-title { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.6rem; }
.news-horizontal-title a { color: var(--gray-900); text-decoration: none; transition: color 0.2s; }
.news-horizontal-title a:hover { color: var(--primary); }
.news-horizontal-excerpt { color: var(--gray-600); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.news-horizontal-footer { display: flex; flex-direction: column; gap: 0.8rem; margin-top: auto; }
.more-news-btn-wrapper { text-align: center; width: 100%; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .main-news-card, .news-sidebar-grid { height: auto; }
    .secondary-title-row { flex-direction: column; align-items: flex-start; }
    .news-horizontal-item { grid-template-columns: 1fr; gap: 1.25rem; }
    .news-horizontal-img { aspect-ratio: 16 / 9; }
}

/* SINGOLO ARTICOLO */
.single-article-section { padding: 160px 0 6rem; background-color: var(--white); }
.single-article-container { max-width: 800px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 2.5rem; }
.article-title { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; color: var(--gray-900); line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -0.02em; }
.article-meta { font-size: 0.95rem; color: var(--gray-500); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.6rem; font-weight: 500; }
.article-meta a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
.article-meta a:hover { color: var(--primary-dark); }
.article-featured-image { width: 100%; border-radius: 20px; overflow: hidden; margin-bottom: 3rem; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.article-featured-image img { width: 100%; height: auto; display: block; }
.article-content { font-size: 1.15rem; color: var(--gray-700); line-height: 1.8; }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--gray-900); margin: 2.5rem 0 1rem; font-weight: 800; line-height: 1.3; }
.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.6rem; }
.article-content a { color: var(--primary); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.3s ease; }
.article-content a:hover { border-bottom-color: var(--primary); }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { border-left: 5px solid var(--primary); padding: 1.5rem; margin: 2rem 0; background: var(--white-off); border-radius: 0 12px 12px 0; font-style: italic; color: var(--gray-800); }

/* Footer dell'articolo (Tag e Navigazione) */
.article-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.article-tags { margin-bottom: 2rem; font-size: 0.95rem; }
.article-tags a { display: inline-block; background: var(--gray-100); color: var(--gray-600); padding: 0.3rem 0.8rem; border-radius: 50px; text-decoration: none; margin-left: 0.5rem; font-weight: 500; transition: all 0.3s ease; }
.article-tags a:hover { background: var(--primary); color: var(--white); }
.article-navigation { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.article-navigation a { display: inline-flex; align-items: center; color: var(--gray-800); font-weight: 700; text-decoration: none; transition: color 0.3s ease; }
.article-navigation a:hover { color: var(--primary); }

/* PAGINAZIONE */
.pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 4rem; flex-wrap: wrap; }
.pagination-wrapper .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 1rem; background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; }
.pagination-wrapper .page-numbers:hover { background: var(--gray-100); color: var(--primary); border-color: var(--gray-300); }
.pagination-wrapper .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); pointer-events: none; }
.pagination-wrapper .next, .pagination-wrapper .prev { padding: 0 1.2rem; border-radius: 50px; }

/* ================= BADGE IA (Conformità AI Act) ================= */
.ai-badge { 
    position: absolute; 
    bottom: 12px; 
    right: 12px; 
    background-color: rgba(0, 0, 0, 0.4); 
    color: rgba(255, 255, 255, 0.75); 
    font-family: var(--font-main); /* Usa il font Outfit nativo del tema */
    font-size: 11px; 
    padding: 4px 8px; 
    border-radius: 6px; 
    z-index: 10; 
    pointer-events: none; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    backdrop-filter: blur(2px);
}