/* ============================================================
   SPEDIZIONI — PHP nativo (no Elementor)
   Prefisso: tf-sp-*
   v4.0.0
   FIX: titolo banner spedizione gratuita SEMPRE bianco
   ============================================================ */

.tf-sp-page {
    --tf-sp-blue: #0077b6;
    --tf-sp-cyan: #00b4d8;
    --tf-sp-navy: #0c2d48;
    --tf-sp-heading: #0c4a73;
    --tf-sp-text: #2d3436;
    --tf-sp-text-soft: #5a6c72;
    --tf-sp-border: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    color: var(--tf-sp-text);
    line-height: 1.8;
}

.tf-sp-container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */
.tf-sp-hero {
    background: linear-gradient(135deg, #0c2d48 0%, #14456b 55%, #1a5a86 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.tf-sp-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}
.tf-sp-hero-sub { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin: 0; }

/* ---------- BREADCRUMB ---------- */
.tf-sp-breadcrumb-bar { background: #f5f7f9; border-bottom: 1px solid var(--tf-sp-border); padding: 16px 0; }
.tf-sp-breadcrumb { font-size: 14px; color: var(--tf-sp-text-soft); text-align: center; }
.tf-sp-breadcrumb a { color: var(--tf-sp-blue); text-decoration: none; }
.tf-sp-breadcrumb a:hover { text-decoration: underline; }
.tf-sp-breadcrumb span { margin: 0 7px; }

/* ---------- CONTENT ---------- */
.tf-sp-content { padding: 50px 20px 70px; }

/* ---------- BANNER SPEDIZIONE GRATUITA ---------- */
.tf-sp-free {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    border-radius: 12px;
    padding: 28px 35px;
    margin-bottom: 42px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.tf-sp-free-icon { font-size: 48px; line-height: 1; flex: 0 0 auto; }
.tf-sp-free-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;     /* FIX: era scuro/illeggibile in Elementor */
    margin: 0 0 6px;
}
.tf-sp-free-text p { color: rgba(255, 255, 255, 0.95); font-size: 15.5px; margin: 0; line-height: 1.5; }

/* ---------- 3 TARIFFE ---------- */
.tf-sp-tariffe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}
.tf-sp-tariffa {
    border-radius: 16px;
    padding: 38px 30px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tf-sp-tariffa:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.tf-sp-tariffa-standard { background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%); }
.tf-sp-tariffa-sicilia  { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); }
.tf-sp-tariffa-ritiro   { background: linear-gradient(135deg, #7c2d12 0%, #f59e0b 100%); }
.tf-sp-tariffa-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}
.tf-sp-tariffa-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tf-sp-tariffa-zone { font-size: 14.5px; opacity: 0.92; margin-bottom: 22px; }
.tf-sp-tariffa-price {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.tf-sp-tariffa-note { font-size: 13.5px; line-height: 1.6; opacity: 0.95; }

/* ---------- SEZIONI (card con bordo blu) ---------- */
.tf-sp-section {
    margin-bottom: 38px;
    padding: 30px 34px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--tf-sp-blue);
}
.tf-sp-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tf-sp-heading);
    margin: 0 0 18px;
}
.tf-sp-section-icon { font-size: 24px; line-height: 1; }

/* ---------- PROSE ---------- */
.tf-sp-prose { font-size: 15.5px; line-height: 1.75; color: var(--tf-sp-text); }
.tf-sp-prose p { margin: 0 0 14px; }
.tf-sp-prose p:last-child { margin-bottom: 0; }
.tf-sp-prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.tf-sp-prose ul li { position: relative; padding-left: 24px; margin-bottom: 10px; line-height: 1.6; }
.tf-sp-prose ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tf-sp-blue);
}
.tf-sp-prose strong { color: var(--tf-sp-navy); font-weight: 700; }

/* ---------- BOX INFO (azzurro) ---------- */
.tf-sp-info {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0 0;
}
.tf-sp-info p { margin: 0; font-size: 15px; line-height: 1.6; }
.tf-sp-info strong { color: var(--tf-sp-navy); }

/* ---------- BOX ALERT (giallo) ---------- */
.tf-sp-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.tf-sp-alert-icon { font-size: 22px; line-height: 1.2; flex: 0 0 auto; }
.tf-sp-alert p { margin: 0; font-size: 15px; line-height: 1.6; color: #6b5800; }
.tf-sp-alert strong { color: #5a4a00; }

/* ---------- CORRIERI ---------- */
.tf-sp-corrieri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 6px 0 18px;
}
.tf-sp-corriere {
    background: #fff;
    border: 1px solid var(--tf-sp-border);
    border-radius: 10px;
    padding: 22px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tf-sp-corriere:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.tf-sp-corriere-logo { font-size: 30px; margin-bottom: 10px; }
.tf-sp-corriere-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--tf-sp-heading);
}

/* ---------- FOOTER LINE ---------- */
.tf-sp-footer-line {
    text-align: center;
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--tf-sp-border);
}
.tf-sp-footer-line p { font-size: 13px; color: var(--tf-sp-text-soft); line-height: 1.7; margin: 0; }
.tf-sp-footer-line strong { color: var(--tf-sp-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .tf-sp-tariffe-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .tf-sp-corrieri-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tf-sp-hero { padding: 50px 0; }
    .tf-sp-hero-title { font-size: 36px; }
    .tf-sp-hero-sub { font-size: 16px; }
    .tf-sp-content { padding: 40px 20px 56px; }
    .tf-sp-section { padding: 24px 22px; }
    .tf-sp-section h2 { font-size: 21px; }
    .tf-sp-free { flex-direction: column; text-align: center; gap: 12px; padding: 24px; }
}

@media (max-width: 480px) {
    .tf-sp-container { padding: 0 16px; }
    .tf-sp-hero-title { font-size: 30px; }
    .tf-sp-free-text h3 { font-size: 20px; }
    .tf-sp-section h2 { font-size: 19px; }
}
