/**
 * Components CSS - Bottoni, Cards, Hero e altri componenti
 */

/* Accessibilità - nasconde visivamente ma mantiene per screen reader e SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section - Con immagine di sfondo espansa */
.hero {
    background: url('../images/hero-bg.png') center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 10;
    min-height: 450px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Search - Barra molto lunga */
.hero-search {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    position: relative; /* necessario per il dropdown autocomplete */
}

.hero-search-form {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-search-input {
    flex: 1;
    padding: 0.4rem 1.25rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-color);
}

.hero-search-input::placeholder {
    color: var(--text-light);
}

.hero-search-btn {
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.hero-search-btn:hover {
    background: #d97706;
}

.hero-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Autocomplete dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 340px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
    gap: 1rem;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
    background: var(--background-color);
}

.search-result-name {
    font-size: 0.9rem;
    color: var(--text-color);
    flex: 1;
}

.search-result-name strong {
    color: var(--accent-color);
    font-weight: 700;
}

.search-result-category {
    font-size: 0.72rem;
    color: var(--text-light);
    background: var(--background-color);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Service Cards */
.service-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.service-card p {
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* I Più Richiesti - Grid ridotta e centrata */
.popular-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 260px));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
}

.service-card.popular {
    max-width: 260px;
    background: #395a7d;
    border-left: 4px solid #f59e0b;
    transition: var(--transition);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.service-card.popular .service-item-link {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: var(--spacing-md);
    transition: var(--transition);
}

.service-card.popular:hover .service-item-link {
    color: var(--accent-color);
}

.service-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f59e0b;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
}

.service-vat {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: var(--spacing-xs);
    font-style: italic;
    font-weight: 700;
}

/* I Nostri Servizi - Stile alternativo */
.all-services {
    background: var(--bg-gray);
    padding: var(--spacing-xl) 0;
}

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-item {
    background: #395a7d;
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.service-item h3 {
    font-size: 1.25rem;
    color: white;
    margin: 0;
}

.service-item p {
    color: white;
    font-size: 0.95rem;
    margin: 0;
}

.service-item-link {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: var(--transition);
}

.service-item-link:hover {
    color: var(--accent-color);
}

/* Blog Section */
.blog-section {
    padding: var(--spacing-xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.blog-card {
    background: #395a7d;
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #2d4a65;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.blog-date {
    color: rgba(255, 255, 255, 0.6);
}

.blog-category {
    color: #f59e0b;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: white;
    line-height: 1.4;
    flex: 1;
}

.blog-content p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.blog-link {
    color: #f59e0b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.blog-link:hover {
    color: #fbbf24;
    gap: 0.75rem;
}

.blog-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.blog-cta .btn {
    background: #395a7d;
    color: #f59e0b;
    border: none;
}

.blog-cta .btn:hover {
    background: #2d4a65;
    color: #f59e0b;
    transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-section {
    padding: var(--spacing-xl) 0;
}

.faq-section .section-title {
    font-size: 2rem;
}

.faq-section .section-subtitle {
    font-size: 1rem;
}

.faq-category {
    background: white;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-category-header {
    background: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-category-header:hover {
    background: #2d4a65;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-category-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-category-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.faq-category-title h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
    transition: var(--transition);
}

.faq-category-header.active .faq-toggle-icon svg {
    transform: rotate(180deg);
}

.faq-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-category-content.active {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

/* FAQ Sotto-categorie */
.faq-subcategory {
    border-radius: 6px;
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
}

.faq-subcategory-header {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(57, 90, 125, 0.1);
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.faq-subcategory-header:hover {
    background: rgba(57, 90, 125, 0.18);
}

.faq-subcategory-header h3 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.faq-subcategory-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-subcategory-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.faq-subcategory-header.active .faq-subcategory-toggle svg {
    transform: rotate(180deg);
}

.faq-subcategory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    padding-left: var(--spacing-sm);
}

.faq-subcategory-content.active {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
}

.faq-category-inner {
    padding: var(--spacing-sm);
    background: var(--bg-gray);
}

.faq-item {
    background: white;
    border-radius: 6px;
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    border-left: 3px solid var(--accent-color);
}

.faq-question {
    padding: var(--spacing-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-question h3 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active .faq-question-icon svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
}

.faq-answer-inner {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.faq-empty-state {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.faq-cta {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.faq-cta h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.faq-cta p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.faq-cta .btn-accent {
    background: var(--primary-color);
    color: var(--accent-color);
}

.faq-cta .btn-accent:hover {
    background: #2d4a65;
    color: var(--accent-color);
}

/* Services FAQ CTA - Sezione nelle pagine servizio */
.services-faq-cta {
    background: var(--bg-gray);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
}

.services-faq-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

.services-faq-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-faq-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.services-faq-text {
    flex: 1;
}

.services-faq-text h3 {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.services-faq-text p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.services-faq-content .btn {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Services Procedures Accordion - Sezione nelle pagine servizio */
.services-procedures {
    background: var(--bg-gray);
    padding: var(--spacing-md) 0;
    margin-top: 0;
}

.services-procedures-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

.services-procedures-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services-procedures-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-procedures-icon svg {
    width: 26px;
    height: 26px;
}

.services-procedures-text {
    flex: 1;
}

.services-procedures-text h3 {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.services-procedures-text p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.services-procedures-toggle {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.services-procedures-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-color);
    transition: var(--transition);
}

.services-procedures-header.active .services-procedures-toggle {
    background: var(--accent-color);
}

.services-procedures-header.active .services-procedures-toggle svg {
    stroke: white;
    transform: rotate(180deg);
}

.services-procedures-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.services-procedures-content.active {
    max-height: 6000px;
    transition: max-height 0.8s ease-in;
}

.services-procedures-inner {
    background: white;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xs);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

.services-procedures-inner p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.services-procedures-inner p:last-child {
    margin-bottom: 0;
}

/* Aree tematiche dentro l'accordion procedure */
.procedures-area {
    margin-bottom: var(--spacing-md);
}

.procedures-area:last-child {
    margin-bottom: 0;
}

.procedures-area-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white;
    background: var(--primary-color);
    padding: 0.5rem 0.875rem;
    border-radius: 5px;
    margin-bottom: var(--spacing-sm);
}

.procedures-area-title svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Singola procedura dentro un'area */
.procedure-item {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.procedure-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.procedure-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.procedure-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.procedure-item p:last-child {
    margin-bottom: 0;
}

.procedure-item ul {
    margin: 0.4rem 0 0.5rem 1.2rem;
    padding: 0;
}

.procedure-item ul li {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Box NB / note importanti */
.procedure-note {
    display: flex;
    gap: 0.5rem;
    background: #fffbeb;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 5px 5px 0;
    padding: 0.625rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.55;
}

.procedure-note strong {
    color: #b45309;
    flex-shrink: 0;
}

/* Box condizioni generali */
.procedures-conditions {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.65;
}

.procedures-conditions p {
    margin-bottom: 0.5rem;
}

.procedures-conditions p:last-child {
    margin-bottom: 0;
}

/* ─── Contenuto articolo blog ─────────────────────────────────────────── */
.blog-post-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.blog-post-content a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

/* ─── CKEditor 5 – stili immagini nel contenuto del blog ──────────────── */

/* Immagine block (default) */
.blog-post-content figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto;
    min-width: 50px;
}

.blog-post-content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Immagine affiancata al testo a destra (image-style-side) */
.blog-post-content figure.image.image-style-side {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 0.5em;
    max-width: 50%;
}

/* Immagine allineata a sinistra con testo che scorre a destra */
.blog-post-content figure.image.image-style-align-left {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 0.5em;
}

/* Immagine allineata a destra con testo che scorre a sinistra */
.blog-post-content figure.image.image-style-align-right {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 0.5em;
}

/* Immagine centrata */
.blog-post-content figure.image.image-style-align-center,
.blog-post-content figure.image.image-style-block {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* Immagine ridimensionata manualmente in CKEditor */
.blog-post-content figure.image.image_resized {
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.blog-post-content figure.image.image_resized img {
    width: 100%;
}

/* Immagine inline (inserita nel mezzo di un paragrafo) */
.blog-post-content .image-inline {
    display: inline-block;
    max-width: 100%;
}

.blog-post-content .image-inline img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Didascalia sotto l'immagine */
.blog-post-content figure.image > figcaption {
    display: table-caption;
    caption-side: bottom;
    word-break: break-word;
    color: #64748b;
    background-color: #f8fafc;
    padding: 0.5em 0.6em;
    font-size: 0.8em;
    border-top: 1px solid #e2e8f0;
}

/* Clearfix: evita che le immagini float "escano" dal contenitore */
.blog-post-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================
   SOCIAL SHARE BUTTONS - Blog Post
   ========================================== */

.social-share {
    margin-top: 80px;
    padding-top: 36px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.social-share__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 20px 0;
}

.social-share__buttons {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.social-share__btn:hover {
    transform: translateY(-5px) scale(1.12);
    color: #fff;
}

.social-share__btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
}

.social-share__btn--facebook { background: #1877f2; }
.social-share__btn--facebook:hover  { box-shadow: 0 10px 24px rgba(24, 119, 242, 0.55); }

.social-share__btn--x { background: #111; }
.social-share__btn--x:hover         { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }

.social-share__btn--whatsapp { background: #25d366; }
.social-share__btn--whatsapp:hover  { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55); }

.social-share__btn--linkedin { background: #0a66c2; }
.social-share__btn--linkedin:hover  { box-shadow: 0 10px 24px rgba(10, 102, 194, 0.55); }

.social-share__btn--telegram { background: #229ed9; }
.social-share__btn--telegram:hover  { box-shadow: 0 10px 24px rgba(34, 158, 217, 0.55); }

.social-share__btn--email { background: #64748b; }
.social-share__btn--email:hover     { box-shadow: 0 10px 24px rgba(100, 116, 139, 0.5); }

/* ==========================================
   TERMINI E CONDIZIONI - Pagina PDF viewer
   ========================================== */

.tc-section {
    padding: 48px 0 80px;
}

.tc-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-breadcrumb a {
    color: #395a7d;
    text-decoration: none;
}

.tc-breadcrumb a:hover {
    text-decoration: underline;
}

.tc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.tc-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 28px;
}

.tc-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-btn--download {
    background: #395a7d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(57, 90, 125, 0.3);
}

.tc-btn--download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(57, 90, 125, 0.45);
    color: #fff;
}

.tc-btn--open {
    background: #f1f5f9;
    color: #395a7d;
    border: 1px solid #cbd5e1;
}

.tc-btn--open:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    color: #395a7d;
}

.tc-viewer {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tc-iframe {
    display: block;
    width: 100%;
    height: 850px;
    border: none;
}

.tc-fallback {
    padding: 48px;
    text-align: center;
    color: #64748b;
}

/* ── VALUE STRIP ─────────────────────────────────────────────────────────── */
/* Specificità section.value-strip (0-1-1) batte section:nth-child(even) (0-1-1) perché viene dopo */
section.value-strip {
    background: linear-gradient(160deg, #eef4fa 0%, #f8fafc 55%, #ffffff 100%) !important;
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Linea accent in cima */
section.value-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 0 0 8px 8px;
}

/* Cerchio decorativo sfumato in basso a destra */
section.value-strip::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.value-strip-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Titolo H1 principale ── */
section.value-strip .value-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

/* Parola in evidenza con il colore accent del sito */
section.value-strip .value-title-accent {
    color: #f59e0b;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

/* Sottolineatura decorativa sotto la parola accent */
section.value-strip .value-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
    opacity: 0.45;
}

section.value-strip .value-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.value-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.value-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: #395a7d;
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.value-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
}

.value-badge svg {
    color: #f59e0b;
    flex-shrink: 0;
}
