
/*
 * GP Visual Arts
 * Landing Page Riversamenti
 * Personalizzazioni Solid State
 *
 * Palette A: prima sezione antracite
 * Palette B: seconda sezione antracite
 */

/* =========================================
   PALETTE
   ========================================= */

:root {
    --gp-white: #ffffff;
    --gp-light: #f2f2f2;
    --gp-dark: #242424;
    --gp-black: #111111;
}

/* =========================================
   STRUTTURA GENERALE
   ========================================= */

body {
    background-color: var(--gp-white);
    background-image: none;
    color: var(--gp-black);
}

/* Header */
#header {
    background-color: var(--gp-white);
    color: var(--gp-black);
}

#header a {
    color: var(--gp-black);
}

/* Banner */
#banner {
    background-color: #f2f2f2;
    background-image: none;
    color: var(--gp-black);
}

#banner h1,
#banner h2,
#banner p,
#banner a {
    color: var(--gp-black);
}

#banner h2 {
    border-bottom-color: rgba(17, 17, 17, 0.15);
}

/* =========================================
   SEZIONI - PALETTE DEFINITIVA
   ========================================= */

/* Sezioni scure */
#one.wrapper,
#three.wrapper,
#five.wrapper {
    background-color: #242424;
    background-image: linear-gradient(
        180deg,
        #242424 0%,
        #303030 50%,
        #242424 100%
    );
    color: #ffffff;
}

/* Sezioni chiare */
#two.wrapper,
#four.wrapper {
    background-color: #f2f2f2;
    background-image: linear-gradient(
        180deg,
        #f2f2f2 0%,
        #ffffff 50%,
        #f2f2f2 100%
    );
    color: #242424;
}

/* Testi scuri */
#one.wrapper h2,
#one.wrapper h3,
#one.wrapper p,
#one.wrapper a,
#three.wrapper h2,
#three.wrapper h3,
#three.wrapper p,
#three.wrapper a,
#five.wrapper h2,
#five.wrapper h3,
#five.wrapper p,
#five.wrapper a {
    color: #ffffff;
}

/* Testi chiari */
#two.wrapper h2,
#two.wrapper h3,
#two.wrapper p,
#two.wrapper a,
#four.wrapper h2,
#four.wrapper h3,
#four.wrapper p,
#four.wrapper a {
    color: #242424;
}

/* =========================================
   DIAGONALI
   ========================================= */

/* Sezioni antracite */
#one.wrapper::before,
#one.wrapper::after,
#three.wrapper::before,
#three.wrapper::after,
#five.wrapper::before,
#five.wrapper::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' fill='%23242424'/%3E%3C/svg%3E");
    box-shadow: none;
}

/* Sezioni grigio chiaro */
#two.wrapper::before,
#two.wrapper::after,
#four.wrapper::before,
#four.wrapper::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' fill='%23f2f2f2'/%3E%3C/svg%3E");
    box-shadow: none;
}

/* =========================================
   FOOTER - CONTATTI
   ========================================= */

#footer {
    background-color: #ffffff;
    background-image: linear-gradient(
        135deg,
        #ffffff 0%,
        #f2f2f2 100%
    );
    color: #242424;
}

#footer h2,
#footer h3,
#footer p,
#footer a,
#footer li,
#footer label {
    color: #242424;
}

#footer h2.major {
    border-bottom-color: rgba(17, 17, 17, 0.15);
}

/* =========================================
   GP VISUAL ARTS - VIDEO SLIDESHOW
   ========================================= */

#slideshow-details .gp-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 1.5em;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.5em;
    text-align: center;
}

#slideshow-details .gp-video-placeholder span {
    color: #cccccc;
    font-size: 0.85em;
}
/* GP VISUAL ARTS - GRIGLIA FORMATI */

#formats-details .gp-formats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em 1em;
    width: 100%;
    margin-top: 1.5em;
    text-align: center;
}

#formats-details .gp-formats-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3em;
    font-weight: 600;
    font-size: 0.9em;
}

@media screen and (max-width: 480px) {
    #formats-details .gp-formats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1em;
    }
}
/* Galleria dei formati video */

#formats-details .gp-formats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1.80em;
}

#formats-details .gp-formats-grid img {
    display: block;
    width: 100%;
    max-width: 65px;
    height: 35px;
    object-fit: contain;
    margin: 0 auto;
}

/* Loghi dei formati: monocromatici su sfondo scuro */
#formats-details .gp-formats-grid img {
    filter: brightness(0) invert(1);
}

/* MiniDVD: conserva i colori originali */
#formats-details .gp-formats-grid img[src$="Mini_DVD_logo_bianco.png"] {
    filter: none;

}

@media screen and (max-width: 480px) {
    #formats-details .gp-formats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Immagine circolare della sezione Audio */
#four.spotlight .image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

#four.spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Raccordo tra Audio e Come lavoriamo */
#five.wrapper::before {
    box-shadow: none;
}
/* Leggibilità della sezione Come lavoriamo */
#five p {
    color: rgba(255, 255, 255, 0.78);
}

/* Raccordo cromatico banner / prima sezione */
#one.wrapper::before {
    background-color: #f2f2f2;
}

/* Card Come lavoriamo su sfondo scuro */
#five.wrapper .features article {
    background-color: rgba(255, 255, 255, 0.055);
}

/* Slideshow: maggiore spazio sotto il video su mobile */
@media screen and (max-width: 736px) {
    #three #slideshow-details .gp-video-placeholder {
        margin-bottom: 2em;
    }
}

/* =========================================
   MODULO CONTATTI - CAMPI VISIBILI
   ========================================= */

#footer input[type="text"],
#footer input[type="email"],
#footer textarea {
    background-color: #ffffff;
    border: 1px solid #c8c8c8;
    box-shadow: none;
    color: #242424;
    border-radius: 4px;
}

/* Evidenziazione del campo selezionato */
#footer input[type="text"]:focus,
#footer input[type="email"]:focus,
#footer textarea:focus {
    border-color: #555555;
    box-shadow: 0 0 0 2px rgba(36, 36, 36, 0.10);
    outline: none;
}

/* Monogramma GP: dimensioni responsive */
#banner .logo {
    flex-shrink: 0;
    width: 130px;
}

#banner .logo img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 736px) {
    #banner .logo {
        width: 80px;
    }
}

/* Font storico GP Visual Arts */
@font-face {
    font-family: 'Glasket';
    src: url('../webfonts/glasket500.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

/* Nome del marchio nel banner */
#banner .brand h2 {
    font-family: 'Glasket', sans-serif;
    font-weight: normal;
    text-transform: none !important;
    letter-spacing: 0.35em;
    transform: scaleX(0.9);
    transform-origin: left center;
    font-size: 2.5em;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    top: 5px;
}

/* Marchio GP Visual Arts: affiancamento */
#banner .brand {
    display: flex;
    align-items: center;
    gap: 2em;
}

/* Font handwritten per lo slogan */
@font-face {
    font-family: 'Nothing You Could Do';
    src: url('../webfonts/NothingYouCouldDo-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Slogan del servizio */
#banner .inner > p {
    font-family: 'Nothing You Could Do', cursive;
    text-transform: none;
    font-size: 1.5em;
    letter-spacing: normal;
}

/* Allineamento slogan su desktop */
@media screen and (min-width: 737px) {
    #banner .inner > p {
        margin-left: calc(100px + 2em);
    }
}

/* Slogan: disposizione mobile */
@media screen and (max-width: 736px) {
    #banner .inner > p {
        margin-left: 0;
    }
}

/* Marchio: impedisce la divisione del nome su mobile */
@media screen and (max-width: 736px) {
    #banner .brand h2 {
        white-space: nowrap;
        font-size: 2em;
    }
}

/* Monogramma nell'header di navigazione */
#header h1 img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#header h1 a {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Centratura verticale del monogramma nella barra */
#header h1 {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Prima sezione: immagine perfettamente circolare */
#one.spotlight .image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

#one.spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VHS: transizione dal bianco e nero al colore */
#one.spotlight .image img {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

@media (hover: hover) {
    #one.spotlight .image:hover img {
        filter: grayscale(0%);
    }
}

@media (hover: none) {
    #one.spotlight .image img {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #one.spotlight .image img {
        transition: none;
    }
}

/* Bobine: immagine circolare */
#two.spotlight .image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

/* Bobine: proporzioni ed effetto bianco e nero */
#two.spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* Ritorno al colore su desktop */
@media (hover: hover) {
    #two.spotlight .image:hover img {
        filter: grayscale(0%);
    }
}

/* Colore originale sui dispositivi touch */
@media (hover: none) {
    #two.spotlight .image img {
        filter: none;
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    #two.spotlight .image img {
        transition: none;
    }
}

/* Fotografie: immagine circolare e proporzioni */
#three.spotlight .image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

#three.spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* Ritorno al colore al passaggio del mouse */
@media (hover: hover) {
    #three.spotlight .image:hover img {
        filter: grayscale(0%);
    }
}

/* Colori originali sui dispositivi touch */
@media (hover: none) {
    #three.spotlight .image img {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #three.spotlight .image img {
        transition: none;
    }
}

/* Audio: transizione dal bianco e nero al colore */
#four.spotlight .image img {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* Ritorno al colore su desktop */
@media (hover: hover) {
    #four.spotlight .image:hover img {
        filter: grayscale(0%);
    }
}

/* Colore originale sui dispositivi touch */
@media (hover: none) {
    #four.spotlight .image img {
        filter: none;
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    #four.spotlight .image img {
        transition: none;
    }
}

/* Mobile: colore attivato dalla posizione nello schermo */
@media screen and (max-width: 736px) {
    #one.spotlight .image img,
    #two.spotlight .image img,
    #three.spotlight .image img,
    #four.spotlight .image img {
        filter: grayscale(100%);
    }

    #one.spotlight .image.gp-in-focus img,
    #two.spotlight .image.gp-in-focus img,
    #three.spotlight .image.gp-in-focus img,
    #four.spotlight .image.gp-in-focus img {
        filter: grayscale(0%);
    }
}

/* Authoring: bianco e nero */
#five .features article .image img {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* Desktop: colore al passaggio del mouse */
@media (hover: hover) {
    #five .features article .image:hover img {
        filter: grayscale(0%);
    }
}

/* Mobile: colore quando la miniatura è al centro */
@media screen and (max-width: 736px) {
    #five .features article .image.gp-in-focus img {
        filter: grayscale(0%);
    }
}

/* WhatsApp: allineamento con le icone dei contatti */
#footer ul.contact li.gp-whatsapp {
    position: relative;
    padding-left: 3.5em;
}

#footer ul.contact li.gp-whatsapp img {
    position: absolute;
    left: 0.50em;
    top: 0.35em;
    width: 1.05em;
    height: 1.05em;
    object-fit: contain;
}

/* =========================================
   GP VISUAL ARTS - PLAYER AUDIO
   ========================================= */

#four .gp-audio-player {
    margin-top: 2em;
    padding: 1.5em;
    background: #eeeeee;
    border: 1px solid #dddddd;
    border-radius: 8px;
    color: #292929;
    text-align: left;
}

#four .gp-audio-current {
    margin-bottom: 1.5em;
}

#four .gp-audio-label {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666666;
}

#four .gp-audio-current h3 {
    margin: 0.4em 0 0;
    color: #292929;
    font-size: 1em;
}

/* Controlli di riproduzione */

#four .gp-audio-controls {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 1.5em;
}

#four #gp-audio-play {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #292929;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
}

#four #gp-audio-time,
#four #gp-audio-duration {
    font-size: 0.8em;
    white-space: nowrap;
    color: #555555;
}

#four #gp-audio-progress {
    flex: 1;
    min-width: 0;
    accent-color: #292929;
    cursor: pointer;
}

/* Playlist */

#four .gp-audio-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

#four .gp-audio-track {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    height: auto;
    min-height: 3em;
    padding: 0.8em 1em;
    background: #ffffff;
    color: #292929;
    border: 1px solid #dddddd;
    border-radius: 5px;
    box-shadow: none;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

#four .gp-audio-track:hover {
    background: #e2e2e2;
    color: #292929;
}

#four .gp-audio-track.is-active {
    background: #292929;
    border-color: #292929;
    color: #ffffff;
}

#four .gp-audio-track span:first-child {
    font-weight: bold;
    opacity: 0.6;
}

/* Nota dimostrativa */

#four .gp-audio-disclaimer {
    margin: 1.5em 0 0;
    font-size: 0.75em;
    color: #777777;
}

/* Smartphone */

@media screen and (max-width: 736px) {
    #four .gp-audio-player {
        padding: 1em;
    }

    #four .gp-audio-controls {
        gap: 0.5em;
    }

    #four .gp-audio-track {
        padding: 0.8em;
    }
}

/* Correzione colori delle tracce non selezionate */
#four .gp-audio-playlist button.gp-audio-track:not(.is-active),
#four .gp-audio-playlist button.gp-audio-track:not(.is-active) span {
    color: #292929 !important;
    -webkit-text-fill-color: #292929;
}

/* Mantiene bianco il testo della traccia selezionata */
#four .gp-audio-playlist button.gp-audio-track.is-active,
#four .gp-audio-playlist button.gp-audio-track.is-active span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

/* Pulsante invio modulo contatti */

#footer input[type="submit"] {
    background-color: #ffffff;
    color: #222222 !important;
    border: 1px solid #ffffff;
    box-shadow: none;
    -webkit-text-fill-color: #222222;
}

#footer input[type="submit"]:hover {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
}

/* Pulsante invio modulo contatti */

#footer input[type="submit"] {
    background: #292929 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid #292929 !important;
    box-shadow: none !important;
    border-radius: 5px;
}

#footer input[type="submit"]:hover {
    background: #444444 !important;
    border-color: #444444 !important;
}

/* Conferma invio modulo contatti */

#footer .gp-form-success {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

#footer .gp-form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #e0f8e9;
    color: #168447;
    font-size: 2rem;
    font-weight: bold;
}

#footer .gp-form-success h3 {
    color: #222222;
    margin-bottom: 0.75rem;
}

#footer .gp-form-success p {
    color: #444444;
    margin-bottom: 0;
    line-height: 1.7;
}


/* GP VISUAL ARTS - MENU */

#menu .inner {
    background: #242424;
}

/* Elimina il blu originale su hover e focus */
#menu .links a:hover,
#menu .links a:focus,
#menu .links a:active {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* Accessibilità da tastiera */
#menu .links a:focus-visible {
    outline: 2px solid #ffffff;
}


/* Allineamento verticale dei loghi nei riquadri */

.features article {
    display: flex;
    flex-direction: column;
}

.gp-service-formats {
    margin-top: auto;
    padding-top: 1em;
}

/* Copyright e crediti nel footer */
#footer .copyright {
    text-align: center;
    color: #666666 !important;
    border-top: 1px solid #dddddd;
}

#footer .copyright li {
    color: #666666 !important;
    border-left-color: #cccccc;
}

#footer .copyright li a {
    color: #666666 !important;
}

/* Bilanciamento dei titoli su mobile */
@media screen and (max-width: 736px) {
    h2.major {
        text-wrap: balance;
    }
}

/* Pulsante esempi audio su sfondo chiaro */
#audio-toggle {
    color: #222222 !important;
}

#audio-toggle:before {
    border-color: rgba(0, 0, 0, 0.2);
}

#audio-toggle:hover,
#audio-toggle:focus-visible {
    color: #666666 !important;
}

#audio-toggle:hover:before,
#audio-toggle:focus-visible:before {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Evidenziazione tattile su mobile */
a,
button,
input,
textarea,
select,
[role="button"] {
    -webkit-tap-highlight-color: rgba(128, 128, 128, 0.15);
}