/* =============================================================
   CONTATTI PAGE — coerente con il design system del sito
   Variabili: --primary #e02020 | --dark #0d0f12
              --dark-2 #161a20 | --dark-3 #1e2430
   ============================================================= */

/* ─── Animazioni ─────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }

/* ─── Quick Contact Bar ───────────────────────────────────── */
.quick-contact-bar {
    background: var(--dark-2, #161a20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .quick-contact-grid { grid-template-columns: 1fr; }
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #fff;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: #fff;
}

/* Colori per canale */
.quick-card--whatsapp {
    background: linear-gradient(135deg, rgba(37,211,102,0.18) 0%, rgba(18,140,126,0.18) 100%);
    border-color: rgba(37, 211, 102, 0.3);
}
.quick-card--whatsapp:hover { background: linear-gradient(135deg, #25d366, #128c7e); border-color: #25d366; }

.quick-card--phone {
    background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(29,78,216,0.18) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}
.quick-card--phone:hover { background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-color: #3b82f6; }

.quick-card--email {
    background: linear-gradient(135deg, rgba(224,32,32,0.18) 0%, rgba(185,28,28,0.18) 100%);
    border-color: rgba(224, 32, 32, 0.3);
}
.quick-card--email:hover { background: linear-gradient(135deg, #e02020, #b91c1c); border-color: #e02020; }

.quick-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: background 0.25s;
}
.quick-card:hover .quick-card__icon { background: rgba(255, 255, 255, 0.2); }

.quick-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.quick-card__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    opacity: 0.65;
    font-weight: 600;
}
.quick-card__value {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
}

.quick-card__arrow {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}
.quick-card:hover .quick-card__arrow { transform: translateX(4px); opacity: 1; }

/* ─── Contact page section ────────────────────────────────── */
.contact-page {
    background: var(--dark-2, #161a20);
    animation: fadeIn 0.8s ease-out;
}

/* ─── Grid principale ─────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ─── Colonna INFO ────────────────────────────────────────── */
.contact-info-card {
    background: linear-gradient(135deg, var(--dark-3, #1e2430) 0%, rgba(224, 32, 32, 0.06) 100%);
    border: 1px solid rgba(224, 32, 32, 0.2);
    border-radius: 16px;
    padding: 36px;
}

.contact-info-header { margin-bottom: 8px; }

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary, #e02020);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}

.contact-info-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.contact-info-header > p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    font-size: 0.93rem;
}

/* ─── Info list ───────────────────────────────────────────── */
.info-list { margin-top: 28px; }

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.info-item:hover {
    background: rgba(224, 32, 32, 0.08);
    border-color: rgba(224, 32, 32, 0.25);
    transform: translateX(4px);
}

/* Stagger entrance */
.info-item:nth-child(1) { animation: slideInLeft 0.5s ease-out 0.1s both; }
.info-item:nth-child(2) { animation: slideInLeft 0.5s ease-out 0.2s both; }
.info-item:nth-child(3) { animation: slideInLeft 0.5s ease-out 0.3s both; }
.info-item:nth-child(4) { animation: slideInLeft 0.5s ease-out 0.4s both; }

.info-icon {
    margin-right: 16px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #e02020);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.info-content { flex: 1; }

.info-item h4 {
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    font-size: 0.95rem;
    font-weight: 500;
}

.info-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover { color: var(--primary, #e02020); }

.info-cta {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary, #e02020);
}

/* ─── Orari grid ──────────────────────────────────────────── */
.orari-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.orari-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}

.orari-giorno {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    min-width: 90px;
}

.orari-fascia {
    color: rgba(255, 255, 255, 0.5);
}

.orari-chiuso .orari-giorno,
.orari-chiuso .orari-fascia {
    color: rgba(224, 32, 32, 0.75);
}

/* ─── WhatsApp CTA ────────────────────────────────────────── */
.btn-whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 12px;
    text-decoration: none !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    filter: brightness(1.07);
    color: #fff;
}
.btn-whatsapp-cta > .fa-brands { font-size: 1.75rem; flex-shrink: 0; }
.btn-whatsapp-cta > span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.btn-whatsapp-cta > span strong { font-size: 0.97rem; }
.btn-whatsapp-cta > span small  { font-size: 0.76rem; opacity: 0.82; font-weight: 400; }
.btn-whatsapp-cta > .fa-arrow-right { font-size: 0.8rem; opacity: 0.7; }

/* ─── Colonna FORM ────────────────────────────────────────── */
.contact-card {
    background: linear-gradient(135deg, var(--dark-3, #1e2430) 0%, rgba(224, 32, 32, 0.06) 100%);
    border: 1px solid rgba(224, 32, 32, 0.2);
    border-radius: 16px;
    padding: 40px;
}

.contact-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.contact-card h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary, #e02020);
    border-radius: 2px;
    margin: 10px auto 0;
}

.form-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    font-size: 0.93rem;
}

#contact-form { margin-top: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.form-group label i { color: var(--primary, #e02020); }

/* ─── Input con icona prefix ──────────────────────────────── */
.input-icon-wrap { position: relative; }

.input-prefix-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.input-icon-wrap:focus-within .input-prefix-icon {
    color: var(--primary, #e02020);
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
}

.form-control.has-icon { padding-left: 38px; }

.form-control:focus {
    outline: none;
    border-color: var(--primary, #e02020);
    background: rgba(224, 32, 32, 0.06);
    box-shadow: 0 0 0 3px rgba(224, 32, 32, 0.15);
    color: #fff;
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.3); }

textarea.form-control { resize: vertical; }

/* ─── Send button ─────────────────────────────────────────── */
.btn-send {
    background: var(--primary, #e02020);
    border: none;
    border-radius: 8px;
    padding: 15px 24px;
    font-weight: 700;
    font-size: 0.93rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-send:hover {
    background: var(--primary-hover, #c81a1a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 32, 32, 0.4);
}

/* ─── Alert styles ────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-error {
    background: rgba(224, 32, 32, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(224, 32, 32, 0.3);
}
.alert-error ul { margin: 0; padding-left: 18px; }

.alert-success {
    background: rgba(37, 211, 102, 0.12);
    color: #86efac;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* ─── Why choose us section ───────────────────────────────── */
.why-choose-us {
    background: var(--dark, #0d0f12);
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.why-choose-us .section-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}
.why-choose-us .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: linear-gradient(135deg, var(--dark-3, #1e2430) 0%, rgba(224, 32, 32, 0.05) 100%);
    padding: 30px 24px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 32, 32, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    background: var(--primary, #e02020);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1); }

.feature-card h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* ─── Hero stats ──────────────────────────────────────────── */
.contact-hero-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 120px;
    text-align: center;
}

.contact-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.contact-hero-stat span {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

/* ─── FAQ banner ──────────────────────────────────────────── */
.contact-faq-banner {
    background: var(--dark, #0d0f12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
}

.contact-faq-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-faq-banner__text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-faq-banner__text > i {
    font-size: 1.5rem;
    color: var(--primary, #e02020);
    flex-shrink: 0;
}

.contact-faq-banner__text strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.contact-faq-banner__text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-faq-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(224, 32, 32, 0.12);
    border: 1px solid rgba(224, 32, 32, 0.35);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.contact-faq-banner__btn:hover {
    background: var(--primary, #e02020);
    border-color: var(--primary, #e02020);
    transform: translateY(-1px);
}

/* ─── Store status ────────────────────────────────────────── */
.store-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
    padding: 10px 16px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.store-status__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: background 0.3s;
}

.store-status--open {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #86efac;
}

.store-status--open .store-status__dot {
    background: #25d366;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

.store-status--closed {
    background: rgba(224, 32, 32, 0.08);
    border-color: rgba(224, 32, 32, 0.25);
    color: rgba(255, 255, 255, 0.55);
}

.store-status--closed .store-status__dot {
    background: rgba(224, 32, 32, 0.7);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ─── Map ─────────────────────────────────────────────────── */
.map-container {
    margin-top: 24px;
    background: var(--dark-3, #1e2430);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.map-container__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-container__header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container__header h4 i {
    color: var(--primary, #e02020);
}

.map-container__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary, #e02020) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.map-container__link:hover { opacity: 0.8; }

.map-container__frame {
    line-height: 0;
}

.map-container__frame iframe {
    display: block;
    filter: grayscale(20%) contrast(1.05);
}

/* ─── Subject chips ───────────────────────────────────────── */
.subject-chips {
    margin-bottom: 1.5rem;
}

.subject-chips__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.subject-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-chip {
    padding: 7px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.subject-chip:hover {
    border-color: rgba(224, 32, 32, 0.4);
    color: #fff;
    background: rgba(224, 32, 32, 0.08);
}

.subject-chip.is-active {
    background: var(--primary, #e02020);
    border-color: var(--primary, #e02020);
    color: #fff;
}

/* ─── Form meta & privacy ─────────────────────────────────── */
.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.form-hint {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.35);
}

.char-counter {
    font-size: 0.76rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.35);
}

.char-counter--warn { color: #fca5a5; }

.form-privacy {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.5;
}

.form-privacy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-privacy a:hover { color: var(--primary, #e02020); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-hero-stats { width: 100%; }
    .contact-hero-stat  { flex: 1; min-width: 90px; }
}

@media (max-width: 480px) {
    .contact-card        { padding: 24px; }
    .contact-info-card   { padding: 24px; }
    .feature-card        { padding: 22px 16px; }
    .quick-card          { padding: 13px 15px; }
    .quick-card__icon    { width: 38px; height: 38px; font-size: 1.1rem; }
    .btn-whatsapp-cta    { padding: 14px 16px; }
    .contact-faq-banner__inner { flex-direction: column; align-items: flex-start; }
    .store-status { border-radius: 12px; font-size: 0.78rem; }
}
