@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --color-primary: #1a2c71;
    --color-secondary: #ece9df;
    --color-text: #767471;
    --color-accent: #e0643a;
    --color-surface: #f6f6f6;
    --color-header: #f1f5f6;
    --color-white: #ffffff;
    --color-line: rgba(26, 44, 113, 0.18);
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin: 0 0 1.25rem;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

h1 {
    font-size: 80px;
    font-weight: 500;
    line-height: 1.08;
}

h2 {
    font-size: 55px;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 840px;
}

.site-main {
    display: block;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    color: var(--color-primary);
    background: var(--color-white);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.ap-icon {
    display: block;
    width: 1em;
    height: 1em;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button {
    display: inline-flex;
    min-height: 60px;
    padding: 18px 35px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: color 180ms ease, background-color 180ms ease;
}

.button-primary {
    color: var(--color-secondary);
    background: var(--color-accent);
}

.button-primary:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.text-link {
    display: inline-block;
    padding: 0 3px 3px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.text-link:hover {
    color: var(--color-accent);
}

.section-kicker {
    margin: 0 0 22px;
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-intro {
    max-width: 930px;
    margin: 0 auto 86px;
    text-align: center;
}

.section-intro h2 {
    margin-bottom: 30px;
}

.section-copy {
    max-width: 700px;
    margin-inline: auto;
}

.section-copy p:last-child {
    margin-bottom: 0;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--color-header);
}

.header-inner {
    position: relative;
    display: flex;
    min-height: 91px;
    align-items: center;
}

.brand {
    flex: 0 0 auto;
}

.site-logo-link {
    display: block;
}

.brand img,
.brand .custom-logo {
    width: 92px;
    height: 90px;
    object-fit: contain;
}

.header-contact {
    display: inline-flex;
    min-width: 139px;
    min-height: 52px;
    margin-left: auto;
    padding: 15px 28px;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    background: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
}

.header-contact:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.primary-nav {
    margin-left: auto;
}

.menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.menu a {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
}

.menu a:hover,
.menu .current-menu-item > a {
    color: var(--color-accent);
}

.primary-nav + .header-contact {
    margin-left: 32px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    border-radius: 0;
    color: var(--color-primary);
    background: transparent;
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
}

/* Hero */

.home-hero {
    background: var(--color-secondary);
}

.home-hero-grid {
    display: grid;
    min-height: 663px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.home-hero-copy {
    align-self: center;
    padding: 54px 70px 54px 0;
    transform: translateY(-9px);
}

.home-hero-copy h1 {
    margin-bottom: 24px;
    transform: translateY(-22px);
}

.home-hero-copy > p {
    max-width: 550px;
    margin-bottom: 47px;
    transform: translateY(-22px);
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 59px;
}

.home-hero-actions .button {
    width: 198px;
}

.home-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 500;
    white-space: nowrap;
}

.phone-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--color-white);
    background: var(--color-primary);
}

.phone-icon .ap-icon {
    width: 27px;
    height: 27px;
    stroke-width: 2.2;
}

.home-hero-image {
    align-self: end;
}

.home-hero-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Quick services */

.home-quick {
    padding: 170px 0 95px;
    background: var(--color-surface);
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-service {
    min-height: 330px;
    padding: 40px;
    text-align: center;
    transition: background-color 180ms ease;
}

.quick-service:hover {
    background: var(--color-secondary);
}

.icon-tile {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 24px;
    place-items: center;
    color: var(--color-accent);
    background: var(--color-white);
}

.icon-tile .ap-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
}

.quick-service h2 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 500;
}

.quick-service p {
    max-width: 300px;
    min-height: 87px;
    margin: 0 auto 18px;
}

/* About */

.home-about {
    color: var(--color-white);
    background: var(--color-primary);
}

.home-about-grid {
    display: grid;
    max-width: 1440px;
    min-height: 730px;
    margin-inline: auto;
    grid-template-columns: 46.6% 53.4%;
}

.home-about-image {
    min-height: 730px;
}

.home-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-about-copy {
    display: flex;
    padding: 118px 80px 105px 49px;
    flex-direction: column;
    justify-content: center;
}

.home-about-copy h2 {
    max-width: 650px;
    margin-bottom: 27px;
    color: var(--color-white);
}

.home-about-copy > p:not(.section-kicker) {
    max-width: 650px;
    margin-bottom: 43px;
    color: var(--color-white);
}

.about-features {
    display: grid;
    max-width: 650px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 42px;
}

.about-features > div {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
    font-size: 16px;
}

.feature-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    color: var(--color-white);
    background: var(--color-accent);
}

.feature-icon .ap-icon {
    width: 25px;
    height: 25px;
    stroke-width: 2.2;
}

/* Services */

.home-services {
    padding: 100px 0 108px;
    background: var(--color-secondary);
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    min-height: 397px;
    padding: 62px 40px 45px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
}

.service-icon {
    margin-bottom: 37px;
    color: var(--color-accent);
}

.service-icon .ap-icon {
    width: 41px;
    height: 41px;
    stroke-width: 2.1;
}

.service-card h3 {
    margin-bottom: 18px;
}

.service-card p {
    max-width: 290px;
    margin-bottom: 19px;
}

.service-card .text-link {
    margin-top: auto;
}

/* Center */

.home-center {
    padding: 91px 0;
    background: var(--color-white);
}

.home-center-layout {
    position: relative;
    display: grid;
    min-height: 833px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-center-image {
    min-height: 833px;
    border-left: 20px solid var(--color-surface);
}

.home-center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.home-center-copy {
    display: flex;
    padding: 80px 0 80px 70px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.home-center-copy h2 {
    max-width: 560px;
    margin-bottom: 28px;
}

.home-center-copy > p:not(.section-kicker) {
    max-width: 550px;
    margin-bottom: 38px;
}

.journey-panel {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 20px;
    display: grid;
    width: calc(50% - 40px);
    min-height: 148px;
    padding: 28px 30px 22px;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    background: var(--color-white);
}

.journey-panel > i {
    display: block;
    height: 1px;
    margin: 0 14px 30px;
    border-top: 1px dotted var(--color-text);
}

.journey-step {
    display: flex;
    min-width: 100px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    text-align: center;
}

.journey-step span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: 50%;
}

.journey-step .ap-icon {
    width: 29px;
    height: 29px;
    stroke-width: 2.1;
}

.journey-step strong {
    font-size: 16px;
    font-weight: 500;
}

.journey-step.is-accent {
    color: var(--color-accent);
}

.journey-step.is-accent strong {
    color: var(--color-primary);
}

/* Products */

.home-products {
    padding: 75px 0 74px;
    background: var(--color-surface);
}

.products-intro {
    margin-bottom: 68px;
}

.products-intro .section-copy {
    max-width: 720px;
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    min-height: 530px;
    padding: 49px 42px 35px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
}

.product-card img {
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
    object-fit: cover;
}

.product-card h3 {
    margin-bottom: 18px;
}

.product-card p {
    max-width: 280px;
    margin-bottom: 20px;
}

.product-card .text-link {
    margin-top: auto;
}

/* Hearing test */

.home-hearing-test {
    position: relative;
    min-height: 456px;
    padding: 100px 0;
    background-color: var(--color-secondary);
    background-image: linear-gradient(rgba(236, 233, 223, 0.9), rgba(236, 233, 223, 0.9)), url("../img/hearing-test-2026.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hearing-grid {
    display: grid;
    min-height: 246px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.home-hearing-grid h2 {
    max-width: 520px;
}

.home-hearing-grid > .button {
    justify-self: end;
}

.home-hearing-grid > .button .ap-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* News */

.home-news {
    padding: 80px 0 123px;
    background: var(--color-surface);
}

.news-intro {
    margin-bottom: 70px;
}

.news-intro .section-copy {
    max-width: 740px;
}

.home-news-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    min-width: 0;
    min-height: 557px;
    flex-direction: column;
    background: var(--color-white);
}

.news-card-image {
    display: block;
    height: 246px;
    overflow: hidden;
    background: var(--color-secondary);
}

.news-card-image:empty {
    display: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    display: flex;
    padding: 34px 30px 24px;
    flex: 1 1 auto;
    flex-direction: column;
}

.news-card h3 {
    margin-bottom: 27px;
    font-size: 21px;
    line-height: 1.35;
}

.news-card h3 a {
    color: var(--color-primary);
}

.news-card p {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.news-read-more {
    margin-top: auto;
    color: #d68a70;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card time {
    display: block;
    padding: 16px 30px;
    border-top: 1px solid rgba(118, 116, 113, 0.18);
    color: #a5a3a0;
    font-size: 12px;
}

/* Footer */

.site-footer {
    position: relative;
    margin-top: 194px;
    color: var(--color-secondary);
    background: var(--color-primary);
}

.appointment-wrap {
    position: relative;
    top: -194px;
    margin-bottom: -194px;
}

.appointment-band {
    display: grid;
    grid-template-columns: 49.4% 50.6%;
    color: var(--color-text);
    background: var(--color-secondary);
}

.appointment-copy {
    min-height: 300px;
    padding: 37px 30px 29px 50px;
}

.appointment-copy h2 {
    margin: 0 0 18px;
}

.appointment-copy > p:last-child {
    max-width: 560px;
    margin-bottom: 0;
}

.appointment-action {
    display: grid;
    min-height: 300px;
    place-items: center;
}

.appointment-label-mobile {
    display: none;
}

.footer-main {
    padding: 96px 0 0;
}

.footer-grid {
    display: grid;
    padding-bottom: 71px;
    grid-template-columns: 31% 19% 23% 27%;
}

.footer-logo {
    width: 148px;
    height: 32px;
    margin-bottom: 25px;
    object-fit: contain;
}

.footer-brand {
    padding-right: 50px;
}

.footer-brand p,
.footer-column a {
    color: var(--color-secondary);
}

.footer-brand p {
    margin: 0;
}

.footer-column h2 {
    margin-bottom: 21px;
    color: var(--color-white);
    font-size: 24px;
    font-weight: 500;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 2px;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: grid;
    min-height: 85px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    grid-template-columns: 1.4fr 0.75fr auto;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: var(--color-secondary);
    line-height: 1.55;
}

.privacy-link {
    color: var(--color-secondary);
    text-align: center;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.social-links a {
    display: inline-flex;
    min-width: 18px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 800;
    text-transform: lowercase;
}

.social-links a:hover,
.privacy-link:hover {
    color: var(--color-accent);
}

/* Inner pages and posts */

.inner-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 370px;
    place-items: center;
    background-position: center;
    background-size: cover;
}

.inner-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgba(26, 44, 113, 0.82);
}

.inner-hero h1 {
    color: var(--color-white);
    font-size: 55px;
    text-align: center;
}

.inner-hero-center {
    background-image: url("../img/chi-siamo-hero-2026.webp");
}

.inner-hero-services {
    background-image: url("../img/servizi-hero-2026.webp");
    background-position: center 42%;
}

.inner-hero-products {
    background-image: url("../img/prodotti-hero-2026.webp");
}

.inner-hero-tinnitus {
    background-image: url("../img/acufeni.jpeg");
    background-position: center 43%;
}

.inner-hero-contacts {
    background-image: url("../img/contatti-hero-2026.webp");
}

.inner-hero-products::before,
.inner-hero-tinnitus::before {
    background: rgba(236, 233, 223, 0.82);
}

.inner-hero-products h1,
.inner-hero-tinnitus h1 {
    color: var(--color-primary);
}

.inner-section,
.content-section,
.section {
    padding: 100px 0;
    background: var(--color-white);
}

.inner-section h2,
.inner-intro h2,
.consult-cta h2,
.service-discover h2,
.contact-social-band h2 {
    font-size: 45px;
}

.inner-intro {
    padding: 110px 0 105px;
    text-align: center;
    background: var(--color-surface);
}

.inner-intro .narrow,
.content-section .narrow {
    margin-inline: auto;
}

.inner-intro h2 {
    margin-bottom: 30px;
}

.inner-intro p:not(.section-kicker) {
    font-size: 16px;
}

.inner-intro p:last-child {
    margin-bottom: 0;
}

.center-story {
    padding-bottom: 80px;
}

.center-story-grid,
.center-profile-grid,
.center-mission-grid,
.center-anniversary-grid,
.rechargeable-grid,
.service-detail-grid,
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.center-story-grid {
    gap: 85px;
}

.center-story-media {
    position: relative;
}

.center-story-media > img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.experience-box {
    position: absolute;
    right: -35px;
    bottom: -45px;
    display: flex;
    width: 220px;
    min-height: 170px;
    padding: 28px;
    flex-direction: column;
    justify-content: center;
    color: var(--color-white);
    background: var(--color-primary);
}

.experience-box strong {
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
}

.experience-box span {
    margin-top: 10px;
    font-size: 16px;
}

.center-story-copy h2,
.center-profile-copy h2,
.center-mission-copy h2,
.center-anniversary h2 {
    margin-bottom: 28px;
}

.center-story-copy p:not(.section-kicker),
.center-profile-copy > p:not(.section-kicker),
.center-mission-copy p:not(.section-kicker),
.center-anniversary p:not(.section-kicker) {
    font-size: 16px;
}

.center-values {
    display: grid;
    margin-top: 120px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.center-values > div {
    min-height: 150px;
    padding: 20px 30px;
    border-right: 1px solid var(--color-line);
    text-align: center;
}

.center-values > div:last-child {
    border-right: 0;
}

.center-values .ap-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 24px;
    color: var(--color-accent);
}

.center-values h3 {
    font-size: 18px;
}

.center-profile {
    background: var(--color-surface);
}

.center-profile-grid {
    gap: 90px;
}

.center-profile-image img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    object-position: center top;
}

.career-timeline {
    margin-top: 38px;
}

.career-timeline > div {
    position: relative;
    display: grid;
    padding: 0 0 27px 27px;
    border-left: 1px solid var(--color-accent);
    grid-template-columns: 120px 1fr;
    gap: 18px;
}

.career-timeline > div::before {
    position: absolute;
    top: 4px;
    left: -5px;
    width: 9px;
    height: 9px;
    content: "";
    background: var(--color-accent);
}

.career-timeline span {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
}

.career-timeline p {
    margin: 0;
    font-size: 14px;
}

.center-mission {
    color: var(--color-white);
    background: var(--color-primary);
}

.center-mission-grid {
    min-height: 500px;
    grid-template-columns: 1fr 1.08fr;
}

.center-mission-copy {
    padding: 70px 75px 70px 0;
}

.center-mission-copy h2 {
    color: var(--color-white);
}

.center-mission-grid > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.center-anniversary {
    background: var(--color-secondary);
}

.center-anniversary-grid {
    gap: 90px;
}

.center-anniversary-grid > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.consult-cta {
    padding: 95px 0 70px;
    text-align: center;
    background: var(--color-white);
}

.consult-cta h2 {
    max-width: 980px;
    margin-inline: auto;
}

.service-detail,
.product-detail {
    padding: 95px 0;
    background: var(--color-white);
}

.service-detail.is-reverse,
.product-detail.is-reverse {
    background: var(--color-secondary);
}

.service-detail-grid,
.product-detail-grid {
    gap: 95px;
}

.service-detail.is-reverse img,
.product-detail.is-reverse img {
    order: -1;
}

.service-detail-copy h2,
.product-detail-copy h2,
.tinnitus-content h2,
.tinnitus-sidebar h2 {
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 500;
}

.service-detail-copy p,
.product-detail-copy p {
    font-size: 16px;
}

.service-detail-copy a,
.tinnitus-content a,
.contacts-main a {
    color: var(--color-accent);
    font-weight: 700;
}

.service-detail-grid > img {
    width: 100%;
    height: 370px;
    object-fit: cover;
}

.service-discover {
    padding: 105px 0 65px;
    background: var(--color-white);
}

.service-discover .narrow {
    margin-inline: auto;
}

.service-discover h2 {
    margin-bottom: 28px;
}

.service-discover p:not(.section-kicker) {
    max-width: 760px;
    font-size: 16px;
}

.service-discover .button {
    margin-top: 15px;
}

.rechargeable-band {
    padding: 90px 0;
    color: var(--color-white);
    background: var(--color-primary);
}

.rechargeable-grid {
    gap: 95px;
}

.rechargeable-grid h2 {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--color-white);
    font-size: 45px;
}

.rechargeable-grid p:not(.section-kicker) {
    max-width: 570px;
    font-size: 16px;
}

.rechargeable-grid img {
    width: 100%;
    height: 370px;
    object-fit: cover;
}

.product-detail-grid > img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    justify-self: center;
    object-fit: cover;
}

.tinnitus-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(250px, 0.75fr);
    align-items: start;
    gap: 65px;
}

.tinnitus-content > img {
    width: 100%;
    height: 430px;
    margin-bottom: 35px;
    object-fit: cover;
}

.tinnitus-content p,
.tinnitus-content li,
.tinnitus-sidebar {
    font-size: 15px;
}

.tinnitus-content ul {
    margin: 0 0 38px;
    padding-left: 22px;
}

.tinnitus-content h2:not(:first-of-type) {
    padding-top: 25px;
    border-top: 1px solid rgba(118, 116, 113, 0.15);
}

.tinnitus-sidebar {
    padding: 5px 0 0 25px;
}

.tinnitus-sidebar dl {
    margin: 0 0 55px;
}

.tinnitus-sidebar dt,
.tinnitus-sidebar dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(118, 116, 113, 0.15);
}

.tinnitus-sidebar dd {
    color: var(--color-primary);
}

.tinnitus-sidebar .button {
    width: 100%;
    margin-top: 10px;
    padding-inline: 20px;
}

.contacts-main {
    padding-bottom: 115px;
}

.contacts-main > .container > h2 {
    margin-bottom: 45px;
    font-size: 45px;
}

.opening-hours {
    max-width: 650px;
}

.opening-hours h3 {
    margin-bottom: 18px;
    font-size: 20px;
}

.opening-hours > div {
    display: grid;
    padding: 18px 0;
    border-bottom: 1px solid rgba(118, 116, 113, 0.15);
    grid-template-columns: 1fr 1fr;
    font-size: 15px;
}

.opening-hours strong {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-methods {
    display: grid;
    margin-top: 140px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    text-align: center;
}

.contact-methods h3 {
    margin-bottom: 13px;
    font-size: 18px;
}

.contact-methods p {
    margin: 0;
    font-size: 15px;
}

.contact-social-band {
    padding: 45px 0;
    background: var(--color-secondary);
}

.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.contact-social-grid h2 {
    margin-bottom: 4px;
    font-size: 35px;
}

.contact-social-grid p {
    margin: 0;
    font-size: 14px;
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-social-links a {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--color-white);
    background: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: lowercase;
}

.contact-photo {
    padding-bottom: 50px;
}

.narrow-wide {
    max-width: 1050px;
}

.contact-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.contact-consult-cta {
    padding-top: 35px;
}

.page-hero {
    padding: 150px 0 95px;
    background: var(--color-secondary);
}

.page-hero h1 {
    color: var(--color-primary);
}

.content-section a,
.entry-content a {
    color: var(--color-primary);
    font-weight: 700;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.featured-image {
    width: 100%;
    margin-bottom: 38px;
}

.post-grid {
    display: grid;
    margin-top: 50px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.post-card {
    padding: 30px;
    background: var(--color-white);
}

.post-card img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
}

.post-card h2 {
    margin: 22px 0 14px;
    font-size: 26px;
}

.pagination-wrap {
    margin-top: 40px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 8px 12px;
    color: var(--color-primary);
    background: var(--color-secondary);
}

.error404 .page-hero {
    min-height: 55vh;
}

.error404 .page-hero .button {
    margin-top: 25px;
}

/* Tablet */

@media (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 54px;
    }

    h2 {
        font-size: 45px;
    }

    .container {
        width: min(calc(100% - 60px), var(--container));
    }

    .header-inner {
        min-height: 85px;
    }

    .brand img,
    .brand .custom-logo {
        width: 78px;
        height: 78px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        z-index: 10;
        top: 85px;
        right: 0;
        left: 0;
        display: none;
        margin: 0 -30px;
        padding: 30px;
        background: var(--color-header);
        box-shadow: 0 16px 24px rgba(26, 44, 113, 0.1);
    }

    .primary-nav.is-open {
        display: block;
    }

    .menu {
        display: grid;
        gap: 18px;
    }

    .menu a {
        font-size: 16px;
    }

    .primary-nav + .header-contact {
        margin-left: 20px;
    }

    .home-hero-grid {
        min-height: 560px;
    }

    .home-hero-copy {
        padding-right: 40px;
    }

    .home-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .home-quick {
        padding: 100px 0 70px;
    }

    .quick-service {
        padding: 30px 18px;
    }

    .home-about-grid {
        min-height: 650px;
    }

    .home-about-image {
        min-height: 650px;
    }

    .home-about-copy {
        padding: 70px 30px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-services-grid,
    .home-products-grid,
    .home-news-grid,
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-center-layout {
        min-height: 670px;
    }

    .home-center-image {
        min-height: 670px;
    }

    .home-center-copy {
        padding-left: 45px;
    }

    .journey-panel {
        width: calc(50% - 30px);
        padding-inline: 20px;
    }

    .journey-panel > i {
        margin-inline: 5px;
    }

    .journey-step strong {
        font-size: 13px;
    }

    .home-hearing-test {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: 31% 22% 24% 23%;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
    }

    .footer-bottom .social-links {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .inner-hero {
        min-height: 320px;
    }

    .inner-hero h1 {
        font-size: 48px;
    }

    .center-story-grid,
    .center-profile-grid,
    .center-anniversary-grid,
    .service-detail-grid,
    .product-detail-grid,
    .rechargeable-grid {
        gap: 45px;
    }

    .center-story-media > img {
        height: 470px;
    }

    .experience-box {
        right: -20px;
    }

    .center-values > div {
        padding-inline: 15px;
    }

    .center-profile-image img {
        height: 720px;
    }

    .career-timeline > div {
        grid-template-columns: 95px 1fr;
    }

    .center-mission-copy {
        padding-right: 45px;
    }

    .service-detail-grid,
    .product-detail-grid {
        gap: 55px;
    }

    .tinnitus-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(235px, 0.8fr);
        gap: 40px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 47px;
    }

    h2 {
        font-size: 38px;
    }

    h3 {
        font-size: 24px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section-kicker {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .section-intro {
        margin-bottom: 50px;
    }

    .section-intro h2 {
        margin-bottom: 28px;
    }

    .button {
        min-height: 55px;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 126px;
    }

    .brand img,
    .brand .custom-logo {
        width: 96px;
        height: 110px;
    }

    .header-contact {
        display: none;
    }

    .primary-nav {
        top: 126px;
        margin: 0 -20px;
        padding: 30px 20px;
    }

    .home-hero-grid {
        display: flex;
        min-height: 0;
        padding-top: 52px;
        flex-direction: column;
    }

    .home-hero-copy {
        width: 100%;
        padding: 0;
        transform: none;
    }

    .home-hero-copy h1 {
        margin-bottom: 24px;
        transform: none;
    }

    .home-hero-copy > p {
        max-width: none;
        margin-bottom: 48px;
        transform: none;
    }

    .home-hero-actions {
        align-items: flex-start;
        gap: 34px;
    }

    .home-hero-actions .button {
        width: 247px;
    }

    .home-hero-phone {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        font-size: 24px;
    }

    .home-hero-image {
        width: 100%;
        min-width: 0;
        margin-top: 58px;
        margin-bottom: -30px;
    }

    .home-hero-image img {
        width: 100%;
        aspect-ratio: 1;
        object-position: center;
    }

    .home-quick {
        padding: 50px 0;
    }

    .home-quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-service {
        min-height: 290px;
        padding: 40px 10px 70px;
    }

    .quick-service:nth-child(1) {
        padding-bottom: 44px;
    }

    .quick-service:nth-child(2) {
        padding-bottom: 17px;
    }

    .quick-service:nth-child(3) {
        padding-bottom: 0;
    }

    .quick-service:hover {
        background: transparent;
    }

    .quick-service p {
        min-height: 0;
    }

    .home-about-grid {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .home-about-copy {
        order: 1;
        padding: 50px 20px 40px;
        align-items: center;
        text-align: center;
    }

    .home-about-copy h2 {
        margin-bottom: 24px;
    }

    .home-about-copy > p:not(.section-kicker) {
        margin-bottom: 55px;
    }

    .about-features {
        width: 100%;
        gap: 55px;
    }

    .about-features > div {
        flex-direction: column;
        gap: 22px;
    }

    .home-about-image {
        order: 2;
        min-height: 0;
        padding: 0 20px;
    }

    .home-about-image img {
        height: 281px;
        object-position: center;
    }

    .home-services {
        padding: 50px 0;
    }

    .home-services .section-copy {
        text-align: center;
    }

    .home-services-grid,
    .home-products-grid,
    .home-news-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .home-services-grid {
        width: calc(100% + 20px);
        gap: 20px;
    }

    .service-card {
        min-height: 299px;
        padding: 40px;
    }

    .service-card:nth-child(1),
    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        min-height: 328px;
    }

    .service-card:nth-child(3) {
        padding-bottom: 18px;
    }

    .service-card:nth-child(6) {
        padding-bottom: 22px;
    }

    .service-icon {
        margin-bottom: 34px;
    }

    .service-card p {
        font-size: 16px;
    }

    .home-services .section-intro {
        margin-bottom: 98px;
    }

    .home-center {
        padding: 42px 0;
    }

    .home-center-layout {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .home-center-image {
        display: none;
    }

    .home-center-copy {
        order: 1;
        padding: 0 0 70px;
        align-items: center;
        text-align: center;
    }

    .home-center-copy h2 {
        margin-bottom: 25px;
    }

    .home-center-copy > p:not(.section-kicker) {
        margin-bottom: 38px;
    }

    .journey-panel {
        position: static;
        order: 2;
        display: flex;
        width: 100%;
        min-height: 540px;
        padding: 35px 0;
        border-left: 20px solid var(--color-surface);
        flex-direction: column;
        justify-content: space-around;
    }

    .journey-panel > i {
        display: none;
    }

    .journey-step {
        gap: 14px;
    }

    .home-products {
        padding: 58px 0 56px;
    }

    .products-intro {
        margin-bottom: 50px;
    }

    .home-products-grid {
        gap: 20px;
    }

    .product-card {
        min-height: 0;
        padding: 40px 30px 36px;
    }

    .product-card img {
        width: 290px;
        height: 290px;
        margin-bottom: 30px;
    }

    .product-card p {
        max-width: 300px;
    }

    .home-hearing-test {
        min-height: 314px;
        padding: 47px 0 48px;
        background-position: center;
        background-size: cover;
    }

    .home-hearing-grid {
        display: flex;
        min-height: 220px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .home-hearing-grid h2 {
        max-width: 350px;
        margin-bottom: 32px;
    }

    .home-hearing-grid > .button {
        align-self: center;
    }

    .home-news {
        padding: 41px 0 167px;
    }

    .news-intro {
        margin-bottom: 50px;
    }

    .home-news-grid {
        gap: 34px;
    }

    .news-card {
        min-height: 0;
    }

    .news-card-image {
        height: 230px;
    }

    .news-card-body {
        min-height: 0;
        padding: 34px 30px 22px;
    }

    .news-card h3 {
        font-size: 21px;
    }

    .news-card time {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-footer {
        margin-top: 210px;
    }

    .appointment-wrap {
        top: -210px;
        margin-bottom: -210px;
    }

    .appointment-band {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .appointment-copy {
        min-height: 0;
        padding: 50px 40px 22px;
    }

    .appointment-copy h2 {
        margin-bottom: 20px;
    }

    .appointment-action {
        min-height: 0;
        padding: 18px 40px 50px;
    }

    .appointment-label-desktop {
        display: none;
    }

    .appointment-label-mobile {
        display: inline;
    }

    .footer-main {
        padding-top: 70px;
    }

    .footer-grid {
        padding-bottom: 74px;
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand {
        padding: 0;
    }

    .footer-logo {
        width: 230px;
        height: auto;
        margin: 0 auto 25px;
    }

    .footer-column h2 {
        margin-bottom: 20px;
    }

    .footer-column li + li {
        margin-top: 2px;
    }

    .footer-bottom {
        display: flex;
        padding: 32px 0 30px;
        flex-direction: column-reverse;
        gap: 25px;
        text-align: center;
    }

    .social-links {
        order: 3;
        justify-content: center;
    }

    .privacy-link {
        order: 2;
    }

    .footer-bottom p {
        order: 1;
        width: 100%;
        max-width: 360px;
        font-size: 14px;
        white-space: normal;
    }

    .page-hero {
        padding: 90px 0 70px;
    }

    .content-section,
    .section {
        padding: 70px 0;
    }

    .inner-hero {
        min-height: 260px;
    }

    .inner-hero h1 {
        font-size: 42px;
    }

    .inner-section,
    .inner-intro {
        padding: 65px 0;
    }

    .inner-section h2,
    .inner-intro h2,
    .consult-cta h2,
    .service-discover h2,
    .contact-social-band h2,
    .rechargeable-grid h2 {
        font-size: 36px;
    }

    .center-story-grid,
    .center-profile-grid,
    .center-mission-grid,
    .center-anniversary-grid,
    .rechargeable-grid,
    .service-detail-grid,
    .product-detail-grid,
    .tinnitus-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .center-story-media > img {
        height: 390px;
    }

    .experience-box {
        right: 0;
        bottom: -35px;
        width: 190px;
        min-height: 145px;
        padding: 23px;
    }

    .experience-box strong {
        font-size: 40px;
    }

    .center-story-copy {
        padding-top: 20px;
    }

    .center-values {
        margin-top: 75px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 35px;
    }

    .center-values > div,
    .center-values > div:nth-child(2) {
        min-height: 130px;
        padding: 15px 8px;
        border-right: 0;
    }

    .center-values h3 {
        font-size: 16px;
    }

    .center-profile-image img {
        height: 540px;
    }

    .career-timeline > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .center-mission-grid {
        min-height: 0;
    }

    .center-mission-copy {
        padding: 65px 0 0;
    }

    .center-mission-grid > img {
        height: 330px;
    }

    .center-anniversary-grid > img {
        height: 300px;
    }

    .consult-cta {
        padding: 65px 0 50px;
    }

    .consult-cta h2 br {
        display: none;
    }

    .service-detail,
    .product-detail,
    .rechargeable-band {
        padding: 65px 0;
    }

    .service-detail.is-reverse img,
    .product-detail.is-reverse img {
        order: 0;
    }

    .service-detail-grid > img,
    .rechargeable-grid img {
        height: 260px;
    }

    .service-detail-copy h2,
    .product-detail-copy h2,
    .tinnitus-content h2,
    .tinnitus-sidebar h2 {
        font-size: 24px;
    }

    .service-discover {
        padding: 65px 0 45px;
        text-align: center;
    }

    .rechargeable-grid {
        gap: 35px;
    }

    .product-detail-grid > img {
        width: 100%;
        max-width: 360px;
    }

    .tinnitus-content > img {
        height: 235px;
    }

    .tinnitus-sidebar {
        padding-left: 0;
    }

    .tinnitus-sidebar .button {
        width: auto;
    }

    .contacts-main {
        padding-bottom: 70px;
    }

    .contacts-main > .container > h2 {
        font-size: 38px;
    }

    .opening-hours > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-methods {
        margin-top: 75px;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-social-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-social-links {
        justify-content: center;
    }

    .contact-photo {
        padding-bottom: 25px;
    }

    .contact-consult-cta {
        padding-top: 25px;
    }
}

@media (max-width: 430px) {
    .home-center-copy h2,
    .products-intro h2,
    .news-intro h2 {
        font-size: 36px;
    }

    .product-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
