* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: white;
    line-height: 1.5;
}

h2 {
    line-height: 1.2;
}


.guide-article, .blog-list-wrapper {
    max-width: min(1280px, 100vw);
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .guide-article, .blog-list-wrapper {
        padding: 2rem;
    }
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .article-header h1 {
        font-size: 3rem;
    }
}

.tldr-box {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    font-size: 1rem;
}

.tldr-box strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.tldr-box p {
    margin-top: 0.25rem;
    color: var(--gray-700);
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4d5159;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    width: fit-content;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-figure {
    flex: 1 1 280px;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: rgba(0, 0, 0, 0.02) 0px 0px 0px 10px, rgba(0, 0, 0, 0.16) 0px 2px 6px 0px;
}

.gallery-figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    transition: transform 0.2s;
}

.gallery-figure img:hover {
    transform: scale(1.02);
}

.gallery-figure figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: white;
}

.article-body {
    line-height: 1.75;
    color: var(--gray-800);
    margin: 2rem 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1rem;
    scroll-margin-top: 2rem;
}

.article-body h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

blog-list-wrapper h2

.article-body h3 {
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-dark);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--gray-300);
    padding-left: 1rem;
    font-style: italic;
    color: var(--gray-600);
    margin: 1.5rem 0;
}

.article-body code {
    background: var(--gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-md);
    font-size: 0.875em;
}

.article-body pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.market-data-box {
    background: linear-gradient(135deg, var(--gray-50), white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.market-data-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-data-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.market-data-box li {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.data-source {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: right;
    margin-top: 1rem;
    border-top: 1px dashed var(--gray-200);
    padding-top: 0.75rem;
}



/* FAQ */

.faq-section {
    margin: 2.5rem 0;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
}

.faq-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Rimuove il marker nativo di Safari/Chrome */
.faq-question::-webkit-details-marker {
    display: none;
}

/* Icona "+" che diventa "−" quando aperto */
.faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Linea orizzontale */
.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* Linea verticale (visibile solo quando chiuso) */
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* Quando aperto: ruota l'icona e nasconde la linea verticale */
.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-item[open] .faq-icon::after {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
}

/* Risposta */
.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--gray-700);
    line-height: 1.6;
    animation: faqFadeIn 0.25s ease;
}

.faq-answer div[itemprop="text"] p {
    margin-bottom: 0.75rem;
}

.faq-answer div[itemprop="text"] p:last-child {
    margin-bottom: 0;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}


/* Lead form */

.lead-form-container {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 1.5rem auto;
}

.lead-form-content {
    width: 90%;
    padding: 20px;
    line-height: 2;
    margin: 1.5rem auto;
}

.lead-form-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--gray-900);
}

.lead-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.table-of-contents {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.table-of-contents ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.table-of-contents li a {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

.table-of-contents li a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary-dark);
}

@media (max-width: 640px) {
    .guide-article, .blog-list-wrapper {
        padding: 1rem;
    }

    .article-header h1 {
        font-size: 1.875rem;
    }

    .lead-form-container {
        padding: 1.25rem;
    }

    .market-data-box ul {
        grid-template-columns: 1fr;
    }
}



/* CSS DEL FORM CONTACT */

.lead-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lead-form-container {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lead-form-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 30px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #d51410;
    display: inline-block;
}

.lead-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    width: 100%;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    background-color: #f0f0f0;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    transition: background-color 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background-color: #e8e8e8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background-color: #d51410;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #bf100d;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .lead-form-container {
        padding: 30px 20px;
    }

    .lead-form-title {
        font-size: 24px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px;
    }
    .lead-form-wrapper{
        flex-direction: column;
    }
}



/* Tabella mercato */

/* TABELLA STILE PER DATI DI MERCATO */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* INTESTAZIONE TABELLA */
.article-body thead {
    background: #0a2a44;
    color: #ffffff;
}

.article-body thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0a2a44;
}

/* RIGHE TABELLA */
.article-body tbody tr {
    border-bottom: 1px solid #e8edf2;
    transition: background-color 0.15s ease;
}

.article-body tbody tr:last-child {
    border-bottom: none;
}

.article-body tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.article-body tbody tr:hover {
    background-color: #edf3f8;
}

/* CELLE TABELLA */
.article-body tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* TESTO IN GRASSETTO NELLE CELLE (es. nome località) */
.article-body tbody td strong {
    color: #0a2a44;
    font-weight: 600;
}

/* PRIMA COLONNA (Location) - EVIDENZIATA */
.article-body tbody td:first-child {
    font-weight: 600;
    color: #0a2a44;
}

/* SECONDA COLONNA (Strategy) - BADGE STYLE */
.article-body tbody td:nth-child(2) {
    font-weight: 500;
}

.article-body tbody td:nth-child(2):contains("Short-Term") {
    color: #0066b3;
}

.article-body tbody td:nth-child(2):contains("Long-Term") {
    color: #2d7d46;
}

/* VALORI PERCENTUALI - EVIDENZIATI */
.article-body tbody td:nth-child(3),
.article-body tbody td:nth-child(5) {
    font-weight: 600;
    color: #0a2a44;
}

/* RESPONSIVE: SCROLL ORIZZONTALE SU MOBILE */
@media (max-width: 768px) {
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    .article-body thead th,
    .article-body tbody td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

/* STILE PER I BLOCKQUOTE CHE SEGUONO LA TABELLA */
.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f0f7ff;
    border-left: 4px solid #0a2a44;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1a2a3a;
}

.article-body blockquote strong {
    color: #0a2a44;
}

/* Fine tabella mercato*/


.article-cta__content{
    display: flex;
    flex-direction: column;
}

.disc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #ecfdf5;
    border-left: 5px solid #059669;
    padding: 18px 22px;
    margin: 40px 0 0 0;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* disclaimer */
.disc-icon {
    font-size: 1.2rem;
    line-height: 1.6;
    flex-shrink: 0;
    margin-top: 2px;
}

.disc-body {
    flex: 1;
}

.disc-title {
    font-weight: 700;
    color: #065f46;
    margin-right: 4px;
}

.disc-text {
    font-size: 0.95rem;
    color: #334155;
}

@media (max-width: 600px) {
    .disc {
        padding: 14px 16px;
        gap: 10px;
    }

    .disc-text {
        font-size: 0.9rem;
    }
}
/* fine disclaimer */


.blog-list-wrapper h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;

    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
    scroll-margin-top: 2rem;
}


.related-landings {
    margin: 3rem 0 2rem;
    padding: 2rem 1.5rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color, #2a7a62);
}

.related-landings-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-landings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9edf2;
    text-decoration: none;
    color: var(--text-dark, #1e293b);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.landing-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.landing-label {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-arrow {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.crosslink-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.crosslink-title {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
    scroll-margin-top: 2rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid lightgray;
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.landing-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.landing-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    word-break: break-word;
}

.landing-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #000;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.landing-card:hover .landing-arrow {
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .crosslink-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .landing-card {
        padding: 1.25rem;
    }
}