/*
Theme Name: Stefano Grimaldi
Description: Tema WordPress personalizzato
Version: 1.0
Text Domain: stefano-grimaldi
*/

:root {
                --ink: #293e38;
                --paper: #faf7f0;
                --sage: #e5e9df;
                --rust: #a4553b;
                --line: #d7d8cc;
            }
            * {
                box-sizing: border-box;
            }
            html {
                scroll-behavior: smooth;
                scroll-padding-top: 30px;
            }
            body {
                margin: 0;
                background: var(--paper);
                color: var(--ink);
                font-family: Arial, sans-serif;
                font-size: 16px;
                line-height: 1.65;
            }
            a {
                color: inherit;
                text-decoration: none;
            }
            button,
            summary,
            a {
                -webkit-tap-highlight-color: transparent;
            }
            a:focus-visible,
            summary:focus-visible {
                outline: 3px solid var(--rust);
                outline-offset: 5px;
            }
            h1,
            h2,
            h3,
            .brand,
            .quote {
                font-family: Georgia, serif;
                font-weight: 400;
                line-height: 1.12;
            }
            h1 {
                font-size: clamp(48px, 5.4vw, 80px);
                letter-spacing: -3px;
                margin: 24px 0;
            }
            h2 {
                font-size: clamp(36px, 4vw, 54px);
                letter-spacing: -1.5px;
                margin: 15px 0 24px;
            }
            h3 {
                font-size: 29px;
                margin: 18px 0;
            }
            p {
                margin: 0 0 22px;
            }
            .wrap {
                max-width: 1230px;
                margin: auto;
                padding: 0 54px;
            }
            .top {
                font-size: 10px;
                letter-spacing: 2px;
                text-align: center;
                padding: 8px;
                background: #e9e7de;
            }
            .nav {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 27px 0;
                border-bottom: 1px solid var(--line);
                gap: 25px;
            }
            .brand {
                font-size: 28px;
                line-height: 1;
            }
            .brand small {
                font:
                    10px Arial,
                    sans-serif;
                letter-spacing: 2.1px;
                display: block;
                margin-top: 11px;
                text-transform: uppercase;
            }
            .links {
                display: flex;
                gap: 28px;
                font-size: 13px;
                align-items: center;
            }
            .links a:hover {
                color: var(--rust);
            }
            .pill {
                border: 1px solid var(--ink);
                padding: 11px 20px;
                border-radius: 3px;
            }
            .eyebrow {
                text-transform: uppercase;
                letter-spacing: 2.3px;
                font-size: 10px;
                font-weight: 700;
            }
            .hero {
                display: grid;
                grid-template-columns: 1.05fr 1fr;
                gap: 65px;
                align-items: center;
                padding: 59px 0 48px;
            }
            .hero-copy {
                padding: 15px 0;
            }
            .hero p {
                max-width: 410px;
                font-size: 17px;
                color: #52605a;
            }
            .hero em {
                color: var(--rust);
                font-weight: 400;
            }
            .button {
                display: inline-flex;
                gap: 25px;
                align-items: center;
                background: var(--ink);
                color: #fff;
                padding: 15px 23px;
                font-size: 13px;
                border-radius: 3px;
            }
            .button:hover {
                background: #3f574d;
            }
            .micro {
                font-size: 11px !important;
                letter-spacing: 0.4px;
                margin-top: 15px !important;
            }
            .portrait {
                position: relative;
                padding: 0 20px 28px 0;
            }
            .portrait:after {
                content: "";
                position: absolute;
                right: 0;
                bottom: 0;
                width: 75%;
                height: 75%;
                background: #e5e9df;
                border-radius: 2px;
                z-index: -1;
            }
            .portrait img {
                width: 100%;
                height: 540px;
                object-fit: cover;
                object-position: 50% 36%;
                display: block;
                border-radius: 150px 3px 3px 3px;
            }
            .caption {
                position: absolute;
                bottom: 7px;
                left: 21px;
                font-family: Georgia, serif;
                font-style: italic;
                font-size: 15px;
            }
            .ribbon {
                display: flex;
                justify-content: space-between;
                gap: 15px;
                padding: 22px 0;
                border-top: 1px solid var(--line);
                border-bottom: 1px solid var(--line);
                font-size: 11px;
                letter-spacing: 1px;
                text-transform: uppercase;
            }
            .ribbon span + span:before {
                content: "•";
                color: var(--rust);
                margin-right: 36px;
            }
            .intro {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 80px;
                padding: 90px 0 75px;
                align-items: center;
            }
            .intro p {
                font-size: 16px;
                color: #52605a;
                margin-bottom: 0;
            }
            .service-bg {
                background: var(--sage);
                padding: 68px 0;
            }
            .section-head {
                display: flex;
                align-items: end;
                justify-content: space-between;
                gap: 40px;
                margin-bottom: 35px;
            }
            .section-head h2 {
                max-width: 600px;
                margin-bottom: 0;
            }
            .section-head p {
                max-width: 270px;
                font-size: 14px;
                margin: 0;
            }
            .psych {
                background: var(--paper);
                padding: 40px;
                display: grid;
                grid-template-columns: 1.2fr 1fr;
                gap: 48px;
                border-radius: 4px;
            }
            .icon {
                width: 56px;
                height: 56px;
                stroke: var(--ink);
                fill: none;
                stroke-width: 1.4;
            }
            .psych h3 {
                font-size: 38px;
            }
            .psych p {
                color: #52605a;
                max-width: 490px;
            }
            .text-link {
                display: inline-block;
                font-size: 13px;
                border-bottom: 1px solid var(--rust);
                padding-bottom: 5px;
            }
            .mini {
                border-top: 1px solid var(--line);
                padding: 16px 0;
            }
            .mini h4 {
                font-family: Georgia, serif;
                font-size: 23px;
                font-weight: 400;
                margin: 0 0 8px;
            }
            .mini p {
                font-size: 14px;
                margin-bottom: 7px;
            }
            .mini:first-child {
                margin-top: 8px;
            }
            .other {
                padding: 75px 0;
            }
            .other-heading {
                display: flex;
                align-items: center;
                gap: 20px;
                margin-bottom: 30px;
            }
            .other-heading h2 {
                font-size: 34px;
                margin: 0;
            }
            .other-heading:after {
                content: "";
                height: 1px;
                flex: 1;
                background: var(--line);
            }
            .cards {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 22px;
            }
            .card {
                padding: 30px 25px 25px;
                border: 1px solid var(--line);
                border-radius: 4px;
                display: flex;
                flex-direction: column;
                align-items: start;
            }
            .card:nth-child(2) {
                background: #f1e7dc;
                border-color: #e8dbcd;
            }
            .card p {
                font-size: 14px;
                color: #52605a;
            }
            .card .text-link {
                margin-top: auto;
            }
            .card h3 {
                min-height: 65px;
            }
            .card small {
                letter-spacing: 1.8px;
                font-size: 9px;
            }
            .quote-area {
                padding: 18px 0 70px;
                text-align: center;
            }
            .quote {
                font-size: clamp(25px, 3vw, 38px);
                max-width: 830px;
                margin: 20px auto;
                color: var(--rust);
            }
            .about {
                display: grid;
                grid-template-columns: 0.65fr 1.35fr;
                gap: 70px;
                padding: 65px 0;
                border-top: 1px solid var(--line);
            }
            .about h2 {
                font-size: 40px;
            }
            .about p {
                max-width: 650px;
            }
            .faq {
                padding-bottom: 70px;
            }
            details {
                border-bottom: 1px solid var(--line);
                padding: 18px 0;
            }
            summary {
                cursor: pointer;
                font-family: Georgia, serif;
                font-size: 23px;
            }
            details p {
                padding: 15px 0 0;
                max-width: 800px;
                font-size: 15px;
            }
            .contact {
                background: var(--ink);
                color: var(--paper);
                padding: 65px 0;
            }
            .contact .wrap {
                display: grid;
                grid-template-columns: 1.2fr 1fr;
                gap: 80px;
                align-items: center;
            }
            .contact p {
                color: #d7ded4;
            }
            .contact h2 {
                max-width: 550px;
            }
            .contact .button {
                background: var(--paper);
                color: var(--ink);
            }
            .contact-box {
                border-left: 1px solid #64736a;
                padding-left: 40px;
            }
            .contact-box p:last-child {
                font-size: 13px;
                margin: 0;
            }
            footer {
                padding: 25px 0;
                display: flex;
                justify-content: space-between;
                font-size: 11px;
                color: #66716b;
            }
            .note {
                font-size: 12px;
                color: #66716b;
            }
            .contact-note {
                font-size: 12px !important;
                color: #c9d2c8 !important;
            }
            @media (max-width: 850px) {
                .wrap {
                    padding: 0 25px;
                }
                .links {
                    gap: 15px;
                }
                .links a:nth-child(2),
                .links a:nth-child(3) {
                    display: none;
                }
                .hero {
                    gap: 30px;
                }
                .portrait img {
                    height: 450px;
                }
                h1 {
                    font-size: 54px;
                }
                .intro {
                    gap: 35px;
                }
                .psych {
                    gap: 30px;
                    padding: 28px;
                }
                .cards {
                    gap: 12px;
                }
                .card {
                    padding: 22px 17px;
                }
                .ribbon span + span:before {
                    margin-right: 15px;
                }
                .contact .wrap {
                    gap: 30px;
                }
            }
            @media (max-width: 600px) {
                .top {
                    font-size: 8px;
                    letter-spacing: 1px;
                }
                .nav {
                    padding: 21px 0;
                }
                .brand {
                    font-size: 23px;
                }
                .brand small {
                    font-size: 8px;
                }
                .links a:first-child {
                    display: none;
                }
                .links .pill {
                    font-size: 11px;
                    padding: 8px 12px;
                }
                .hero {
                    grid-template-columns: 1fr;
                    padding-top: 35px;
                    gap: 26px;
                }
                h1 {
                    font-size: 53px;
                    letter-spacing: -2px;
                }
                .hero-copy {
                    padding: 0;
                }
                .hero p {
                    font-size: 16px;
                }
                .portrait {
                    max-width: 390px;
                    width: 100%;
                    margin: auto;
                }
                .portrait img {
                    height: 420px;
                    border-top-left-radius: 110px;
                }
                .ribbon {
                    flex-wrap: wrap;
                    justify-content: center;
                    font-size: 9px;
                    gap: 8px 18px;
                }
                .ribbon span + span:before {
                    display: none;
                }
                .intro {
                    grid-template-columns: 1fr;
                    gap: 8px;
                    padding: 55px 0;
                }
                .service-bg {
                    padding: 45px 0;
                }
                .section-head {
                    display: block;
                }
                .section-head p {
                    max-width: 100%;
                    margin-top: 20px;
                }
                .psych {
                    grid-template-columns: 1fr;
                    gap: 12px;
                    padding: 25px;
                }
                .psych h3 {
                    font-size: 32px;
                }
                .other {
                    padding: 50px 0;
                }
                .other-heading h2 {
                    font-size: 28px;
                }
                .cards {
                    grid-template-columns: 1fr;
                    gap: 18px;
                }
                .card h3 {
                    min-height: 0;
                }
                .card {
                    padding: 27px;
                }
                .quote-area {
                    padding-bottom: 45px;
                }
                .about {
                    grid-template-columns: 1fr;
                    gap: 0;
                    padding: 40px 0;
                }
                .contact .wrap {
                    grid-template-columns: 1fr;
                    gap: 18px;
                }
                .contact-box {
                    padding-left: 0;
                    border: 0;
                }
                .contact {
                    padding: 45px 0;
                }
                footer {
                    gap: 20px;
                    flex-direction: column;
                }
                .faq {
                    padding-bottom: 45px;
                }
            }

            .hero-actions {
                display: flex;
                align-items: center;
                gap: 22px;
                flex-wrap: wrap;
            }
            .video-trigger {
                cursor: pointer;
                font: inherit;
            }
            .button.video-trigger {
                font-size: 13px;
                border: 0;
            }
            .video-section {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 65px;
                align-items: center;
                padding: 65px 0;
                border-bottom: 1px solid var(--line);
            }
            .video-section h2 {
                font-size: 42px;
            }
            .video-description p {
                font-size: 15px;
                color: #52605a;
            }
            .video-description button {
                background: none;
                color: var(--ink);
                border: 0;
                border-bottom: 1px solid var(--rust);
                padding: 0 0 5px;
                font-size: 14px;
            }
            .video-source {
                margin: 15px 0 0;
                font-size: 12px !important;
            }
            .video-poster {
                position: relative;
                display: block;
                width: 100%;
                aspect-ratio: 16/9;
                overflow: hidden;
                background: var(--ink);
                border: 0;
                border-radius: 4px;
                padding: 0;
                color: white;
            }
            .video-poster img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                opacity: 0.78;
            }
            .play {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                background: var(--paper);
                color: var(--ink);
                border-radius: 50%;
                width: 65px;
                height: 65px;
                display: grid;
                place-items: center;
                padding-left: 4px;
                font-size: 23px;
                box-shadow: 0 3px 25px #0004;
            }
            .poster-label {
                position: absolute;
                bottom: 15px;
                left: 18px;
                font-size: 10px;
                letter-spacing: 2px;
                text-shadow: 0 1px 5px #000;
            }
            .video-poster:hover .play {
                background: #eadbcb;
            }
            .video-dialog {
                width: min(1050px, 94vw);
                max-width: 1050px;
                border: 0;
                padding: 22px;
                background: var(--paper);
                color: var(--ink);
                border-radius: 5px;
                max-height: 94vh;
                overflow: auto;
            }
            .video-dialog::backdrop {
                background: #12241fea;
                backdrop-filter: blur(4px);
            }
            .modal-head {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 20px;
                margin-bottom: 15px;
            }
            .modal-head h2 {
                font-size: 25px;
                margin: 0;
                letter-spacing: 0;
            }
            .modal-close {
                background: transparent;
                border: 1px solid var(--line);
                border-radius: 3px;
                padding: 8px 13px;
                cursor: pointer;
                color: var(--ink);
            }
            .video-frame {
                aspect-ratio: 16/9;
                background: #111;
            }
            .video-frame iframe {
                width: 100%;
                height: 100%;
                border: 0;
            }
            .modal-footer {
                font-size: 12px;
                margin: 12px 0 0;
            }
            .modal-footer a {
                text-decoration: underline;
            }
            button:focus-visible {
                outline: 3px solid var(--rust);
                outline-offset: 5px;
            }
            @media (max-width: 600px) {
                .video-section {
                    grid-template-columns: 1fr;
                    gap: 22px;
                    padding: 40px 0;
                }
                .video-section h2 {
                    font-size: 35px;
                }
                .video-dialog {
                    padding: 14px;
                }
                .modal-head h2 {
                    font-size: 20px;
                }
                .hero-actions {
                    gap: 18px;
                }
            }
            .video-collection {
                display: grid;
                gap: 25px;
            }
            .second-interview {
                padding-top: 22px;
                border-top: 1px solid var(--line);
            }
            .second-interview > .eyebrow {
                display: block;
                margin-bottom: 12px;
            }
            .second-interview .video-source {
                font-size: 12px;
            }
            .video-section {
                align-items: start;
            }
            .video-description {
                padding-top: 20px;
            }
            @media (min-width: 851px) {
                .video-description {
                    position: sticky;
                    top: 35px;
                }
            }
            .video-poster img {
                object-position: 50% 28%;
                opacity: 0.68;
            }
            .second-interview .video-poster img {
                object-position: 50% 38%;
            }
            .poster-label {
                background: #293e38dc;
                padding: 5px 8px;
                left: 12px;
                bottom: 12px;
            }
            .studio-section {
                padding: 75px 0 35px;
            }
            .studio-heading {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 65px;
                align-items: center;
                margin-bottom: 30px;
            }
            .studio-copy p {
                font-size: 15px;
                color: #52605a;
            }
            .studio-copy p:last-child {
                margin-bottom: 0;
            }
            .studio-photo {
                margin: 0;
            }
            .studio-photo img {
                width: 100%;
                height: auto;
                display: block;
                border-radius: 4px;
            }
            .studio-photo figcaption {
                font:
                    italic 16px Georgia,
                    serif;
                padding: 14px 0;
                color: #66716b;
            }
            .links {
                gap: 22px;
            }
            @media (max-width: 600px) {
                .studio-section {
                    padding-top: 45px;
                }
                .studio-heading {
                    grid-template-columns: 1fr;
                    gap: 5px;
                }
                .studio-photo img {
                    aspect-ratio: 1.35;
                    object-fit: cover;
                    object-position: 52% center;
                }
                .links a[href="#studio"] {
                    display: none;
                }
            }
            .education {
                display: grid;
                grid-template-columns: 0.8fr 1.2fr;
                gap: 75px;
                background: var(--sage);
                padding: 45px;
                margin: 0 0 65px;
                border-radius: 4px;
            }
            .education h2 {
                font-size: 38px;
            }
            .education-intro > p {
                font-size: 15px;
                color: #52605a;
            }
            .education-list article {
                padding: 18px 0;
                border-top: 1px solid #c8cec0;
            }
            .education-list article:first-child {
                padding-top: 0;
                border-top: 0;
            }
            .education-field {
                font-size: 9px;
                letter-spacing: 1.8px;
                color: var(--rust);
                font-weight: bold;
            }
            .education-list h3 {
                font-size: 23px;
                line-height: 1.25;
                margin: 8px 0;
            }
            .education-list article p {
                font-size: 13px;
                color: #52605a;
                margin: 0;
            }
            .education-more {
                border-top: 1px solid #c8cec0;
                padding-top: 20px;
                font-size: 12px;
            }
            .education-more p:last-child {
                margin-bottom: 0;
            }
            @media (max-width: 850px) {
                .education {
                    gap: 35px;
                    padding: 30px;
                }
            }
            @media (max-width: 600px) {
                .education {
                    grid-template-columns: 1fr;
                    padding: 25px;
                    gap: 20px;
                    margin-bottom: 45px;
                }
                .education h2 {
                    font-size: 32px;
                }
                .education-list h3 {
                    font-size: 21px;
                }
            }
            .card .music-inc {
                font-family: Georgia, serif;
                font-size: 21px;
                line-height: 1.4;
                color: var(--rust);
                margin-bottom: 18px;
            }
            .inline-player {
                aspect-ratio: 16/9;
                background: #293e38;
                border-radius: 4px;
                overflow: hidden;
            }
            .inline-player iframe {
                display: block;
                width: 100%;
                height: 100%;
                border: 0;
            }
            .interview-item > .eyebrow {
                display: block;
                margin-bottom: 12px;
            }
            .albo-highlight {
                grid-column: 1/-1;
                border-bottom: 1px solid #bfc8b9;
                padding: 0 0 24px;
                margin-bottom: -35px;
            }
            .albo-highlight p {
                font-family: Georgia, serif;
                font-size: 27px;
                line-height: 1.4;
                margin: 12px 0 0;
            }
            .albo-highlight u {
                text-decoration-thickness: 1px;
                text-underline-offset: 6px;
            }
            .faq h2 {
                font-size: 40px;
            }
            .faq details p {
                line-height: 1.8;
            }
            @media (max-width: 850px) {
                .albo-highlight {
                    margin-bottom: -10px;
                }
            }
            @media (max-width: 600px) {
                .albo-highlight {
                    margin-bottom: 0;
                }
                .albo-highlight p {
                    font-size: 23px;
                }
                .faq h2 {
                    font-size: 32px;
                }
            }
            .reviews-section {
                padding: 50px 0 65px;
                display: grid;
                grid-template-columns: 1.2fr 1fr;
                gap: 75px;
                align-items: center;
                border-bottom: 1px solid var(--line);
            }
            .reviews-section h2 {
                font-size: 43px;
            }
            .reviews-section > div > p:not(.rating-number):not(.rating-stars):not(.rating-count):not(.rating-date) {
                font-size: 15px;
                color: #52605a;
                max-width: 520px;
            }
            .reviews-rating {
                background: var(--sage);
                border-radius: 4px;
                padding: 35px;
                text-align: center;
            }
            .rating-number {
                font:
                    80px Georgia,
                    serif;
                margin: 20px 0 0;
                line-height: 1;
            }
            .rating-number span {
                font:
                    18px Arial,
                    sans-serif;
                color: #66716b;
                margin-left: 8px;
            }
            .rating-stars {
                color: var(--rust);
                font-size: 25px;
                letter-spacing: 5px;
                margin: 10px 0;
            }
            .rating-count {
                font-size: 15px;
                margin: 0 0 22px;
            }
            .rating-date {
                font-size: 10px;
                line-height: 1.6;
                color: #66716b;
                margin: 0;
            }
            .mobile-menu {
                display: none;
            }
            .links {
                gap: 18px;
            }
            .nav {
                position: relative;
            }
            @media (max-width: 850px) {
                .links {
                    display: none;
                }
                .mobile-menu {
                    display: block;
                    border: 0;
                    padding: 0;
                }
                .mobile-menu summary {
                    font:
                        13px Arial,
                        sans-serif;
                    list-style: none;
                    border: 1px solid var(--ink);
                    padding: 10px 13px;
                    border-radius: 3px;
                }
                .mobile-menu summary::-webkit-details-marker {
                    display: none;
                }
                .mobile-menu nav {
                    position: absolute;
                    right: 0;
                    top: 85%;
                    min-width: 220px;
                    background: var(--paper);
                    border: 1px solid var(--line);
                    box-shadow: 0 8px 25px #293e381f;
                    z-index: 20;
                    padding: 10px 0;
                }
                .mobile-menu nav a {
                    display: block;
                    padding: 10px 20px;
                    font-size: 14px;
                }
                .mobile-menu nav a:hover {
                    background: var(--sage);
                }
                .reviews-section {
                    gap: 30px;
                }
            }
            @media (max-width: 600px) {
                .reviews-section {
                    grid-template-columns: 1fr;
                    gap: 25px;
                    padding: 35px 0 45px;
                }
                .reviews-section h2 {
                    font-size: 34px;
                }
                .reviews-rating {
                    padding: 28px;
                }
                .brand {
                    font-size: 22px;
                }
                .brand small {
                    font-size: 7px;
                    letter-spacing: 1.4px;
                }
            }
/* Evita overflow orizzontale */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

/* Container più fluido */
.wrap {
    width: 100%;
    max-width: 1230px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 54px);
    padding-right: clamp(20px, 4vw, 54px);
}

/* Titoli fluidi */
h1 {
    font-size: clamp(42px, 6vw, 80px);
    letter-spacing: clamp(-3px, -0.2vw, -1px);
}

h2 {
    font-size: clamp(32px, 4.5vw, 54px);
}

h3 {
    font-size: clamp(24px, 3vw, 38px);
}

/* Testi lunghi */
p,
h1,
h2,
h3,
h4,
a,
span {
    overflow-wrap: break-word;
}

/* Hero */
.hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero-copy,
.portrait {
    min-width: 0;
}

.portrait img {
    width: 100%;
    height: clamp(420px, 48vw, 540px);
}

/* Video */
.video-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.video-section > *,
.video-collection,
.video-description {
    min-width: 0;
}

/* Studio */
.studio-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.studio-photo img {
    max-width: 100%;
}

/* Percorsi */
.psych {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* Cards */
.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    min-width: 0;
}

/* Formazione */
.education {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

/* Recensioni */
.reviews-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* Contatti */
.contact .wrap {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .wrap {
        padding-left: 30px;
        padding-right: 30px;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        gap: 40px;
    }

    .portrait img {
        height: 470px;
    }

    .video-section {
        gap: 40px;
    }

    .studio-heading {
        gap: 40px;
    }

    .intro {
        gap: 45px;
    }

    .psych {
        gap: 30px;
    }

    .education {
        gap: 40px;
        padding: 35px;
    }

    .reviews-section {
        gap: 40px;
    }

    .contact .wrap {
        gap: 45px;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 850px) {

    /*
     * MENU
     */
    .links {
        display: none !important;
    }

    .mobile-menu {
        display: block;
    }

    .nav {
        padding: 20px 0;
    }

    .brand {
        font-size: 24px;
    }

    /*
     * HERO
     */
    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .hero p {
        max-width: 580px;
    }

    .portrait {
        width: min(100%, 600px);
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .portrait img {
        height: min(580px, 75vw);
        min-height: 400px;
    }

    /*
     * RIBBON
     */
    .ribbon {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px 25px;
    }

    .ribbon span + span::before {
        margin-right: 20px;
    }

    /*
     * VIDEO
     */
    .video-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 0;
    }

    .video-description {
        position: static !important;
        padding-top: 0;
        max-width: 650px;
    }

    /*
     * STUDIO
     */
    .studio-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .studio-copy {
        max-width: 650px;
    }

    /*
     * RECENSIONI
     */
    .reviews-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reviews-rating {
        max-width: 500px;
        width: 100%;
    }

    /*
     * INTRO
     */
    .intro {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 60px 0;
    }

    /*
     * SUPPORTO PSICOLOGICO
     */
    .psych {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /*
     * CARDS
     */
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card:last-child {
        grid-column: 1 / -1;
    }

    /*
     * CHI SONO
     */
    .about {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /*
     * FORMAZIONE
     */
    .education {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .albo-highlight {
        grid-column: auto;
        margin-bottom: 0;
    }

    /*
     * CONTATTI
     */
    .contact .wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-box {
        border-left: 0;
        border-top: 1px solid #64736a;
        padding-left: 0;
        padding-top: 30px;
    }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    /*
     * HEADER
     */
    .top {
        font-size: 8px;
        letter-spacing: 0.8px;
        line-height: 1.4;
        padding: 8px 12px;
    }

    .nav {
        padding: 16px 0;
    }

    .brand {
        font-size: 21px;
        max-width: calc(100% - 90px);
    }

    .brand small {
        font-size: 7px;
        letter-spacing: 1.2px;
        line-height: 1.5;
        margin-top: 7px;
    }

    .mobile-menu summary {
        font-size: 12px;
        padding: 8px 10px;
    }

    .mobile-menu nav {
        top: calc(100% + 5px);
        right: 0;
        width: min(280px, calc(100vw - 40px));
        min-width: 0;
    }

    /*
     * TYPOGRAPHY
     */
    h1 {
        font-size: clamp(42px, 13vw, 56px);
        line-height: 1.04;
        letter-spacing: -2px;
        margin-top: 18px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: clamp(31px, 9vw, 40px);
        line-height: 1.08;
    }

    h3 {
        font-size: 27px;
    }

    /*
     * HERO
     */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 35px;
        padding-bottom: 35px;
        gap: 30px;
    }

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

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

    .button {
        max-width: 100%;
        justify-content: center;
    }

    .portrait {
        padding-right: 12px;
        padding-bottom: 20px;
    }

    .portrait img {
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: 50% 36%;
        min-height: 0;
        border-radius: 90px 3px 3px 3px;
    }

    .caption {
        left: 12px;
        bottom: 0;
        font-size: 13px;
    }

    /*
     * RIBBON
     */
    .ribbon {
        padding: 18px 0;
        gap: 8px 14px;
        font-size: 9px;
    }

    .ribbon span + span::before {
        display: none;
    }

    /*
     * VIDEO
     */
    .video-section {
        padding: 45px 0;
        gap: 25px;
    }

    .video-section h2 {
        font-size: 34px;
    }

    .video-dialog {
        width: calc(100vw - 24px);
        max-height: 92vh;
        padding: 12px;
    }

    .modal-head {
        gap: 10px;
    }

    .modal-head h2 {
        font-size: 19px;
    }

    /*
     * STUDIO
     */
    .studio-section {
        padding: 45px 0 30px;
    }

    .studio-heading {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .studio-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .studio-photo figcaption {
        font-size: 14px;
    }

    /*
     * RECENSIONI
     */
    .reviews-section {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .reviews-section h2 {
        font-size: 34px;
    }

    .reviews-rating {
        padding: 25px 18px;
    }

    .rating-number {
        font-size: 64px;
    }

    .rating-stars {
        font-size: 21px;
        letter-spacing: 3px;
    }

    /*
     * INTRO
     */
    .intro {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    /*
     * PERCORSI
     */
    .service-bg {
        padding: 45px 0;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        max-width: none;
        margin-top: 18px;
    }

    .psych {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .psych h3 {
        font-size: 30px;
    }

    /*
     * CARD
     */
    .other {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .other-heading {
        gap: 12px;
    }

    .other-heading h2 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card,
    .card:last-child {
        grid-column: auto;
    }

    .card {
        padding: 25px 22px;
    }

    .card h3 {
        min-height: 0;
    }

    /*
     * CITAZIONE
     */
    .quote-area {
        padding: 10px 0 45px;
    }

    .quote {
        font-size: clamp(25px, 8vw, 34px);
    }

    /*
     * CHI SONO
     */
    .about {
        grid-template-columns: 1fr;
        padding: 45px 0;
    }

    .about h2 {
        font-size: 36px;
    }

    /*
     * FORMAZIONE
     */
    .education {
        grid-template-columns: 1fr;
        padding: 22px;
        margin-bottom: 45px;
        gap: 25px;
    }

    .education h2 {
        font-size: 32px;
    }

    .albo-highlight {
        margin-bottom: 0;
    }

    .albo-highlight p {
        font-size: 22px;
    }

    /*
     * FAQ
     */
    .faq {
        padding-bottom: 45px;
    }

    .faq h2 {
        font-size: 32px;
    }

    summary {
        font-size: 20px;
        line-height: 1.35;
        padding-right: 10px;
    }

    /*
     * CONTATTI
     */
    .contact {
        padding: 45px 0;
    }

    .contact .wrap {
        grid-template-columns: 1fr;
    }

    .contact-box {
        border-left: 0;
        border-top: 1px solid #64736a;
        padding-left: 0;
        padding-top: 25px;
    }

    /*
     * FOOTER
     */
    footer {
        flex-direction: column;
        gap: 12px;
        padding-top: 22px;
        padding-bottom: 22px;
    }
}

/* =========================================================
   SMARTPHONE PICCOLI
   ========================================================= */

@media (max-width: 380px) {

    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 40px;
    }

    .brand {
        font-size: 19px;
    }

    .brand small {
        font-size: 6.5px;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .psych,
    .card,
    .education {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* ========================================
   PAGINE INTERNE WORDPRESS
======================================== */

.internal-page {
    width: 100%;
    min-height: 60vh;
    padding: 90px 0 110px;
}

/* Contenitore principale */

/*.internal-page .wrap {
    width: min(100% - 48px, 1160px);
    margin: 0 auto;
}*/
.internal-page .wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

/* Articolo */

.page-article {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Intestazione */

.page-heading {
    margin-bottom: 45px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.035em;
    margin: 0;
}

/* Contenuto WordPress */

.page-body {
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.85;
}

.page-body p {
    margin: 0 0 24px;
}

.page-body h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin: 55px 0 25px;
}

.page-body h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 35px 0 18px;
}

/* Liste */

.page-body ul,
.page-body ol {
    padding-left: 25px;
    margin-bottom: 28px;
}

.page-body li {
    margin-bottom: 10px;
}

/* Immagini */

.page-body img {
    max-width: 100%;
    height: auto;
}

.page-body figure {
    max-width: 100%;
    margin: 35px 0;
}

.page-body figcaption {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 12px;
}

/* Video */

.page-body iframe {
    max-width: 100%;
}

/* Link */

.page-body a {
    text-underline-offset: 4px;
}

/* Citazioni */

.page-body blockquote {
    margin: 35px 0;
    padding: 20px 30px;
    border-left: 3px solid currentColor;
    font-style: italic;
}

/* Allineamenti Gutenberg */

.page-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-body .alignwide {
    max-width: 1100px;
}

.page-body .alignfull {
    width: 100%;
}

/* Contenuto vuoto */

.page-empty {
    text-align: center;
    padding: 80px 20px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {

    .internal-page {
        padding: 55px 0 75px;
    }

/*    .internal-page .wrap {
        width: min(100% - 36px, 1160px);
    }*/

    .page-heading {
        margin-bottom: 30px;
    }

    .page-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .page-body h2 {
        margin-top: 40px;
    }

}


/* ==========================================
   MUSICOTERAPIA - SEZIONE FOTOGRAFICA
========================================== */

.music-spotlight {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 55px;
    align-items: center;

    background: #f1e7dc;
    border-radius: 4px;

    padding: 48px;
    margin-top: 48px;
    margin-bottom: 15px;
}

/* Testi */

.music-spotlight-copy {
    min-width: 0;
}

.music-spotlight-copy .eyebrow {
    display: block;
    color: var(--rust);
    margin-bottom: 18px;
}

.music-spotlight-copy h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 3.8vw, 49px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin: 0 0 28px;
}

.music-spotlight-copy h2 em {
    color: var(--rust);
    font-weight: 400;
}

.music-spotlight-copy p {
    font-size: 15px;
    line-height: 1.85;
    color: #52605a;
    max-width: 480px;
    margin-bottom: 20px;
}

.music-spotlight-copy .text-link {
    margin-top: 12px;
}

/* Fotografia */

.music-spotlight-photo {
    margin: 0;
    width: 100%;
    min-width: 0;
}

.music-spotlight-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
}

.music-spotlight-photo figcaption {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    color: #66716b;

    margin-top: 13px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 850px) {

    .music-spotlight {
        grid-template-columns: 1fr 0.85fr;
        gap: 30px;
        padding: 30px;
    }

    .music-spotlight-photo img {
        height: 420px;
    }

    .music-spotlight-copy h2 {
        font-size: 35px;
    }

}

/* ==========================================
   SMARTPHONE
========================================== */

@media (max-width: 600px) {

    .music-spotlight {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 25px 22px;
        margin-top: 35px;
        margin-bottom: 0;
    }

    .music-spotlight-copy h2 {
        font-size: 36px;
        line-height: 1.12;
    }

    .music-spotlight-copy p {
        font-size: 15px;
        line-height: 1.8;
    }

    .music-spotlight-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;

        object-fit: cover;
        object-position: center 40%;
    }

    .music-spotlight-photo figcaption {
        font-size: 13px;
    }

}

/* ==========================================
   SMARTPHONE PICCOLI
========================================== */

@media (max-width: 380px) {

    .music-spotlight {
        padding: 22px 18px;
    }

    .music-spotlight-copy h2 {
        font-size: 32px;
    }

}

/* FOTO DENTRO LA CARD MUSICOTERAPIA */

.music-card-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 14px;
    align-items: start;
    margin: 8px 0 18px;
}

.music-card .music-inc {
    font-size: 18px;
    line-height: 1.45;
    margin: 0;
}

.music-card-photo {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
}

.music-card-photo img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    object-position: center 48%;
    transition: transform 0.3s ease;
}

.music-card-photo:hover img {
    transform: scale(1.05);
}

/* SCHERMI INTERMEDI */

@media (min-width: 601px) and (max-width: 1050px) {
    .music-card-intro {
        grid-template-columns: 1fr;
    }

    .music-card-photo {
        width: 110px;
    }
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .music-card-intro {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 15px;
    }

    .music-card-photo img {
        height: 150px;
    }
}

@media (max-width: 380px) {
    .music-card-intro {
        grid-template-columns: minmax(0, 1fr) 85px;
        gap: 10px;
    }

    .music-card-photo img {
        height: 120px;
    }
}

/* Collegamenti nella sezione contatti */

.contact-box a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: #a9b8ac;
    text-underline-offset: 4px;
}

.contact-box a:hover {
    color: #e8b79d;
}

.contact-box strong {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}
