/* =========================================================
   IBRICO - CONTATTI
   File: /contatti/contatti.css
   Versione: 2.0
   ========================================================= */

:root {
    --ic-blue: #072f5f;
    --ic-blue-dark: #05264d;
    --ic-red: #e30613;
    --ic-yellow: #ffcc00;
    --ic-green: #168647;
    --ic-white: #ffffff;
    --ic-bg: #f5f7fa;
    --ic-text: #1f2937;
    --ic-muted: #6b7280;
    --ic-border: #e5e7eb;
}

.ibrico-contact,
.ibrico-contact * {
    box-sizing: border-box;
}

.ibrico-contact {
    width: 100%;
    overflow: hidden;
    background: var(--ic-white);
    color: var(--ic-blue);
    font-family: Arial, Helvetica, sans-serif;
}

.ibrico-contact a {
    text-decoration: none;
}

/* ALERT */

.ic-alert {
    max-width: 1320px;
    margin: 22px auto;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.ic-alert-success {
    border-left: 5px solid var(--ic-green);
    background: #eaf8f0;
    color: #0f6337;
}

.ic-alert-error {
    border-left: 5px solid var(--ic-red);
    background: #fff0f1;
    color: #8f0811;
}

/* BUTTON */

.ic-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--ic-yellow);
    color: var(--ic-blue) !important;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    transition:
        transform .2s ease,
        background .2s ease;
}

.ic-btn:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

.ic-btn.red {
    background: var(--ic-red);
    color: var(--ic-white) !important;
}

.ic-btn.green {
    background: var(--ic-green);
    color: var(--ic-white) !important;
}

/* HERO */

.ic-hero {
    padding: 66px 30px 60px;
    background:
        radial-gradient(circle at 90% 12%, rgba(255,204,0,.22), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
}

.ic-hero-inner {
    display: grid;
    max-width: 1320px;
    grid-template-columns: 1.08fr .92fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.ic-badge {
    display: inline-block;
    width: max-content;
    margin-bottom: 18px;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--ic-yellow);
    color: var(--ic-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-hero h1 {
    margin: 0 0 18px;
    color: var(--ic-blue);
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.ic-hero p {
    max-width: 700px;
    margin: 0 0 25px;
    color: #374151;
    font-size: 18px;
    line-height: 1.5;
}

.ic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ic-hero-panel {
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ic-blue), var(--ic-blue-dark));
    color: var(--ic-white);
    box-shadow: 0 18px 44px rgba(7,47,95,.18);
}

.ic-hero-panel-icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--ic-yellow);
    font-size: 34px;
}

.ic-hero-panel h2 {
    margin: 0 0 15px;
    color: var(--ic-white);
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-hero-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ic-hero-panel li {
    position: relative;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    color: var(--ic-white);
    font-size: 14px;
    font-weight: 800;
}

.ic-hero-panel li::before {
    content: "✓";
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ic-yellow);
    color: var(--ic-blue);
    font-size: 12px;
}

/* QUICK */

.ic-quick {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: -28px auto 0;
    padding: 0 28px;
}

.ic-quick-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    padding: 22px;
    border-radius: 20px;
    background: var(--ic-white);
    box-shadow: 0 16px 42px rgba(7,47,95,.14);
}

.ic-quick-card {
    padding: 21px;
    border: 1px solid var(--ic-border);
    border-radius: 15px;
}

.ic-quick-icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 50%;
    background: var(--ic-yellow);
    font-size: 24px;
}

.ic-quick-card h2 {
    margin: 0 0 6px;
    color: var(--ic-blue);
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-quick-card p {
    margin: 0 0 9px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.ic-quick-card a {
    color: var(--ic-red);
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

/* SECTIONS */

.ic-section {
    max-width: 1380px;
    margin: 0 auto;
    padding: 58px 30px;
}

.ic-section.alt {
    max-width: none;
    padding-left: max(30px, calc((100% - 1320px) / 2));
    padding-right: max(30px, calc((100% - 1320px) / 2));
    background: var(--ic-bg);
}

.ic-title {
    margin-bottom: 32px;
    text-align: center;
}

.ic-title h2 {
    margin: 0 0 8px;
    color: var(--ic-blue);
    font-size: 37px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-title p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

/* PANELS */

.ic-contact-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}

.ic-panel {
    position: relative;
    overflow: hidden;
    padding: 31px;
    border: 1px solid var(--ic-border);
    border-radius: 20px;
    background: var(--ic-white);
    box-shadow: 0 11px 32px rgba(7,47,95,.08);
}

.ic-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: var(--ic-red);
}

.ic-panel.green::before {
    background: var(--ic-green);
}

.ic-panel h3 {
    margin: 0 0 11px;
    color: var(--ic-blue);
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-panel p {
    margin: 0 0 17px;
    color: #4b5563;
    line-height: 1.5;
}

.ic-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.ic-list li {
    position: relative;
    padding: 9px 0 9px 30px;
    border-bottom: 1px solid var(--ic-border);
    color: #374151;
    font-weight: 700;
}

.ic-list li::before {
    content: "✓";
    position: absolute;
    top: 10px;
    left: 0;
    display: flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ic-green);
    color: var(--ic-white);
    font-size: 12px;
}

/* REQUEST CARDS */

.ic-dept-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.ic-dept-card {
    position: relative;
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--ic-border);
    border-radius: 18px;
    background: var(--ic-white);
    box-shadow: 0 10px 28px rgba(7,47,95,.06);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ic-dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 17px 36px rgba(7,47,95,.11);
}

.ic-dept-card::after {
    content: "→";
    position: absolute;
    right: 23px;
    bottom: 18px;
    color: var(--ic-red);
    font-size: 21px;
    font-weight: 900;
}

.ic-dept-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--ic-yellow);
    font-size: 27px;
}

.ic-dept-card h3 {
    margin: 0 0 9px;
    color: var(--ic-blue);
    font-size: 19px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-dept-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.45;
}

/* INFO */

.ic-info {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}

.ic-info article {
    padding: 28px;
    border: 1px solid var(--ic-border);
    border-radius: 18px;
    background: var(--ic-white);
    box-shadow: 0 10px 28px rgba(7,47,95,.06);
}

.ic-info h3 {
    margin: 0 0 10px;
    color: var(--ic-red);
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-info p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

/* FORM */

.ic-form-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--ic-border);
    border-radius: 20px;
    background: var(--ic-white);
    box-shadow: 0 12px 34px rgba(7,47,95,.09);
}

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

.ic-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.ic-field.full {
    grid-column: 1 / -1;
}

.ic-field label {
    color: var(--ic-blue);
    font-size: 13px;
    font-weight: 900;
}

.ic-field input,
.ic-field select,
.ic-field textarea {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 2px solid var(--ic-border);
    border-radius: 10px;
    background: var(--ic-white);
    color: var(--ic-text);
    font: inherit;
    outline: none;
    box-shadow: none;
}

.ic-field textarea {
    min-height: 140px;
    resize: vertical;
}

.ic-field input:focus,
.ic-field select:focus,
.ic-field textarea:focus {
    border-color: var(--ic-blue);
    box-shadow: 0 0 0 4px rgba(7,47,95,.09);
}

.ic-field small {
    color: var(--ic-muted);
    font-size: 11px;
}

.ic-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #374151 !important;
    font-weight: 700 !important;
}

.ic-check input {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: var(--ic-red);
}

.ic-check a {
    color: var(--ic-blue);
    text-decoration: underline;
}

.ic-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    background: var(--ic-red);
    color: var(--ic-white);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.ic-honeypot {
    position: absolute !important;
    left: -99999px !important;
}

/* FAQ */

.ic-faq {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.ic-faq-item {
    padding: 23px;
    border: 1px solid var(--ic-border);
    border-radius: 16px;
    background: var(--ic-white);
}

.ic-faq-item h3 {
    margin: 0 0 9px;
    color: var(--ic-blue);
    font-size: 18px;
    font-weight: 900;
}

.ic-faq-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

/* CTA */

.ic-cta {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 50px 30px;
    background: var(--ic-blue);
    color: var(--ic-white);
}

.ic-cta h2 {
    margin: 0 0 8px;
    color: var(--ic-white);
    font-size: 31px;
    font-weight: 900;
    text-transform: uppercase;
}

.ic-cta p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.92);
}

.ic-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ic-legal-links a {
    color: var(--ic-yellow);
    font-size: 12px;
    font-weight: 800;
}

/* RESPONSIVE */

@media (max-width: 1024px) {

    .ic-hero-inner {
        grid-template-columns: 1fr;
    }

    .ic-quick-grid,
    .ic-dept-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ic-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ic-legal-links {
        justify-content: center;
    }

    .ic-cta .ic-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .ic-hero {
        padding: 42px 16px 46px;
    }

    .ic-hero h1 {
        font-size: 35px;
    }

    .ic-hero p {
        font-size: 16px;
    }

    .ic-actions {
        flex-direction: column;
    }

    .ic-btn {
        width: 100%;
    }

    .ic-quick {
        margin-top: -20px;
        padding: 0 12px;
    }

    .ic-quick-grid,
    .ic-contact-grid,
    .ic-dept-grid,
    .ic-info,
    .ic-form-grid,
    .ic-faq {
        grid-template-columns: 1fr;
    }

    .ic-section,
    .ic-section.alt {
        padding: 40px 14px;
    }

    .ic-title h2 {
        font-size: 28px;
    }

    .ic-field.full {
        grid-column: auto;
    }

    .ic-form-box,
    .ic-panel {
        padding: 21px;
    }

    .ic-cta {
        padding: 38px 16px;
    }

    .ic-cta h2 {
        font-size: 25px;
    }
}
