/* ============================================
   STRUMENTI PILOTA - Pagina dedicata
   ============================================ */

/* Page header */
.page-strumenti .section,
.page-strumenti .section-join,
.page-strumenti .footer { position: relative; z-index: 1; }

.page-header {
    background: var(--dark); padding: 160px 0 80px; text-align: center;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    opacity: 0.3; pointer-events: none;
}
.page-header-content { position: relative; }
.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; color: var(--white);
    letter-spacing: -1px; margin-bottom: 12px;
}
.page-header p { font-size: 1.1rem; color: rgba(255,255,255,0.45); max-width: 550px; margin: 0 auto; }

/* ===== METEO ===== */
.meteo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.meteo-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s var(--ease);
}
.meteo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.meteo-primary { border-color: var(--gold); }
.meteo-primary .meteo-card-header { background: linear-gradient(135deg, var(--gold), #f97316); }
.meteo-card-header {
    padding: 16px 20px; background: var(--gray-50);
    display: flex; justify-content: space-between; align-items: center;
}
.meteo-card-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); letter-spacing: 1px; }
.meteo-primary .meteo-card-header h3 { color: var(--dark); }
.meteo-card-header span:not(.meteo-elev) { font-size: 0.78rem; color: var(--gray-500); }
.meteo-primary .meteo-card-header span { color: rgba(0,0,0,0.5); }
.meteo-elev {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    background: rgba(0,0,0,0.08); padding: 4px 10px; border-radius: 100px; color: var(--gray-600);
}
.meteo-primary .meteo-elev { background: rgba(0,0,0,0.15); color: var(--dark); }
.meteo-card-body { padding: 16px 20px; }
.meteo-note { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 12px; }
.meteo-links { display: flex; flex-direction: column; gap: 8px; }
.meteo-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--blue);
    transition: 0.3s;
}
.meteo-link:hover { color: var(--gold); }

/* Service row */
.service-row { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 28px; }
.service-row h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gray-400); margin-bottom: 14px; }
.service-links { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 100px; font-size: 0.85rem; font-weight: 500; color: var(--gray-800);
    transition: all 0.3s var(--ease);
}
.svc-chip:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.svc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ===== FREQUENZE ===== */
.freq-section { margin-bottom: 32px; }
.freq-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 16px;
}
.freq-title svg { color: var(--gold); }
.freq-table {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); overflow: hidden;
}
.freq-row {
    display: grid; grid-template-columns: 1fr 140px 1.2fr; gap: 16px;
    padding: 14px 20px; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s;
}
.freq-row:last-child { border-bottom: none; }
.freq-row:hover { background: rgba(255,255,255,0.03); }
.freq-row-highlight { background: rgba(245,158,11,0.06); }
.freq-row-highlight:hover { background: rgba(245,158,11,0.1); }
.freq-service { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.freq-mhz {
    font-size: 0.95rem; font-weight: 800; color: var(--gold-light);
    font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
}
.freq-note { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.freq-disclaimer {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-top: 8px;
    padding: 14px 20px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}
.freq-disclaimer strong { color: var(--gold-light); }

/* ===== NOTAM ===== */
.notam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.notam-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 32px 24px; position: relative; transition: all 0.4s var(--ease);
    display: flex; flex-direction: column; align-items: flex-start;
}
.notam-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.notam-card-icon { width: 44px; height: 44px; margin-bottom: 16px; }
.notam-card-icon svg { width: 100%; height: 100%; color: var(--gold); }
.notam-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.notam-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; flex: 1; }
.notam-arrow {
    position: absolute; top: 24px; right: 24px; font-size: 1.2rem; color: var(--gray-300);
    transition: all 0.3s;
}
.notam-card:hover .notam-arrow { color: var(--gold); transform: translateX(4px); }

.notam-checklist {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 32px;
}
.notam-checklist h4 {
    font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 16px;
}
.notam-checklist ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.notam-checklist li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: var(--gray-600); padding-left: 4px;
}
.notam-checklist li::before {
    content: ''; width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
    border: 2px solid var(--gray-300); background: var(--white);
}
.notam-checklist li strong { color: var(--gray-800); }

/* ===== AEROPORTO ===== */
.aero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.aero-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 24px; transition: all 0.3s var(--ease);
}
.aero-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.aero-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.aero-card-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0; overflow: hidden; }
.aero-card-map img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.aero-card-info { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.aero-card-info h3 { margin-bottom: 20px; }
.aero-data { display: flex; flex-direction: column; }
.aero-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}
.aero-row:last-child { border-bottom: none; }
.aero-row span { color: var(--gray-400); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.aero-row strong { color: var(--gray-900); font-weight: 600; }

/* Runway visual */
.runway-visual { display: flex; justify-content: center; margin-bottom: 20px; }
.runway-strip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    position: relative;
}
.rwy-num {
    font-size: 1.1rem; font-weight: 800; color: var(--gray-900);
    background: var(--gray-100); width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.rwy-line {
    width: 4px; height: 60px; background: var(--gray-300);
    background: repeating-linear-gradient(180deg, var(--gray-400) 0, var(--gray-400) 8px, transparent 8px, transparent 14px);
}

/* Services */
.aero-services { display: flex; flex-direction: column; gap: 12px; }
.aero-svc {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; color: var(--gray-800);
}
.aero-svc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; }
.aero-svc-dot.active { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.3); }
.aero-svc small { color: var(--gray-400); font-size: 0.75rem; margin-left: auto; }

/* ===== LINK UTILI ===== */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm); padding: 20px 24px;
    display: flex; flex-direction: column; gap: 4px;
    transition: all 0.3s var(--ease);
}
.link-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-2px); background: rgba(255,255,255,0.05); }
.link-card strong { font-size: 1rem; color: var(--white); }
.link-card span { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
    .meteo-grid { grid-template-columns: 1fr 1fr; }
    .aero-grid { grid-template-columns: 1fr; }
    .aero-card-wide { grid-template-columns: 1fr; }
    .aero-card-info { padding: 24px; }
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:768px) {
    .page-header { padding: 120px 0 60px; }
    .meteo-grid { grid-template-columns: 1fr; }
    .freq-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
    .freq-mhz { order: -1; }
    .notam-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }
}
