:root {
    --font-main: 'Century Gothic', sans-serif;
    --color-bg: #f2ddf0;
    --color-text1: #435977;
    --color-text2: #4d045c;
    --color-card1: #d690cd;
    --color-card2: #e7b3e7;
    --color-card4: #e3c0e3;
}

/* Reset / Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text2);
    position: top;
}

h2 { font-size: clamp(1.25rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(.8rem, 1.5vw, 1.2rem); }
h6 { font-size: clamp(.65rem, 1vw, 1rem); }

p {
    font-size: clamp(.7rem, 1.2vw, 1.7rem);
    text-indent: 1.5rem;
}

em { font-weight: 600; }

a {
    font-size: clamp(.7rem, 1.2vw, 1.7rem);
    color: inherit;
    text-decoration: inherit;
}

a:hover { color: var(--color-text1); }
ul li { list-style: none; }

hr {
    width: 80%;
    margin: 0.5rem auto;
    border-color: var(--color-text2);
}

.imgpropic {
    width: 60%;
    height: auto;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.2);
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) 1fr;
    grid-template-rows: auto auto;
    min-height: 100vh;
    align-items: start;
}

.layout > .card2 { grid-column: 2; }

.menusx {
    grid-row: 1 / -1;
    background-color: var(--color-bg);
    font-size: 100%;
    padding: 1rem;
    color: var(--color-text2);
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

footer {
    font-family: Century Gothic;
    background-color: var(--color-card2);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

i.fa-solid {
    margin-right: 0.5rem;
    color: var(--color-text2);
}

/* CONSENSO COOKIE */

#cookie-banner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    /* sfondo scuro */
    background-color: rgba(253, 180, 249, 0.50);

    /* sfocatura sito */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

#cookie-banner .cookie-content {
    width: 90%;
    max-width: 600px;

    padding: 30px;

    background-color: #ffc6ff;
    color: #8311b0;

    border-radius: 12px;
    border: 1px solid #dddddd;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);

    box-sizing: border-box;
}

.cookie-content h3 {
    margin-top: 0;
}

.cookie-content p {
    line-height: 1.5;
}

.cookie-content a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;

    margin-top: 25px;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;

    cursor: pointer;
    font-size: 1rem;
}

#cookie-reject {
    background: #fe9af6;
    color: #000000;
}

#cookie-accept {
    background: #9d14ff;
    color: rgb(255, 255, 255);
}

.cookie-buttons button:hover {
    opacity: 0.85;
}

/* FORM RICHIESTA SEDUTA */
.form-seduta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.form-seduta input,
.form-seduta textarea {
    padding: 0.8rem;
    border: 1px solid var(--color-text2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-seduta textarea { resize: vertical; }

.form-seduta button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--color-card2);
    color: var(--color-text2);
    font-weight: bold;
}

label {
    display: inline-block;
    width: 150px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: bold;
}

.privacy-check { gap: 0.5rem; }
.privacy-check input { margin-top: 0.2rem; }

/* popup invio e grazie */
.popup.hidden { display: none; }

.popup {
    position: fixed;
    inset: 0;
    background: var(--color-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: var(--color-card2);
    padding: 2rem;
    border-radius: 12px;
    max-width: 420px;
    text-align: center;
}

.popup-content button { margin-top: 1rem; }

/* cards contenitor */
.card1 {
    background-color: var(--color-card1);
    color: var(--color-text1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px;
    border-color: var(--color-text2);
    border-radius: 15px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.2);
}

.card2 {
    background-color: var(--color-card1);
    color: var(--color-text2);
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.2);
}

.card3 {
    background-color: var(--color-card2);
    color: var(--color-text2);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.2);
}

.card4 {
    background-color: var(--color-card4);
    color: var(--color-text2);
    width: 80%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 10px 2px rgba(0, 0, 0, 0.2);
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.flex-column { display: flex; flex-direction: column; }
.grid2c { grid-template-columns: 1fr 1fr; }
.gap { gap: 1rem; }
.center { justify-content: center; align-items: center; text-align: center; }
.justify-between { justify-content: space-between; }

.text-sm { font-size: 0.8rem; }
.text-nm { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.italic { font-style: italic; }
.strong { font-weight: bold; }

.m1 { margin: 1rem; }
.m2 { margin: 2rem; }
.mt1 { margin-top: 1rem; }
.mb1 { margin-bottom: 1rem; }
.ml1 { margin-left: 1rem; }
.mr1 { margin-right: 1rem; }
.p1 { padding: 1rem; }
.p2 { padding: 2rem; }

/* Scrollbar */
* {
    scrollbar-width: 2rem;
    scrollbar-color: var(--color-card4) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
    background: var(--color-card1);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover { background: var(--color-text2); }

/* Photo Gallery */
.studio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.studio-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.studio-gallery img:hover { transform: scale(1.2); }

/* RECENSIONI ---------------------------------------------------- */

#apri-recensione {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;

    background-color: var(--color-card1);
    color: var(--color-text2);

    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;
}

#apri-recensione:hover {
    background-color: var(--color-text2);
    color: var(--color-bg);
}

/* contenitore */
#lista-recensioni {
    width: 100%;
    box-sizing: border-box;
}

/* pulsante recensione*/
.recensione-azioni {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#apri-recensione {
    cursor: pointer;
}

/* popup */
.popup-recensione {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(253, 180, 249, 0.50);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* popup conferma invio */
.popup-conferma {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
}

.popup-conferma-contenuto {
    width: 90%;
    max-width: 450px;
    padding: 30px;
    background-color: #ffc6ff;
    color: #8311b0;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    text-align: center;
    box-sizing: border-box;
}

.popup-conferma-contenuto h2 {
    margin-bottom: 20px;
}

.popup-conferma-contenuto p {
    margin-bottom: 25px;
    text-indent: 0;
    line-height: 1.4;
}

.popup-conferma-contenuto button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-card1);
    color: var(--color-text2);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.popup-conferma-contenuto button:hover {
    background-color: var(--color-text2);
    color: var(--color-bg);
}

#invia-recensione {
    align-self: center;
    margin-top: 10px;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-card1);
    color: var(--color-text2);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

#invia-recensione:hover {
    background-color: var(--color-text2);
    color: var(--color-bg);
}

#invia-recensione:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* classi aggiuntive con JS*/

.popup-recensione.attivo {
    display: flex;
}


.popup-recensione-contenuto {
    position: relative;

    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #ffc6ff;
    color: #8311b0;
    border-radius: 12px;
    border: 1px solid #dddddd;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}


/* chiude con X */
.popup-recensione-chiudi {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: var(--color-card1);
    color: var(--color-text2);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;
}

.popup-recensione-chiudi:hover {
    background-color: var(--color-text2);
    color: var(--color-bg);
}

/* form recensione */

#form-recensione {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#form-recensione > label:not(.privacy-check) {
    width: 100%;
}

#form-recensione input[type="text"],
#form-recensione textarea {
    width: 100%;
    box-sizing: border-box;
}

#form-recensione .privacy-check {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: normal;
    white-space: nowrap;
}

#form-recensione .privacy-check input {
    margin: 0;
    flex-shrink: 0;
}

#form-recensione .privacy-check a {
    font-size: inherit;
    font-weight: bold;
    text-decoration: underline;
}

/* Honeypot - grazie chatGPT XD */

.campo-website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 375px) {
    .layout { grid-template-columns: 1fr; }
    .menusx { position: static; height: auto; }
}

@media (max-width: 768px) {
    .layout { grid-template-columns: 1fr; }
    .menusx { position: static; height: auto; }
}

.video-responsive {
    width: min(100%, 800px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.video-responsive iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

iframe { max-width: 100%; }
