/* ===== NUTRIXIONE.IT — MODERN THEME ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4a7c59;
    --primary-light: #6b9f7a;
    --primary-dark: #35573f;
    --accent: #e8c468;
    --accent-soft: #fdf6e3;
    --bg: #f8f9f7;
    --surface: #ffffff;
    --text: #1a2e1a;
    --text-mid: #4a5e4a;
    --text-light: #7a8f7a;
    --border: #e2e8df;
    --success: #2d9f5a;
    --warning: #e0a030;
    --danger: #d14040;
    --info: #3a8fd4;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --font-h: 'Playfair Display', Georgia, serif;
    --font: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--primary); text-decoration: none; transition: all 0.25s var(--ease); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); color: var(--text); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* === NAVBAR === */
.navbar { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 0.6rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.navbar-brand i { color: var(--accent); }
.navbar-brand small { font-weight: 400; opacity: 0.5; font-size: 0.6em; }
.navbar-brand:hover { color: var(--primary); }
.navbar-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); padding: 0.5rem; }
.navbar-menu { display: flex; align-items: center; gap: 2rem; }
.navbar-menu a { color: var(--text-mid); font-weight: 500; font-size: 0.92rem; position: relative; }
.navbar-menu a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s var(--ease); border-radius: 1px; }
.navbar-menu a:hover::after, .navbar-menu a.active::after { width: 100%; }
.navbar-menu a:hover, .navbar-menu a.active { color: var(--primary); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.4rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 2px solid transparent; cursor: pointer; transition: all 0.3s var(--ease); text-decoration: none; font-family: var(--font); line-height: 1.4; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(74,124,89,0.3); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,124,89,0.35); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--accent); color: var(--text); border-color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* === CARDS === */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; border: 1px solid var(--border); transition: all 0.3s var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-flat:hover { box-shadow: none; }

/* === FORMS === */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.88rem; color: var(--text-mid); }
.form-group .hint { font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; font-style: italic; }
.form-control { width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; font-family: var(--font); transition: all 0.25s var(--ease); background: #fff; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,124,89,0.1); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.form-check input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--primary); width: 16px; height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* === ALERTS === */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.88rem; border: 1px solid; }
.alert-success { background: #ecfdf0; color: #166534; border-color: #bbf7d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* === BADGES === */
.badge { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-success { background: #ecfdf0; color: #166534; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-info { background: #eff6ff; color: #1e40af; }
.badge-primary { background: rgba(74,124,89,0.1); color: var(--primary-dark); }

/* === TABLES === */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th { background: var(--bg); padding: 0.65rem 1rem; text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); }
tbody td { padding: 0.65rem 1rem; border-top: 1px solid var(--border); }
tbody tr:hover { background: rgba(74,124,89,0.02); }

/* === HERO === */
.hero { position: relative; overflow: hidden; padding: 0; min-height: 85vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,46,26,0.75) 0%, rgba(74,124,89,0.55) 50%, rgba(232,196,104,0.2) 100%); }
.hero-content { position: relative; z-index: 2; padding: 4rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.8rem); max-width: 650px; margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 520px; margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-buttons .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--text); box-shadow: 0 4px 20px rgba(232,196,104,0.4); }
.hero-buttons .btn-primary:hover { background: #d4b050; border-color: #d4b050; }
.hero-buttons .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-buttons .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { margin-bottom: 0.6rem; }
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }
.section-title .divider { width: 50px; height: 3px; background: var(--accent); border-radius: 2px; margin: 1rem auto 0; }

/* === GRID === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === FEATURE CARDS === */
.feature-card { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: all 0.4s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-size: 1.6rem; }
.feature-icon.green { background: rgba(74,124,89,0.1); color: var(--primary); }
.feature-icon.gold { background: rgba(232,196,104,0.15); color: #c4a030; }
.feature-icon.blue { background: rgba(58,143,212,0.1); color: var(--info); }

/* === IMAGE SECTION === */
.img-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.img-section img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.img-section .content h2 { margin-bottom: 1rem; }
.img-section .content p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.75; }

/* === PACKAGES === */
.package-card { text-align: center; padding: 2.5rem 1.5rem; position: relative; overflow: hidden; border-radius: var(--radius); border: 2px solid var(--border); transition: all 0.4s var(--ease); }
.package-card:hover { border-color: var(--primary-light); }
.package-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.package-card .price { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin: 1rem 0 0.25rem; font-family: var(--font-h); }
.package-card .price small { font-size: 0.4em; font-weight: 400; color: var(--text-light); }
.package-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.package-card ul li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.package-card ul li:last-child { border-bottom: none; }
.package-card ul li i { color: var(--success); font-size: 0.8rem; }

/* === TESTIMONIALS === */
.testimonial-card { padding: 2rem; border-radius: var(--radius); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: var(--accent); font-family: var(--font-h); opacity: 0.4; line-height: 1; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-card .text { font-style: italic; color: var(--text-mid); margin-bottom: 1rem; line-height: 1.7; padding-left: 0.5rem; }
.testimonial-card .author { font-weight: 600; color: var(--text); }

/* === STATS === */
.stat-card { text-align: center; padding: 1.2rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--font-h); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.2rem; }
.stat-card .stat-icon { font-size: 1.3rem; color: var(--primary-light); margin-bottom: 0.4rem; }

/* === SIDEBAR LAYOUT === */
.layout-sidebar { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 56px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1.5rem 1rem; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); color: var(--text-mid); font-weight: 500; font-size: 0.88rem; transition: all 0.2s var(--ease); }
.sidebar-menu a:hover { background: rgba(74,124,89,0.06); color: var(--primary); }
.sidebar-menu a.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(74,124,89,0.25); }
.sidebar-menu a i { width: 18px; text-align: center; font-size: 0.85rem; }
.content-area { padding: 2rem; }
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.content-header h1 { font-size: 1.6rem; }

/* === TREND === */
.trend-up { color: var(--danger); }
.trend-down { color: var(--success); }
.trend-neutral { color: var(--text-light); }

/* === MODAL === */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 2rem; max-width: 600px; width: 92%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: 0.25rem; }

/* === TABS === */
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab { padding: 0.6rem 1.1rem; font-weight: 500; font-size: 0.88rem; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.25s var(--ease); background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font); white-space: nowrap; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* === QUIZ === */
.quiz-progress { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.quiz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.3s var(--ease); }
.quiz-dot.active { background: var(--primary); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(74,124,89,0.15); }
.quiz-dot.done { background: var(--primary-light); }
.quiz-step { display: none; animation: fadeIn 0.4s; }
.quiz-step.active { display: block; }

/* === BLOG === */
.blog-card { overflow: hidden; border-radius: var(--radius); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.blog-card-body p { color: var(--text-light); font-size: 0.88rem; }
.blog-card-body .date { font-size: 0.78rem; color: var(--text-light); margin-top: 0.6rem; }

/* === CONTACT FORM === */
.contact-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; padding: 5rem 0; }
.contact-section h2 { color: #fff; }
.contact-section p { color: rgba(255,255,255,0.8); }
.contact-section .form-control { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.contact-section .form-control::placeholder { color: rgba(255,255,255,0.5); }
.contact-section .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,196,104,0.2); }
.contact-section label { color: rgba(255,255,255,0.85); }

/* === FOOTER === */
.footer { background: #1a2e1a; color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--accent); }
.footer h3, .footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer ul li i { margin-right: 0.4rem; width: 16px; color: var(--accent); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); font-size: 0.95rem; transition: all 0.3s var(--ease); }
.social-links a:hover { background: var(--accent); color: var(--text); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* === UTILS === */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-light { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}.hidden{display:none !important}

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s var(--ease); }

/* === RESPONSIVE — GLOBAL === */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* === TABLET (max 1024px) === */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 200px 1fr; }
    .sidebar-menu a { font-size: 0.82rem; padding: 0.45rem 0.6rem; }
    .sidebar-menu a i { font-size: 0.8rem; }
    .section { padding: 3.5rem 0; }
    .container { padding: 0 1rem; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
    /* Layout base */
    .container { padding: 0 0.75rem; }
    .section { padding: 2.5rem 0; }
    .section-title { margin-bottom: 2rem; }
    .section-title p { font-size: 0.92rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.1rem; }

    /* Navbar */
    .navbar { padding: 0.4rem 0; }
    .navbar-brand { font-size: 1.2rem; }
    .navbar-toggle { display: block; }
    .navbar-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); flex-direction: column;
        padding: 0.75rem 1rem; gap: 0.5rem;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        z-index: 999;
    }
    .navbar-menu.open { display: flex; }
    .navbar-menu a { padding: 0.5rem 0; }
    .navbar-menu .btn { width: 100%; justify-content: center; margin-top: 0.25rem; }

    /* Hero */
    .hero { min-height: 60vh; }
    .hero-content { padding: 2rem 0; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-buttons { flex-direction: column; gap: 0.5rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; padding: 0.7rem 1.2rem; }

    /* Grids */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .img-section { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Sidebar dashboard layout */
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar {
        border-right: none; border-bottom: 1px solid var(--border);
        padding: 0.5rem 0.75rem; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar h4 { display: none; }
    .sidebar-menu {
        display: flex; flex-wrap: nowrap; gap: 0.2rem;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .sidebar-menu li { flex-shrink: 0; }
    .sidebar-menu a {
        padding: 0.4rem 0.65rem; font-size: 0.75rem;
        white-space: nowrap; border-radius: 20px;
        background: var(--bg); gap: 0.35rem;
    }
    .sidebar-menu a.active { background: var(--primary); color: #fff; }
    .sidebar-menu a i { font-size: 0.7rem; width: auto; }

    /* Content area */
    .content-area { padding: 0.75rem; }
    .content-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; margin-bottom: 1rem; }
    .content-header h1 { font-size: 1.25rem; }

    /* Cards */
    .card { padding: 1rem; border-radius: 12px; }

    /* Stat cards */
    .stat-card { padding: 0.7rem 0.5rem; }
    .stat-card .stat-value { font-size: 1.3rem; }
    .stat-card .stat-label { font-size: 0.68rem; }
    .stat-card .stat-icon { font-size: 1rem; margin-bottom: 0.2rem; }

    /* Tables */
    .table-wrap { margin: 0 -1rem; padding: 0 0; border-radius: 0; border-left: 0; border-right: 0; }
    table { font-size: 0.78rem; }
    thead th { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
    tbody td { padding: 0.5rem 0.6rem; }

    /* Packages */
    .package-card { padding: 1.5rem 1rem; }
    .package-card.featured { transform: none; }
    .package-card .price { font-size: 2.2rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem; }
    .testimonial-card::before { font-size: 3rem; top: 5px; left: 12px; }

    /* Feature cards */
    .feature-card { padding: 1.5rem 1rem; }
    .feature-icon { width: 56px; height: 56px; font-size: 1.3rem; }

    /* Blog */
    .blog-card-img { height: 160px; }
    .blog-card-body { padding: 0.85rem; }
    .blog-card-body h3 { font-size: 1rem; }

    /* Footer */
    .footer { padding: 2.5rem 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer h3 { font-size: 1rem; }
    .footer ul li { font-size: 0.82rem; }

    /* Modal */
    .modal { width: 95%; padding: 1.25rem; max-height: 85vh; }

    /* Tabs */
    .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

    /* Buttons */
    .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
    .btn-lg { padding: 0.65rem 1.5rem; font-size: 0.92rem; }

    /* Forms */
    .form-control { padding: 0.55rem 0.75rem; font-size: 0.88rem; }

    /* Alerts */
    .alert { padding: 0.6rem 0.8rem; font-size: 0.82rem; }

    /* Quiz */
    .quiz-progress { gap: 0.3rem; }
    .quiz-dot { width: 8px; height: 8px; }

    /* Contact section */
    .contact-section { padding: 3rem 0; }

    /* Utils */
    .hidden-mobile { display: none !important; }
}

/* === SMALL MOBILE (max 380px) — iPhone SE, Galaxy S etc === */
@media (max-width: 380px) {
    .container { padding: 0 0.5rem; }
    .content-area { padding: 0.5rem; }
    .card { padding: 0.75rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .stat-card .stat-value { font-size: 1.1rem; }
    .stat-card .stat-label { font-size: 0.62rem; }
    .sidebar-menu a { padding: 0.35rem 0.5rem; font-size: 0.7rem; }
    h1 { font-size: 1.4rem; }
    .content-header h1 { font-size: 1.15rem; }
    .navbar-brand { font-size: 1.05rem; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.85rem; }
    .btn { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
}
