:root {
    --ink: #17242a;
    --body: #45535a;
    --muted: #6f7b82;
    --line: #dde7ea;
    --surface: #ffffff;
    --wash: #f4f8f9;
    --aqua: #56b7c6;
    --aqua-dark: #23879a;
    --red: #d8332f;
    --red-dark: #aa211f;
    --gold: #f3b342;
    --shadow: 0 18px 45px rgba(22, 46, 54, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 116px;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.landing {
    width: 100%;
    padding-top: 106px;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 86px;
    padding: 14px clamp(22px, 6vw, 96px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(22, 46, 54, 0.08);
    backdrop-filter: blur(10px);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    width: 190px;
    min-width: 150px;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-logo-large {
    width: 230px;
    margin-bottom: 28px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
}

.site-nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
}

.site-nav-links a:hover {
    color: var(--red);
}

#inizio,
#chi-siamo,
#contatti,
#form-section {
    scroll-margin-top: 116px;
}

.page {
    padding: clamp(48px, 6vw, 82px) clamp(22px, 7vw, 108px);
}

.page-hero {
    min-height: calc(100vh - 106px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
    gap: clamp(36px, 7vw, 88px);
    align-items: center;
    background:
        linear-gradient(90deg, rgba(244, 248, 249, 0.98) 0%, rgba(244, 248, 249, 0.86) 54%, rgba(255, 255, 255, 0.62) 100%),
        radial-gradient(circle at 85% 20%, rgba(243, 179, 66, 0.16), transparent 32%);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(42px, 5.2vw, 76px);
}

h2 {
    margin-bottom: 28px;
    font-size: clamp(34px, 4vw, 54px);
}

h3 {
    margin-bottom: 14px;
    font-size: clamp(25px, 2.2vw, 34px);
}

p,
li {
    color: var(--body);
    font-size: 19px;
}

p {
    margin: 0 0 21px;
}

ul {
    margin: -4px 0 25px;
    padding-left: 23px;
}

li {
    margin-bottom: 9px;
}

li::marker {
    color: var(--red);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--red);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
    max-width: 680px;
    margin-top: 28px;
    color: #536168;
    font-size: clamp(21px, 2.1vw, 27px);
    font-weight: 700;
    line-height: 1.45;
}

.media {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-hero {
    min-height: 440px;
    aspect-ratio: 4 / 3;
}

.content-media {
    min-height: 390px;
    aspect-ratio: 5 / 4;
}

.thumb {
    height: 450px;
    margin-bottom: 26px;
}

/* Keep the owners' landscape photo inside the existing portrait card. */
.page-three .thumb img[alt="Titolari Audio Center Faenza"] {
    object-fit: contain;
    object-position: center;
    background: #eef5f6;
}

/* Keep the owners' landscape photo inside the existing portrait card. */
.cta-strip {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(180px, auto);
    gap: 22px;
    align-items: center;
    margin: 0 clamp(18px, 5vw, 80px);
    padding: 22px clamp(22px, 4vw, 52px);
    background: var(--aqua);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(35, 135, 154, 0.2);
}

/* Ensure brand logo is readable on colored CTA strips */
.cta-strip .brand-logo {
    background: #fff;
    padding: 14px 18px; /* increased padding for larger white area */
    border-radius: 8px;
    width: 190px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(22,46,54,0.08);
}

.cta-strip .brand-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 56px; /* keep logo visually balanced inside the padded box */
    height: auto;
}

.cta-strip p {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.25;
}

.cta-strip a,
.phone-line a {
    text-decoration: none;
    white-space: nowrap;
}

.cta-strip button,
.form-panel button,
.contact-form button {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    padding: 15px 22px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(216, 51, 47, 0.24);
}

.cta-strip button:hover,
.form-panel button:hover,
.contact-form button:hover {
    background: var(--red-dark);
}

.cta-strip button:disabled,
.form-panel button:disabled,
.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.page-text {
    max-width: 1040px;
    margin: 0 auto;
}

.page-impact,
.page-solutions {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: start;
}

.page-impact {
    background: var(--surface);
}

.page-solutions {
    background: linear-gradient(180deg, var(--wash), #fff);
}

.page-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 42px);
    background: var(--surface);
}

.page-three article {
    min-width: 0;
}

.page-three article p {
    margin-bottom: 16px;
}

.landing-link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.landing-link-grid a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--aqua);
    border-radius: 7px;
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    background: #fff;
}

.landing-link-grid a:hover,
.landing-link-grid a[aria-current="page"] {
    border-left-color: var(--red);
    color: var(--red);
}

.page-final {
    padding-top: 70px;
    padding-bottom: 96px;
    background: #eef5f6;
}

.closing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(34px, 7vw, 82px);
    align-items: center;
}

.closing h2 {
    margin-bottom: 34px;
    font-size: clamp(34px, 4.2vw, 56px);
}

.closing .phone-line {
    margin-bottom: 22px;
    color: var(--red);
    white-space: normal;
    overflow-wrap: anywhere;
}

.closing p {
    font-size: 18px;
    font-weight: 700;
}

.map-tile {
    display: block;
    width: 100%;
    height: 370px;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.map-tile iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.form-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(34px, 6vw, 72px);
    padding: clamp(52px, 7vw, 90px) clamp(22px, 7vw, 108px);
    background: #fff;
    border-top: 1px solid var(--line);
}

.form-panel h2 {
    font-size: clamp(36px, 4.3vw, 58px);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.contact-form label.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #cfdde1;
    border-radius: 10px;
    background: #fbfdfe;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid #cfdde1;
    border-radius: 8px;
    padding: 15px 14px;
    background: #fbfdfe;
    color: var(--ink);
    font-size: 18px;
    outline: none;
}

.contact-form label.consent-field input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #cfdde1;
}

.contact-form label.consent-field a {
    color: var(--aqua);
    text-decoration: underline;
}

.contact-form label.consent-field a:hover {
    color: var(--aqua-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--aqua-dark);
    box-shadow: 0 0 0 4px rgba(86, 183, 198, 0.18);
}

.contact-form button {
    width: min(100%, 230px);
    margin-top: 4px;
}

@media (max-width: 980px) {
    .landing {
        padding-top: 132px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 14px;
        min-height: 110px;
        padding: 14px 20px 16px;
    }

    .brand-logo {
        width: 168px;
    }

    .site-nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .site-nav-links a {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 4px;
        text-align: center;
        font-size: 14px;
    }

    .page-hero,
    .page-impact,
    .page-solutions,
    .page-three,
    .closing,
    .form-panel {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: 0;
    }

    .media-hero,
    .content-media {
        min-height: 280px;
    }

    .cta-strip {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
        margin: 0 14px;
    }

    .cta-strip button,
    .contact-form button {
        width: 100%;
    }

    .closing .phone-line {
        white-space: normal;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--ink);
    color: #fff;
    padding: clamp(52px, 7vw, 82px) clamp(22px, 7vw, 108px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 52px);
    max-width: 1400px;
    margin: 0 auto 52px;
}

.footer-section {
    min-width: 0;
}

.footer-section h4 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section p {
    margin: 0 0 14px;
    color: #cfdde1;
    font-size: 16px;
    line-height: 1.6;
}

.footer-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
    color: #cfdde1;
    font-size: 16px;
}

.footer-list a {
    color: #cfdde1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--aqua);
}

.footer-experience {
    margin-top: 22px !important;
    color: #a7b4b9 !important;
    font-size: 15px !important;
    font-style: italic;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright,
.footer-credits {
    padding: 0;
}

.footer-copyright p,
.footer-credits p {
    margin: 0;
    color: #a7b4b9;
    font-size: 14px;
}

.footer-credits a {
    color: var(--aqua);
    text-decoration: none;
    font-weight: 700;
}

.footer-credits a:hover {
    color: #56d4e0;
}

.page-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 36px);
    padding: clamp(42px, 5vw, 58px) clamp(22px, 7vw, 108px);
    background: #fff;
    border-top: 1px solid var(--line);
}

.page-legal article {
    min-width: 0;
}

.page-legal h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3vw, 34px);
    color: var(--ink);
}

.page-legal p {
    color: var(--body);
    font-size: 16px;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .landing {
        padding-top: 132px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 17px;
    }

    .landing {
        padding-top: 128px;
    }

    .page {
        padding: 42px 20px;
    }

    p,
    li {
        font-size: 17px;
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 20px;
    }

    .media-hero,
    .content-media {
        min-height: 235px;
    }

    /* Avoid cropping images on small screens: show full image */
    .media img {
        object-fit: contain;
        background: var(--surface);
    }

    .thumb {
        height: 220px;
    }

    .map-tile {
        height: 285px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        padding-top: 22px;
        gap: 18px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p,
    .footer-list li,
    .footer-list a {
        font-size: 14px;
    }
}
