/*
 * NavigaRent — Pagina Contatti
 * Stile coerente con la home: navy/teal, Cormorant + Montserrat
 * @package NavigaRent
 */

.nrc-page { font-family: var(--nr-body); color: var(--nr-text); }

/* ============================================
   HERO CON FOTO
   ============================================ */
.nrc-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.nrc-hero__bg {
    position: absolute;
    inset: 0;
}

.nrc-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    animation: nrcHeroZoom 14s ease-in-out infinite alternate;
}

@keyframes nrcHeroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.nrc-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(8,21,40,.88) 0%,
            rgba(8,21,40,.52) 40%,
            rgba(8,21,40,.22) 70%,
            rgba(8,21,40,.08) 100%
        );
}

.nrc-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px 72px;
    max-width: 820px;
    width: 100%;
    margin: 120px auto 0;
}

.nrc-hero__inner h1 {
    font-family: var(--nr-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: .96;
    font-weight: 600;
    color: #fff;
    margin: 14px 0 18px;
    letter-spacing: -.025em;
}

.nrc-hero__inner h1 em {
    font-style: italic;
    color: rgba(223,246,251,.9);
}

.nrc-hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,.78);
    margin: 0 0 34px;
    line-height: 1.65;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pillole contatto veloci */
.nrc-hero__pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nrc-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .22s ease, transform .22s ease;
}

.nrc-hero__pill:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.nrc-hero__pill svg { width: 16px; height: 16px; flex-shrink: 0; }

.nrc-hero__pill--wa {
    background: rgba(37,211,102,.28);
    border-color: rgba(37,211,102,.5);
}

.nrc-hero__pill--wa:hover { background: rgba(37,211,102,.44); }

/* scroll hint */
.nrc-hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.nrc-hero__scroll span {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 999px;
    position: relative;
}

.nrc-hero__scroll span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    animation: nrcScroll 1.8s ease-in-out infinite;
}

@keyframes nrcScroll {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    80%  { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 0; }
}

/* ============================================
   CORPO — LAYOUT 2 COLONNE
   ============================================ */
.nrc-body {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    padding: 60px 0 80px;
    align-items: start;
}

/* ============================================
   COLONNA SINISTRA — INFO + MAPPA
   ============================================ */
.nrc-info-col { display: flex; flex-direction: column; gap: 24px; }

.nrc-info-card {
    background: #fff;
    border-radius: var(--nr-radius);
    border: 1px solid var(--nr-border);
    box-shadow: var(--nr-shadow-soft);
    padding: 32px 30px;
}

.nrc-info-card h2 {
    font-family: var(--nr-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--nr-navy);
    margin: 10px 0 24px;
    line-height: 1;
}

.nrc-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nrc-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nrc-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--nr-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nr-teal);
    flex-shrink: 0;
}

.nrc-info-icon svg { width: 20px; height: 20px; }

.nrc-info-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--nr-muted);
    margin-bottom: 4px;
}

.nrc-info-val {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--nr-navy);
    line-height: 1.5;
}

.nrc-info-val--link {
    text-decoration: none;
    color: var(--nr-teal);
    transition: color .2s ease;
}

.nrc-info-val--link:hover { color: var(--nr-navy); }

/* Porti */
.nrc-ports {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--nr-border);
}

.nrc-ports__title {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--nr-muted);
    margin-bottom: 12px;
}

.nrc-ports__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nrc-port-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--nr-teal-soft);
    color: var(--nr-navy);
    font-size: 12px;
    font-weight: 600;
}

/* Mappa */
.nrc-map-wrap {
    border-radius: var(--nr-radius);
    overflow: hidden;
    height: 260px;
    box-shadow: var(--nr-shadow-soft);
    border: 1px solid var(--nr-border);
}

.nrc-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* WhatsApp CTA */
.nrc-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, hsl(145 60% 36%), hsl(145 55% 28%));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(37,211,102,.24);
    transition: transform .22s ease, filter .22s ease;
}

.nrc-wa-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.nrc-wa-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ============================================
   COLONNA DESTRA — FORM
   ============================================ */
.nrc-form-col { display: flex; flex-direction: column; gap: 22px; }

.nrc-form-card {
    background: #fff;
    border-radius: var(--nr-radius);
    border: 1px solid var(--nr-border);
    box-shadow: var(--nr-shadow-soft);
    padding: 36px 34px;
}

.nrc-form-card h2 {
    font-family: var(--nr-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--nr-navy);
    margin: 10px 0 8px;
    line-height: 1;
}

.nrc-form-intro {
    font-size: 14px;
    color: var(--nr-muted);
    margin: 0 0 28px;
    line-height: 1.7;
}

.nrc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nrc-field { display: flex; flex-direction: column; }
.nrc-field--full { grid-column: 1 / -1; }

.nrc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--nr-navy);
    margin-bottom: 8px;
}

.nrc-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: var(--nr-radius-sm);
    border: 1.5px solid rgba(30,58,95,.14);
    background: #fff;
    color: var(--nr-text);
    font-family: var(--nr-body);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none;
}

.nrc-input:focus {
    border-color: var(--nr-teal);
    box-shadow: 0 0 0 4px rgba(63,169,201,.12);
}

.nrc-input::placeholder { color: hsl(215 10% 62%); }

.nrc-input--textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

select.nrc-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}

/* Feedback */
.nrc-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--nr-radius-sm);
    font-size: 14px;
    line-height: 1.6;
}

.nrc-feedback[hidden] { display: none; }
.nrc-feedback.is-error   { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.2); color: #b91c1c; }
.nrc-feedback.is-success { background: rgba(63,169,201,.10); border: 1px solid rgba(63,169,201,.24); color: var(--nr-navy); }

/* Submit */
.nrc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nr-navy), var(--nr-navy-deep));
    color: #fff;
    font-family: var(--nr-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(30,58,95,.24);
    transition: transform .22s ease, filter .22s ease;
}

.nrc-submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.nrc-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.nrc-submit svg { width: 18px; height: 18px; }

.nrc-footnote {
    text-align: center;
    font-size: 12px;
    color: var(--nr-muted);
    margin-top: 14px;
    line-height: 1.5;
}

/* Successo */
.nrc-success {
    text-align: center;
    padding: 20px 0;
}

.nrc-success[hidden] { display: none; }

.nrc-success__icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 14px;
}

.nrc-success h3 {
    font-family: var(--nr-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--nr-navy);
    margin: 0 0 10px;
}

.nrc-success p {
    font-size: 15px;
    color: var(--nr-muted);
    line-height: 1.75;
    margin: 0 0 20px;
}

.nrc-success__wa {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: transform .22s ease;
}

.nrc-success__wa:hover { transform: translateY(-2px); }

/* Trust strip */
.nrc-trust-strip {
    background: #fff;
    border-radius: var(--nr-radius);
    border: 1px solid var(--nr-border);
    box-shadow: var(--nr-shadow-soft);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nrc-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
}

.nrc-trust-num {
    font-family: var(--nr-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nr-navy);
    line-height: 1;
}

.nrc-trust-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--nr-muted);
    text-transform: uppercase;
}

.nrc-trust-divider {
    width: 1px;
    height: 40px;
    background: var(--nr-border);
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nrc-body { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 64px; }
    .nrc-map-wrap { height: 240px; }
}

@media (max-width: 768px) {
    .nrc-hero { min-height: 55vh; }
    .nrc-hero__inner { padding: 0 20px 56px; margin-top: 100px; }
    .nrc-form-card { padding: 28px 22px; }
    .nrc-info-card { padding: 26px 22px; }
    .nrc-form-grid { grid-template-columns: 1fr; }
    .nrc-trust-strip { padding: 18px 16px; gap: 10px; }
    .nrc-trust-num { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .nrc-hero__pills { gap: 8px; }
    .nrc-hero__pill { font-size: 12px; padding: 0 14px; min-height: 38px; }
    .nrc-map-wrap { height: 200px; }
    .nrc-trust-strip { flex-direction: column; gap: 14px; }
    .nrc-trust-divider { width: 40px; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .nrc-hero__bg img { animation: none; }
    .nrc-hero__scroll span::after { animation: none; }
}
