/* ==========================================================================
   05 - ELEMENTI TOUR E COMPONENTI CUSTOM
   ========================================================================== */

/* --- Riga Hotel --- */
.tf-hotel-row { display: flex; align-items: center; gap: 15px; padding: 10px 0; border-bottom: 1px solid #eee; }
.tf-hotel-row:last-child { border-bottom: none; }
.tf-hotel-info { font-size: 16px; margin: 0; color: var(--tf-text); }
.tf-hotel-link-small { background-color: var(--tf-green); color: #ffffff !important; padding: 6px 14px; border-radius: 6px; text-decoration: none !important; font-weight: 600; font-size: 13px; transition: var(--tf-transition); white-space: nowrap; }
.tf-hotel-link-small:hover { background-color: var(--tf-green-dark); color: #ffffff !important; }

/* --- Tabella Personalizzata Generica --- */
.tf-custom-table-wrapper { overflow-x: auto; margin: 20px 0; }
.tf-custom-table { width: 100%; border-collapse: collapse; border: 1px solid var(--tf-green-border); }
.tf-custom-table th { border-bottom: 3px solid var(--tf-green); padding: 12px; text-align: left; font-weight: 700; }
.tf-custom-table td { padding: 12px; border: 1px solid var(--tf-green-border); vertical-align: top; line-height: 1.5; }
.tf-custom-table tr:nth-child(even) { background-color: rgba(46, 139, 87, 0.05); }

/* --- Tabella Prezzi Tour --- */
.tf-price-table-container { margin: 20px 0; overflow-x: auto; font-family: inherit; -webkit-overflow-scrolling: touch; border: 1px solid var(--tf-green-border); border-radius: var(--tf-radius); }
.tf-price-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }
.tf-price-table th, .tf-price-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--tf-green-border); font-size: 14px; white-space: nowrap; }
.tf-price-table th { background-color: var(--tf-green); color: #fff; font-weight: 700; }
.tf-price-table td:first-child, .tf-price-table th:first-child { position: -webkit-sticky; position: sticky; left: 0; background-color: #fff; z-index: 2; border-right: 2px solid var(--tf-green-border); font-weight: 700; min-width: 100px; white-space: normal; }
.tf-price-table th:first-child { background-color: var(--tf-green); color: #fff; border-right: 2px solid rgba(255, 255, 255, 0.3); }
.tf-price-table tr:nth-child(even) td { background-color: var(--tf-green-light); }
.tf-price-table tr:nth-child(even) td:first-child { background-color: #f0f7f3; }
.tf-price-table tr:last-child td { border-bottom: none; color: var(--tf-green); font-weight: bold; }
.tf-price-note { font-size: 12px; color: var(--tf-text-muted); margin-top: 10px; font-style: italic; line-height: 1.4; padding: 0 5px; }

/* --- Highlights --- */
.tf-highlights-container { background: var(--tf-green-light); padding: 25px; border-radius: var(--tf-radius); margin: 20px 0; border: 1px solid var(--tf-green-border); }
.tf-item { display: flex; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(46, 139, 87, 0.1); }
.tf-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.tf-map-style .tf-dot { background: var(--tf-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center; min-width: 18px; width: 18px; height: 18px; margin-top: 4px; margin-right: 15px; flex-shrink: 0; }
.tf-highlights-container:not(.tf-map-style) .tf-dot { display: none; }
.tf-text { line-height: 1.6; font-size: 1rem; color: var(--tf-text); }
.tf-text p { margin: 0 !important; }
.tf-text .tf-title { color: var(--tf-green); font-weight: 700; display: block; margin-bottom: 4px; font-size: 1.05rem; }
.tf-text .tf-label { font-weight: 700; color: var(--tf-text); display: inline; }

/* --- Link Correlati --- */
.tf-related-box { display: flex; align-items: center; gap: 16px; background-color: var(--tf-green-light); border: 1px solid var(--tf-green-border); border-left: 4px solid var(--tf-green); padding: 16px 20px; border-radius: var(--tf-radius-sm); margin: 24px 0; text-decoration: none; transition: var(--tf-transition); }
.tf-related-box:hover { background-color: var(--tf-green); transform: translateX(4px); border-color: var(--tf-green); }
.tf-related-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tf-text-muted); margin-bottom: 3px; transition: color 0.2s ease; }
.tf-related-title { font-size: 1.1rem; font-weight: 700; color: #2d3748; line-height: 1.3; transition: color 0.2s ease; }
.tf-related-box:hover .tf-related-label, .tf-related-box:hover .tf-related-title { color: #ffffff; }
.tf-related-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--tf-green); border-radius: 50%; color: #ffffff; transition: background-color 0.2s ease; }
.tf-related-box:hover .tf-related-icon { background-color: rgba(255, 255, 255, 0.2); }
.tf-related-icon svg { width: 20px; height: 20px; fill: currentColor; }
.tf-related-content { display: flex; flex-direction: column; }

/* --- Tabella Informativa --- */
.tf-info-table-container { margin: 20px 0; overflow-x: auto; border: 1px solid var(--tf-green-border); border-radius: var(--tf-radius); }
.tf-info-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }
.tf-info-table th { background-color: var(--tf-green); color: #fff; font-weight: 700; padding: 15px; text-align: left; }
.tf-info-table td { padding: 15px; border-bottom: 1px solid var(--tf-green-border); vertical-align: top; line-height: 1.5; }
.tf-info-table td:first-child { position: -webkit-sticky; position: sticky; left: 0; background-color: #fff; z-index: 2; border-right: 2px solid var(--tf-green-border); font-weight: 700; }
.tf-info-table tr:last-child td { border-bottom: none; }
.tf-highlight-row td { background-color: var(--tf-green) !important; font-weight: 600; color: #ffffff !important; font-style: italic; text-align: left !important; }
.tf-info-note { font-size: 0.9rem; color: var(--tf-text-muted); margin-top: 10px; font-style: italic; }

/* --- Lista Errori --- */
.tf-error-container { background: var(--tf-green-light); padding: 25px; border-radius: var(--tf-radius); margin: 20px 0; border: 1px solid var(--tf-green-border); }
.tf-error-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid rgba(229, 62, 62, 0.1); }
.tf-error-item:first-child { padding-top: 0; }
.tf-error-item:last-child  { padding-bottom: 0; border-bottom: none; }
.tf-error-item .tf-err-triangle { background: var(--tf-red); min-width: 26px; height: 26px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px; position: relative; }
.tf-error-item .tf-err-triangle::after { content: '!'; color: #ffff00; font-weight: 900; font-size: 12px; position: absolute; bottom: 1px; }
.tf-error-item h3, .tf-error-item h4 { display: block; font-family: inherit; color: var(--tf-red); font-size: 18px !important; margin: 0 0 5px 0 !important; font-weight: bold; line-height: 1.3 !important; text-transform: none; }
.tf-error-item span, .tf-error-item p { font-family: inherit; font-size: 1rem; color: #000000; line-height: 1.6; display: block; margin: 0 !important; }

* --- Fisarmonica (Itinerario e FAQ) --- */ in poi) con questa versione corretta e "pulita":

CSS
/* --- Fisarmonica (Itinerario e FAQ) --- */
.tf-accordion-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }

/* Stile per FAQ e Itinerario semplificati (quelli con il bordo sotto) */
details[name="tf-itinerary"], 
details[name="tf-faq"] { 
    border-bottom: 1px solid var(--tf-green); 
    padding: 10px 0 !important; /* Ridotto e forzato */
    margin: 0 !important; 
}

details[name="tf-itinerary"] summary, 
details[name="tf-faq"] summary { 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    padding: 5px 0 !important; /* Ridotto il padding interno del titolo */
    margin: 0 !important;
}

details[name="tf-itinerary"] summary h3, 
details[name="tf-faq"] summary h3 { 
    margin: 0 !important; 
    padding: 0 !important; 
    font-weight: bold; 
    font-size: inherit; 
    font-family: inherit; 
    color: inherit; 
    line-height: 1.2;
}

details[name="tf-itinerary"] summary::-webkit-details-marker, 
details[name="tf-faq"] summary::-webkit-details-marker { display: none; }

details[name="tf-itinerary"] summary::after, 
details[name="tf-faq"] summary::after { 
    content: '❯'; 
    color: var(--tf-green); 
    font-size: 16px; 
    transition: transform 0.3s ease; 
}

details[name="tf-itinerary"][open] summary::after, 
details[name="tf-faq"][open] summary::after { transform: rotate(-90deg); }

.tf-content { padding-top: 10px; }
.tf-content p { margin-bottom: 10px; font-size: inherit; font-family: inherit; color: inherit; }
.tf-content p:last-child { margin-bottom: 0; }

/* --- Scheda Quartiere --- */
.tf-scheda { background: var(--tf-green-light); border: 1px solid #d4e8dd; border-radius: var(--tf-radius); padding: 20px 24px; margin: 24px 0; }
.tf-scheda p { margin: 0 0 12px; }
.tf-scheda p:last-of-type { margin-bottom: 16px; }
.tf-scheda strong.tf-label { color: var(--tf-green); }
.tf-scheda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .tf-scheda-grid { grid-template-columns: 1fr; } }
.tf-pro, .tf-contro { background: #fff; border-radius: var(--tf-radius-sm); padding: 12px 14px; }
.tf-pro { border: 1px solid #c8e6c9; }
.tf-contro { border: 1px solid #ffccbc; }
.tf-pro strong { display: block; color: #2e7d32; margin-bottom: 4px; }
.tf-contro strong { display: block; color: #c62828; margin-bottom: 4px; }