/* =========================================================
   Luca Rigon — sito minimal
   Unico foglio di stile condiviso da tutte le pagine
   ========================================================= */

:root {
    --black: #111;
    --gray: #666;
    --light-gray: #e8e8e8;
    --lighter-gray: #f7f7f7;
    --white: #fff;
    --max-width: 1120px;
    --text-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

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

a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    opacity: .65;
}

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

/* Header / navigazione */

.site-header {
    padding: 28px 0;
    border-bottom: 1px solid var(--light-gray);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: var(--black);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    font-size: 15px;
}

.nav a[aria-current="page"] {
    font-weight: 700;
}

/* Tipografia */

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.1;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(44px, 7vw, 78px);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: 24px;
}

.lead {
    max-width: var(--text-width);
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.4;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--gray);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-personal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 55px;
    align-items: center;
}

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

.hero-portrait {
    width: 280px;
    justify-self: end;
}

.hero-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.muted {
    color: var(--gray);
}

/* Sezioni */

.hero {
    padding: 110px 0 90px;
}

.section {
    padding: 80px 0;
    border-top: 1px solid var(--light-gray);
}

.narrow {
    max-width: var(--text-width);
}

/* Home */

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

.service {
    padding-top: 22px;
    border-top: 2px solid var(--black);
}

.service p {
    color: var(--gray);
}

/* Portfolio */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 36px;
}

.video-card {
    min-width: 0;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    background: #eee;
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h2 {
    margin-bottom: 10px;
    font-size: 25px;
}

.video-card p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
}

.clients {
    columns: 2;
    column-gap: 50px;
}

.clients a {
    display: block;
    margin-bottom: 5px;
}

/* Contatti */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 70px;
    align-items: start;
}

.contact-form {
    max-width: 680px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: var(--black);
    font: inherit;
    font-size: 16px;
}

.form-group textarea {
    min-height: 170px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--black);
    outline-offset: -2px;
    border-color: var(--black);
}

.submit-button,
.whatsapp-button {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid var(--black);
    border-radius: 0;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover,
.whatsapp-button:hover {
    opacity: .75;
}

.whatsapp-button {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    margin-top: 15px;
}

.whatsapp-button:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
    opacity: 1;
}

.contact-details {
    padding-top: 5px;
}

.contact-details h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.contact-details p {
    margin: 0 0 28px;
}

.contact-details .email {
    font-size: 20px;
}

/* Footer */

.site-footer {
    padding: 45px 0;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-inner a {
    color: var(--gray);
}

/* Responsive */

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

    .site-header .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        gap: 16px;
    }

    .hero {
        padding: 75px 0 65px;
    }

    .hero-personal {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-portrait {
        width: 260px;
        max-width: 100%;
        justify-self: start;
    }

    .section {
        padding: 60px 0;
    }

    .home-services,
    .video-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        gap: 40px;
    }

    .about-photo {
        max-width: 320px;
    }

    .clients {
        columns: 1;
    }
}

/* Lavoro in evidenza homepage */

.featured-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 60px;
    align-items: center;
}

.featured-work-copy {
    max-width: 560px;
}

.featured-work-video {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #eee;
    overflow: hidden;
}

.featured-work-video video {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 800px) {
    .featured-work-video {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .featured-work-video video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 800px) {
    .featured-work {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}







/* Recensioni Google */
.reviews-section {
    background: #fff;
}

.reviews-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.google-rating {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    font-size: 15px;
}

.google-rating strong {
    font-size: 24px;
    font-weight: 600;
}

.google-stars,
.review-stars {
    color: #111;
    letter-spacing: 2px;
    font-size: 15px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    padding: 30px;
    border: 1px solid var(--light-gray);
    background: #fff;
}

.review-card p {
    margin: 20px 0 26px;
    font-size: 16px;
    line-height: 1.65;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
}

.reviews-cta {
    margin-top: 30px;
    text-align: center;
}

.reviews-cta a {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 800px) {
    .reviews-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 30px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 24px;
    }
}

.location-line {
    margin: 12px 0 0;
    color: var(--gray);
    font-size: 13px;
}

/* Clienti — elenco con link + loghi */
.clients-section {
    overflow: hidden;
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-width: 1050px;
    margin: 35px 0 45px;
    padding: 0;
    list-style: none;
}

.clients-list li {
    margin: 0;
}

.clients-list li:not(:last-child)::after {
    content: "·";
    margin-left: 18px;
    color: #aaa;
}

.clients-list a {
    color: var(--black);
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: #bbb;
    text-underline-offset: 4px;
}

.clients-list a:hover {
    text-decoration-color: var(--black);
}

.client-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    margin-top: 10px;
    background: #fff;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.client-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: clients-scroll 42s linear infinite;
    -webkit-animation: clients-scroll 42s linear infinite;
}

.client-logo {
    width: 190px;
    height: 100px;
    flex: 0 0 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    background: #fff;
}

.client-logo img {
    display: block;
    width: auto;
    max-width: 135px;
    height: 48px;
    object-fit: contain;
}

.client-marquee:hover .client-track {
    animation-play-state: paused;
}

@keyframes clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .client-track {
        animation: clients-scroll 42s linear infinite;
        -webkit-animation: clients-scroll 42s linear infinite;
    }
}

@media (max-width: 800px) {
    .client-marquee {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
    }

    .client-track {
        width: max-content;
        min-width: max-content;
        animation: clients-scroll 34s linear infinite !important;
        -webkit-animation: clients-scroll 34s linear infinite !important;
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }

    .clients-list {
        gap: 7px 14px;
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .clients-list li:not(:last-child)::after {
        margin-left: 14px;
    }

    .clients-list a {
        font-size: 14px;
    }

    .client-logo {
        width: 155px;
        height: 85px;
        flex-basis: 155px;
        padding: 16px 20px;
    }

    .client-logo img {
        max-width: 112px;
        height: 38px;
    }

    .client-track {
        animation-duration: 34s;
    }
}

.clients-list-section .clients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
}

.clients-list-section .clients a {
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.clients-section {
    padding-top: 25px;
}


/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 3px 16px rgba(0,0,0,.14);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(#111 var(--scroll-progress, 0%), rgba(0,0,0,.12) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    pointer-events: none;
}

.back-to-top span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 700px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .back-to-top span {
        font-size: 18px;
    }
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 700ms ease,
                transform 700ms cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@media (max-width: 700px) {
    .scroll-reveal {
        transform: translate3d(0, 22px, 0);
        transition: opacity 600ms ease,
                    transform 600ms cubic-bezier(.22, .61, .36, 1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* WhatsApp: verde anche su smartphone.
   Mantiene lo stesso aspetto su tutte le pagine e impedisce override mobile. */
@media (max-width: 800px) {
    .whatsapp-button {
        background: #25D366 !important;
        border-color: #25D366 !important;
        color: #fff !important;
    }

    .whatsapp-button:hover,
    .whatsapp-button:focus,
    .whatsapp-button:active {
        background: #1ebe5d !important;
        border-color: #1ebe5d !important;
        color: #fff !important;
        opacity: 1 !important;
    }
}


/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    background: var(--white);
    border: 1px solid var(--light-gray);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 22px;
}

.cookie-banner-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-banner h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.cookie-banner p {
    margin: 0 0 8px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    max-width: 760px;
}

.cookie-banner a {
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-button {
    border: 1px solid var(--black);
    background: var(--black);
    color: var(--white);
    padding: 10px 18px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.cookie-button-secondary {
    background: var(--white);
    color: var(--black);
}

.cookie-button:hover {
    opacity: .75;
}

.cookie-settings {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }

    .cookie-banner-inner {
        display: block;
    }

    .cookie-actions {
        margin-top: 16px;
    }

    .cookie-button {
        flex: 1;
    }
}
