/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    color: #2b2c28;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: #65bec2; text-decoration: none; }
a:hover { color: #6799b2; }
img { max-width: 100%; }

/* Layout */
.inner-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 75px 20px;
}
.inner-wrap-compact {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
}
.flex-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }

/* ===== HEADER ===== */
.header-row-top {
    background-color: #002c3d;
    padding: 12px 0;
}
.header-row-top .header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.social-icons { display: flex; gap: 16px; }
.social-icons a { display: inline-flex; align-items: center; }
.social-icons a svg { width: 30px; height: 30px; fill: #f5f4f5; transition: fill 0.3s; }
.social-icons a:hover svg { fill: #9b5de5; }

.header-row-main {
    background-color: #002c3d;
    padding: 10px 0;
}
.header-row-main .header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img {
    border-radius: 100%;
    height: 100px;
    width: 100px;
    object-fit: cover;
}
.btn-newsletter {
    display: inline-block;
    background-color: #9b5de5;
    border: 1px solid #9b5de5;
    color: #f5f4f5;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-newsletter:hover {
    background-color: #8a4dd4;
    color: #f5f4f5;
}

/* ===== HEADER ACTIONS (search + newsletter btn) ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    overflow: hidden;
    transition: background 0.3s;
}
.header-search:focus-within {
    background: rgba(255,255,255,0.22);
}
.header-search input[type="search"] {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #f5f4f5;
    padding: 8px 12px;
    width: 140px;
    transition: width 0.3s;
}
.header-search input[type="search"]::placeholder {
    color: rgba(245,244,245,0.6);
}
.header-search input[type="search"]:focus {
    width: 200px;
}
.header-search button {
    background: none;
    border: none;
    color: #f5f4f5;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.header-search button:hover {
    color: #9b5de5;
}

/* ===== SEARCH PAGE ===== */
.search-page-form {
    display: flex;
    max-width: 600px;
    margin-bottom: 32px;
    gap: 0;
}
.search-page-form input[type="search"] {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #9b5de5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #fff;
    color: #002c3d;
}
.search-page-form input[type="search"]:focus {
    border-color: #8a4dd4;
}
.search-page-form button {
    font-family: 'Poppins', sans-serif;
    background-color: #9b5de5;
    border: 2px solid #9b5de5;
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.search-page-form button:hover {
    background-color: #8a4dd4;
    border-color: #8a4dd4;
}

/* ===== HERO ===== */
.hero-section {
    background-color: #ffffff;
}
.hero-section .inner-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}
.hero-columns {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-text {
    width: 100%;
    padding: 20px;
    text-align: center;
}
.hero-text h1 {
    color: #9b5de5;
    font-weight: 900;
    font-size: 90px;
    line-height: 1.1;
    margin-bottom: 16px;
    font-style: italic;
}
.hero-text .hero-desc {
    font-size: 20px;
    color: #002c3d;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-text .hero-desc b { font-weight: 500; }

/* ===== WEEK SELECTOR ===== */
.week-selector-section {
    background-color: #f5f4f5;
    border-bottom: 1px solid #e0e0e0;
}
.week-selector-section .inner-wrap-compact {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}
.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.week-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #9b5de5;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: background-color 0.3s;
    flex-shrink: 0;
}
.week-nav-arrow:hover { background-color: #8a4dd4; color: #fff; }
.week-nav-arrow.disabled {
    background-color: #ccc;
    pointer-events: none;
    cursor: default;
}
.week-nav-info {
    text-align: center;
}
.week-nav-info .week-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.week-nav-info .week-date {
    font-size: 26px;
    font-weight: 700;
    color: #002c3d;
    line-height: 1.2;
}
.week-dropdown {
    margin-top: 12px;
}
.week-dropdown select {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid #9b5de5;
    border-radius: 8px;
    background: #fff;
    color: #002c3d;
    cursor: pointer;
    outline: none;
}

/* ===== WEEK INTRO ===== */
.week-intro-section {
    background-color: #f5f4f5;
}
.week-intro-section .inner-wrap {
    padding-top: 40px;
    padding-bottom: 0;
}
.week-intro-box {
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f3f0fa 100%);
    border-radius: 20px;
    padding: 40px 48px;
    border-left: 4px solid #9b5de5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 30px;
}
.week-intro-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}
.week-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.week-intro-content {
    flex: 1;
    min-width: 0;
}
.week-intro-content .intro-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9b5de5;
    margin-bottom: 12px;
}
.week-intro-content p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #333;
}

/* ===== NEWS CARDS ===== */
.news-section {
    background-color: #f5f4f5;
}
.news-section .inner-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.2s;
}
.news-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.news-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #002c3d;
    line-height: 1.3;
    margin-bottom: 0;
    flex: 1;
}
.news-card h3 a {
    color: #002c3d;
    text-decoration: none;
}
.news-card h3 a:hover {
    color: #9b5de5;
}
.news-card-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #9b5de5;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.news-card .summary {
    font-size: 15px;
    color: #3b3c38;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 16px;
    flex-grow: 1;
}
.news-card .perche-conta {
    background-color: #f0e6ff;
    border-left: 4px solid #9b5de5;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}
.news-card .perche-conta-label {
    font-size: 12px;
    font-weight: 700;
    color: #9b5de5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.news-card .perche-conta p {
    font-size: 14px;
    color: #002c3d;
    line-height: 1.5;
    font-weight: 400;
}
.news-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.news-card .source {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}
.news-card .source a {
    color: #9b5de5;
    font-weight: 500;
}
.news-card .source a:hover {
    text-decoration: underline;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-block;
    background-color: #e8f4f5;
    color: #002c3d;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-decoration: none;
}
a.tag:hover {
    background-color: #9b5de5;
    color: #fff;
}

/* ===== NEWS SINGLE ===== */
.news-single-section {
    background-color: #f5f4f5;
}
.news-single-section .inner-wrap {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 60px;
}
.news-single-header {
    margin-bottom: 24px;
}
.news-single-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #002c3d;
    line-height: 1.3;
    margin-bottom: 12px;
}
.news-single-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.news-single-body {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.news-single-body .summary-text {
    font-size: 17px;
    line-height: 1.7;
    color: #3b3c38;
    margin-bottom: 24px;
}
.news-single-body .perche-conta {
    background-color: #f0e6ff;
    border-left: 4px solid #9b5de5;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
}
.news-single-body .perche-conta-label {
    font-size: 13px;
    font-weight: 700;
    color: #9b5de5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.news-single-body .perche-conta p {
    font-size: 15px;
    color: #002c3d;
    line-height: 1.6;
}
.news-single-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #9b5de5;
}
.back-link:hover { text-decoration: underline; }

/* ===== ARCHIVE ===== */
.archive-section {
    background-color: #f5f4f5;
}
.archive-section .inner-wrap {
    padding-top: 40px;
    padding-bottom: 60px;
}
.archive-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: #002c3d;
    margin-bottom: 32px;
    text-align: center;
}
.archive-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}
.archive-list li {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}
.archive-list li:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.archive-list a {
    font-size: 18px;
    font-weight: 600;
    color: #002c3d;
}
.archive-list a:hover { color: #9b5de5; }
.archive-list .news-count {
    font-size: 13px;
    color: #666;
    background: #e8f4f5;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===== TAG / SOURCE PAGE ===== */
.listing-section {
    background-color: #f5f4f5;
}
.listing-section .inner-wrap {
    padding-top: 40px;
    padding-bottom: 60px;
}
.listing-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #002c3d;
    margin-bottom: 8px;
}
.listing-section .listing-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

/* ===== TREND DELLA SETTIMANA ===== */
.trend-section {
    background-color: #f5f4f5;
}
.trend-section .inner-wrap {
    padding-top: 0;
    padding-bottom: 60px;
}
.trend-box {
    background: linear-gradient(135deg, #002c3d 0%, #004d6b 100%);
    border-radius: 20px;
    padding: 48px;
    color: #ffffff;
}
.trend-box .trend-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9b5de5;
    margin-bottom: 12px;
}
.trend-box h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}
.trend-box .trend-desc {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.9);
}
.trend-box .trend-outlook-label {
    font-size: 14px;
    font-weight: 700;
    color: #9b5de5;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.trend-box .trend-outlook {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

/* ===== DOMANDE SECTION ===== */
.domande-section {
    background-color: #002c3d;
}
.domande-section .inner-wrap {
    padding-top: 60px;
    padding-bottom: 60px;
}
.domande-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.domande-text {
    width: 50%;
    padding: 20px;
    color: #f5f4f5;
}
.domande-text h3 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.4;
    color: #f5f4f5;
    margin-bottom: 12px;
}
.domande-text h3 b i {
    font-weight: 700;
}
.domande-form {
    width: 50%;
    padding: 20px;
}
.domande-form-inner {
    background-color: #f5f4f5;
    border-radius: 20px;
    padding: 20px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background-color: #f5f4f5;
}
.newsletter-section .inner-wrap {
    padding-top: 2em;
    padding-bottom: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.newsletter-title {
    width: 45%;
    min-width: 280px;
}
.newsletter-title h3 {
    font-size: 50px;
    font-weight: 400;
    color: #002c3d;
    line-height: 1.2;
}
.newsletter-title h3 b { font-weight: 700; }
.newsletter-form-wrap {
    width: 45%;
    min-width: 280px;
    background-color: #002c3d;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12em;
    padding: 20px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}
.newsletter-form input[type="email"] {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    outline: none;
}
.newsletter-form button {
    font-family: 'Poppins', sans-serif;
    background-color: #9b5de5;
    border: none;
    color: #f5f4f5;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.newsletter-form button:hover { background-color: #002c3d; color: #ffffff; }
.newsletter-msg {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    width: 100%;
}
.newsletter-msg.success { color: #28a745; display: block; }
.newsletter-msg.error { color: #dc3545; display: block; }

/* ===== FOOTER ===== */
.footer-section {
    background-color: #002c3d;
    border-top: 1px solid #ededed;
    text-align: center;
    padding: 40px 20px 30px;
}
.footer-section .inner-wrap-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.footer-links a {
    font-size: 16px;
    color: #f5f4f5;
    font-weight: 700;
    transition: color 0.3s;
}
.footer-links a:hover { color: #9b5de5; }
.footer-partners {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 50%;
    max-width: 500px;
    margin: 16px auto;
}
.footer-partners a img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}
.footer-partners a img.logo-pa {
    max-height: 50px;
    max-width: 120px;
}
.footer-copyright {
    color: #f5f4f5;
    font-size: 16px;
    font-weight: 900;
    margin-top: 20px;
}
.footer-copyright:hover { color: #9b5de5; }
.footer-company {
    color: #f5f4f5;
    font-size: 13px;
    max-width: 360px;
    margin-bottom: 15px;
}

/* ===== NO DATA / 404 ===== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    font-size: 20px;
    color: #666;
}
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-size: 72px;
    font-weight: 900;
    color: #9b5de5;
    margin-bottom: 16px;
}
.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-text, .hero-image,
    .domande-text, .domande-form { width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .newsletter-title, .newsletter-form-wrap { width: 100%; }
    .newsletter-title h3 { font-size: 35px; text-align: center; }
    .newsletter-form-wrap { height: auto; }
    .footer-partners { width: 80%; }
}
@media (max-width: 767px) {
    .hero-text h1 { font-size: 56px; }
    .newsletter-title h3 { font-size: 35px; }
    .trend-box { padding: 32px; }
    .trend-box h2 { font-size: 26px; }
    .week-intro-box { padding: 28px 32px; gap: 20px; }
    .week-intro-image { width: 100px; height: 100px; }
    .domande-text h3 { font-size: 24px; }
    .header-search input[type="search"] { width: 100px; }
    .header-search input[type="search"]:focus { width: 140px; }
}
@media (max-width: 479px) {
    .hero-text h1 { font-size: 44px; }
    .logo-img { width: 90px; height: 90px; }
    .btn-newsletter { margin: 10px 0; padding: 5px 10px; font-size: 14px; }
    .header-row-main .header-container { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .header-actions { flex-wrap: wrap; justify-content: center; }
    .header-search input[type="search"] { width: 80px; font-size: 13px; }
    .header-search input[type="search"]:focus { width: 120px; }
    .week-nav-info .week-date { font-size: 20px; }
    .news-card { padding: 24px; }
    .news-card h3 { font-size: 18px; }
    .trend-box { padding: 24px; }
    .trend-box h2 { font-size: 22px; }
    .week-intro-box { padding: 24px; gap: 16px; }
    .week-intro-image { width: 80px; height: 80px; border-radius: 10px; }
    .newsletter-title h3 { font-size: 30px; }
    .footer-partners { width: 90%; }
}
