/* ============================================================
   style.css — Chirurghi Plastici Estetici
   Palette: medicale, verde acqua, blu notte e neutri
   Chirurghi Plastici Estetici
   ============================================================ */

/* --- RESET & VARIABILI --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #0B8F7E;
  --teal-dark: #087666;
  --teal-light:#3DBEAE;
  --teal-bg:   #E7F6F3;
  --red:       var(--teal);
  --red-dark:  var(--teal-dark);
  --red-light: var(--teal-light);
  --red-bg:    var(--teal-bg);
  --ink:       #102033;
  --sea:       #1677A3;
  --sea-dark:  #0F5F82;
  --white:     #FFFFFF;
  --gray-50:   #F8F9FA;
  --gray-100:  #F1F3F5;
  --gray-200:  #E9ECEF;
  --gray-300:  #DEE2E6;
  --gray-400:  #CED4DA;
  --gray-500:  #ADB5BD;
  --gray-600:  #6C757D;
  --gray-700:  #495057;
  --gray-800:  #343A40;
  --gray-900:  #212529;
  --green:     #28A745;
  --orange:    #FD7E14;
  --blue:      #2563EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.14);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --transition: .2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- TOPBAR --- */
.topbar { background: var(--gray-900); color: var(--gray-400); font-size: 12px; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span { margin-right: 16px; }
.topbar-left i { color: var(--red); margin-right: 4px; }

/* --- LANG SWITCHER --- */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--gray-400); transition: var(--transition); }
.lang-btn:hover, .lang-btn.active { background: var(--red); color: var(--white); }

/* --- NAVBAR --- */
.navbar { background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(184,15,24,.24); position: sticky; top: 0; z-index: 1000; transition: box-shadow var(--transition); backdrop-filter: blur(10px); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

/* Logo */
.navbar-brand { display: flex; }
.logo-box { display: flex; align-items: center; gap: 9px; }
.logo-icon { width: 40px; height: 40px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; }
.logo-text { line-height: 1; display: inline-flex; align-items: center; width: max-content; }
.logo-main { display: block; font-size: 18px; font-weight: 800; color: var(--red); letter-spacing: 0; white-space: normal; line-height: 1.05; }
.logo-main span { color: var(--gray-800); font-size: inherit; font-weight: inherit; }

/* Menu desktop */
.navbar-menu { display: flex; gap: 4px; margin-left: auto; }
.navbar-menu a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-700); transition: var(--transition); white-space: nowrap; }
.navbar-menu a:hover { color: var(--red); background: var(--red-bg); }
.navbar-menu .highlight a { background: var(--red); color: var(--white); }
.navbar-menu .highlight a:hover { background: var(--red-dark); }

/* Auth buttons */
.navbar-auth { display: flex; gap: 8px; align-items: center; }
.btn-nav { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.btn-outline { border: 1.5px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { color: var(--gray-600); }
.btn-ghost:hover { color: var(--red); }
.btn-admin { background: var(--gray-900); color: var(--white); }

/* Hamburger */
.navbar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-800); transition: var(--transition); border-radius: 2px; }
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar-mobile { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--gray-200); padding: 12px 20px; }
.navbar-mobile.open { display: flex; }
.navbar-mobile a { padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-weight: 500; color: var(--gray-700); }
.navbar-mobile a:hover { color: var(--red); }
.mobile-lang { padding-top: 12px; }
.mobile-lang .lang-switcher { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbar-mobile .mobile-lang a.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 34px; padding: 0 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); color: var(--gray-700); font-size: 13px; font-weight: 700; line-height: 1; box-shadow: none; }
.navbar-mobile .mobile-lang a.lang-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.navbar-mobile .mobile-lang a.lang-btn.active { border-color: var(--red); background: var(--red); color: var(--white); }

/* Flash messages */
.flash { padding: 12px 20px; font-size: 14px; font-weight: 500; text-align: center; }
.flash-success { background: #D4EDDA; color: #155724; border-bottom: 2px solid #C3E6CB; }
.flash-error   { background: #F8D7DA; color: #721C24; border-bottom: 2px solid #F5C6CB; }

/* --- HERO SECTION --- */
.hero { background: var(--ink); min-height: 560px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../img/hero-bg.jpg') center/cover; opacity: .82; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,32,42,.88) 0%, rgba(23,32,42,.70) 44%, rgba(23,32,42,.34) 100%); }
.hero-content { position: relative; z-index: 1; color: var(--white); width: 100%; max-width: 1220px; margin: 0 auto; padding: 72px 20px; text-align: left; }
.hero h1 { max-width: 1160px; font-size: 48px; font-weight: 800; line-height: 1.12; margin-bottom: 16px; letter-spacing: 0; text-wrap: normal; white-space: nowrap; }
.hero h1 span { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--red-light); text-underline-offset: 7px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.86); margin-bottom: 34px; max-width: 720px; text-wrap: balance; }

/* Barra ricerca hero */
.search-bar { background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-lg); padding: 18px 20px; max-width: 980px; margin: 0; box-shadow: 0 18px 48px rgba(0,0,0,.25); }
.search-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.search-tab { padding: 6px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1.5px solid var(--gray-300); color: var(--gray-600); background: transparent; }
.search-tab.active, .search-tab:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search-fields { display: grid; grid-template-columns: 1fr 180px 160px 160px auto; gap: 10px; align-items: center; }
.search-field { position: relative; }
.search-field i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-500); font-size: 13px; }
.search-field input,
.search-field select { width: 100%; padding: 10px 12px 10px 34px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-800); outline: none; transition: border-color var(--transition); appearance: none; }
.search-field input:focus,
.search-field select:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(14,116,144,.12); }
.btn-search { background: var(--red); color: var(--white); border: none; padding: 10px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-search:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Stats hero */
.hero-stats { display: flex; gap: 28px; justify-content: flex-start; margin-top: 28px; }
.hero-stat { text-align: center; color: var(--white); }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: #FFFFFF; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.72); }

/* --- SEZIONI GENERALI --- */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.section-title h2 span { color: var(--red); }
.section-title p { color: var(--gray-600); margin-top: 8px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section-header h2 { font-size: 22px; font-weight: 700; }
.see-all { color: var(--red); font-weight: 600; font-size: 13px; }
.see-all:hover { text-decoration: underline; }

/* --- CARD PROFILO --- */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.card:hover { border-color: rgba(184,15,24,.28); box-shadow: 0 12px 28px rgba(23,32,42,.12); transform: translateY(-2px); }

.card-img { position: relative; height: 210px; overflow: hidden; background: var(--gray-200); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 40px; }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0; }
.badge-chirurgo_plastico  { background: var(--red); color: var(--white); }
.badge-medico_estetico  { background: var(--sea); color: var(--white); }
.badge-dermatologo_estetico { background: #5B6EE1; color: var(--white); }
.badge-clinica { background: var(--gray-900); color: var(--white); }
.badge-evidenza { background: var(--orange); color: var(--white); }
.badge-premium  { background: var(--green); color: var(--white); }
.badge-nuovo    { background: var(--gray-900); color: var(--white); }

.card-save { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,.9); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: var(--transition); }
.card-save:hover, .card-save.saved { color: var(--red); }

.card-body { padding: 14px 16px; }
.card-price { font-size: 23px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.card-price small { font-size: 13px; font-weight: 400; color: var(--gray-500); }
.card-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-location { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.card-location i { color: var(--sea); }
.card-features { display: flex; gap: 12px; font-size: 12px; color: var(--gray-600); border-top: 1px solid var(--gray-100); padding-top: 10px; }
.card-feature { display: flex; align-items: center; gap: 4px; }
.card-feature i { color: var(--gray-400); }

.card-footer { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.card-agency-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.card-agency-logo-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 12px; font-weight: 700; }
.card-agency-name { font-size: 11px; font-weight: 600; color: var(--gray-600); flex: 1; }
.card-time { font-size: 11px; color: var(--gray-400); }

/* --- FILTRI SIDEBAR --- */
.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters-sidebar { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; position: sticky; top: 80px; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-700); margin-bottom: 10px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); cursor: pointer; padding: 4px 0; }
.filter-group input[type="checkbox"] { accent-color: var(--red); }
.filter-input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; }
.filter-input:focus { border-color: var(--red); outline: none; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-filter { width: 100%; background: var(--red); color: var(--white); border: none; padding: 11px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 14px; transition: var(--transition); margin-top: 8px; }
.btn-filter:hover { background: var(--red-dark); }
.btn-reset { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-300); padding: 9px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; margin-top: 8px; transition: var(--transition); }
.btn-reset:hover { border-color: var(--red); color: var(--red); }

/* --- PAGINA PROFILO SINGOLO --- */
.scheda-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.gallery-main { border-radius: var(--radius-md); overflow: hidden; height: 420px; cursor: pointer; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.gallery-thumb { height: 70px; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.scheda-price-box { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 24px; position: sticky; top: 80px; }
.scheda-price { font-size: 32px; font-weight: 800; color: var(--red); }
.scheda-price-note { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.contact-form h3 { font-size: 16px; font-weight: 700; margin: 20px 0 14px; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 10px; transition: border-color var(--transition); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); outline: none; }
.contact-form textarea { height: 90px; resize: vertical; }
.btn-contact { width: 100%; background: var(--red); color: var(--white); border: none; padding: 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-contact:hover { background: var(--red-dark); }

.scheda-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.feature-item { background: var(--gray-50); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.feature-item i { color: var(--red); font-size: 20px; margin-bottom: 6px; }
.feature-item span { display: block; font-size: 11px; color: var(--gray-500); }
.feature-item strong { font-size: 15px; font-weight: 700; }

/* --- CATEGORIE HOME --- */
.categories-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.category-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px 12px; min-height: 126px; text-align: center; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.category-card:hover { border-color: rgba(14,116,144,.35); background: #F0FDFF; transform: translateY(-2px); }
.category-card i { font-size: 28px; color: var(--sea); margin-bottom: 8px; }
.category-card span { font-size: 12px; font-weight: 600; line-height: 1.25; min-height: 30px; color: var(--gray-700); display: flex; align-items: center; justify-content: center; text-align: center; }
.category-card .count { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* --- PIANI / PRICING --- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; margin: 0 auto; }
.pricing-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 28px; }
.pricing-card.featured { border-color: var(--red); background: var(--red-bg); position: relative; }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.pricing-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.pricing-price { font-size: 40px; font-weight: 800; color: var(--red); margin: 16px 0 4px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--gray-500); }
.pricing-features { margin: 20px 0; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.pricing-features li i { color: var(--green); margin-top: 2px; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--gray-400); }
.pricing-features li.disabled i { color: var(--gray-400); }
.btn-pricing { width: 100%; padding: 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); border: 2px solid var(--red); }
.btn-pricing-free { background: transparent; color: var(--red); }
.btn-pricing-free:hover { background: var(--red); color: var(--white); }
.btn-pricing-prem { background: var(--red); color: var(--white); }
.btn-pricing-prem:hover { background: var(--red-dark); }

/* --- DASHBOARD --- */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; min-height: 80vh; }
.sidebar-nav { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px 0; height: fit-content; position: sticky; top: 80px; }
.sidebar-user { padding: 16px 20px 20px; border-bottom: 1px solid var(--gray-100); }
.sidebar-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); margin-bottom: 8px; }
.sidebar-name { font-weight: 700; font-size: 14px; }
.sidebar-plan { font-size: 11px; font-weight: 700; }
.sidebar-plan.premium { color: var(--green); }
.sidebar-plan.gratuito { color: var(--gray-500); }
.sidebar-nav ul { padding: 8px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--red-bg); color: var(--red); border-left: 3px solid var(--red); }
.sidebar-nav a i { width: 16px; text-align: center; }
.sidebar-badge { margin-left: auto; background: var(--red); color: var(--white); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-icon.red    { background: var(--red-bg); color: var(--red); }
.stat-icon.green  { background: #D4EDDA; color: var(--green); }
.stat-icon.orange { background: #FFF3CD; color: var(--orange); }
.stat-icon.blue   { background: #CCE5FF; color: var(--blue); }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--gray-500); }

/* Tabella schede dashboard */
.table-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th { background: var(--gray-50); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table-card td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table-card tr:last-child td { border-bottom: none; }
.table-card tr:hover td { background: var(--gray-50); }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pubblicato  { background: #D4EDDA; color: #155724; }
.status-revisione   { background: #FFF3CD; color: #856404; }
.status-rifiutato   { background: #F8D7DA; color: #721C24; }
.status-scaduto     { background: var(--gray-200); color: var(--gray-600); }
.status-bozza       { background: #CCE5FF; color: #004085; }

/* --- ADMIN PANEL --- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar { background: var(--gray-900); color: var(--white); padding: 0; }
.admin-logo { padding: 20px; background: var(--red); font-size: 14px; font-weight: 700; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 13px 20px; font-size: 13px; color: rgba(255,255,255,.75); transition: var(--transition); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.1); color: var(--white); border-left: 3px solid var(--red); }
.admin-content { padding: 28px; background: var(--gray-50); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 22px; font-weight: 800; }

/* --- FORM PUBBLICA PROFILO --- */
.form-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 32px; }
.form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.form-section:last-child { border-bottom: none; }
.form-section h3 { font-size: 16px; font-weight: 700; color: var(--red); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; transition: border-color var(--transition); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); outline: none; }
.form-group textarea { height: 140px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 2px; }

.account-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.account-type-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); cursor: pointer; color: var(--gray-700); background: var(--white); transition: var(--transition); }
.account-type-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); flex-shrink: 0; }
.account-type-option span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.account-type-option i { color: var(--gray-600); width: 16px; text-align: center; }
.account-type-option:has(input:checked) { border-color: var(--red); background: var(--red-bg); color: var(--red-dark); }
.account-type-option:has(input:checked) i { color: var(--red); }

/* Upload foto */
.upload-zone { border: 2px dashed var(--gray-300); border-radius: var(--radius-md); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--red); background: var(--red-bg); }
.upload-zone i { font-size: 40px; color: var(--gray-400); margin-bottom: 12px; }
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 14px; }
.upload-preview { position: relative; border-radius: 6px; overflow: hidden; height: 90px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(0,0,0,.6); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.piano-limit-notice { background: var(--red-bg); border: 1px solid var(--red); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--red-dark); margin-top: 8px; }

/* --- MAPPA --- */
#map { height: 380px; border-radius: var(--radius-md); overflow: hidden; z-index: 1; }

/* --- PROFESSIONISTI PREMIUM --- */
.agencies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.agency-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; text-align: center; transition: var(--transition); }
.agency-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.agency-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gray-200); }
.agency-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.agency-city { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.agency-stats { display: flex; justify-content: center; gap: 20px; font-size: 12px; color: var(--gray-600); }

/* --- PAGINAZIONE --- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-300); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--gray-700); text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* --- FOOTER --- */
.footer { background: var(--gray-900); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--white); font-size: 18px; font-weight: 800; }
.footer-brand .logo-main span { color: var(--white); }
.footer-tagline { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-links a:hover { color: var(--red-light); }

/* --- UTILITY --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 14px; border: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.no-results i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .scheda-layout { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { max-width: 760px; }
}
@media (max-width: 768px) {
  .navbar-menu, .navbar-auth { display: none; }
  .navbar-toggle { display: flex; }
  .hero { min-height: 620px; }
  .hero::after { background: linear-gradient(90deg, rgba(23,32,42,.90) 0%, rgba(23,32,42,.72) 100%); }
  .hero-content { padding: 56px 20px; }
  .hero h1 { max-width: 560px; font-size: 38px; line-height: 1.14; white-space: normal; text-wrap: balance; }
  .hero p { font-size: 16px; }
  .search-fields { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: block; }
  .admin-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar nav a { padding: 11px 14px; font-size: 12px; border-left: 0; }
  .admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-left: 0; }
  .admin-content { padding: 20px; overflow-x: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .navbar-inner { gap: 12px; }
  .logo-main { font-size: 14px; max-width: 210px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .hero h1 { font-size: 28px; line-height: 1.16; }
  .listings-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .scheda-features { grid-template-columns: repeat(2, 1fr); }
}
