/*
Theme Name:  MT Theme
Theme URI:   https://marketingtherapy.eu///
Author:      Marketing Therapy
Author URI:  https://marketingtherapy.eu///
Description: Il mio tema custom.
Version:     1.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:        custom-theme, responsive
Text Domain: mttheme
*/
/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
:root {
  font-size: 62.5%;
}
/* Color */
:root {

  --primary: #1a2f2d;
  --secondary: #4b6b5c;
  --accent: #a19f4b;

  --text-main-light: #b7bea9;
  --text-main-dark: #271e12;
  --bg-color-light: #b7bea9;
  --bg-color-dark: #271e12;
}
html {
    scroll-behavior: smooth;
}
/* Preset */
@font-face {
    font-family: 'TitleSemiBold';
    src: url('assets/fonts/Oswald-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TitleMedium';
    src: url('assets/fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TitleRegular';
    src: url('assets/fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TitleExtraLight';
    src: url('assets/fonts/Oswald-ExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
h1.wp-block-heading {
    font-family: 'TitleExtraLight';
    text-transform: uppercase;
    font-size: clamp(3rem, 5vw, 8rem)!important;
    letter-spacing: .5rem;
    
}
.color-primary{
    color: var(--primary);
}
h2, h3, h4, h5, h6{
    font-family: 'TitleRegular';
    font-weight: 300;
    font-size: clamp(3rem, 5vw, 4rem)!important;
    line-height: 3.5rem;
}
p, a, ul li {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    text-wrap: balance;
}
ul li::marker{
    color: var(--accent);
}
figure img{
    border-radius: 3px;
}
.heading-light{
    color: var(--text-main-light);
}
.heading-dark{
    color: var(--text-main-dark);
}
.background-light{
    background-color: var(--bg-color-light);
}
.background-dark{
    background-color: var(--bg-color-dark);
}
.text-light{
    color:var(--text-main-light);
}
.text-dark{
    color:var(--text-main-dark);
}
/* La larghezza della barra */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: var(--accent)!important;
    border-radius: 10px;
    border: 3px solid var(--accent)!important;
}
/* Section */
.section{
    width: 100%;
    max-width:100%;
    position: relative;
}
.container{
    width: 90%;
    max-width: 1400px;
    margin-inline:auto;
    position: relative;
}
.background-pattern{
    background-image: url(/wp-content/uploads/2025/12/Modulo_Odontolistika-1.png);
    background-repeat: repeat;
    background-size: 200px auto;
}
.container-flex{
    display: flex;
    justify-content: center;
}
.bullet-flex{
    display: flex;
    padding-inline: 10px;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}
.container-grid{
    gap: 30px;
  }
.focus-grid{
    gap: 30px;
    grid-template-columns: repeat(10, 1fr);
  }
.focus-grid > .cover:nth-child(1) {
        grid-column: span 4;
    }
.focus-grid > .cover:nth-child(2) {
        grid-column: span 6;
    }
.focus-grid > .cover:nth-child(3) {
        grid-column: span 6;
    }
.focus-grid > .cover:nth-child(4) {
        grid-column: span 4;
    }
.cover{
        border-radius: 1rem;
        box-shadow: 9px 10px 32px -13px rgba(0,0,0,1);
    }
/* Space */
.container-block-m {
    padding-block: 10rem;
}
.container-block-xl{
    padding-block: 20rem;
}
.space-top-s{
    padding-top: 3rem;
}
.space-top-m{
    padding-top: 10rem;
}
.padding-s{
    padding: 2rem;
}
.padding-m{
    padding: 5rem;
}
.padding-l{
    padding: 10rem;
}
/* filter */
.filter-blur{
    backdrop-filter: blur(20px);
    --webkit--backdrop-filter: blur(20px);
}
.border-box{
    border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
    padding: 3rem;
    border-radius: 5px;
}
.border-blur{
    border: 1px solid rgba(255, 255, 255, 0.21);
    padding: 100px 20px;
    box-shadow: 9px 10px 32px -13px rgba(0,0,0,1);
    -webkit-box-shadow: 9px 10px 32px -13px rgba(0,0,0,1);
    -moz-box-shadow: 9px 10px 32px -13px rgba(0,0,0,1);
    border-radius: 10px;
}
/* button */
.button a {
    display: inline-block;
    font-family: 'TitleMedium', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 30px;
    padding: 12px 24px;
    color: var(--text-main-dark);
    background: linear-gradient(to top, #ffffff 50%, var(--accent) 50%);
    background-size: 100% 200%;
    background-position: top;
    transition: all 0.3s ease-out;
}

.button a:hover {
    background-position: bottom; 
    color: var(--accent); 
    box-shadow: 9px 10px 32px -13px rgba(0,0,0,0.8);
}
/* SVG */
.mt-svg-decoration{
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(20rem, 20vw, 35rem);
    height: auto;
    z-index: -1;
    pointer-events: none;
}
.mt-svg-decoration-2{
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(20rem, 20vw, 35rem);
    height: auto;
    z-index: -1;
    pointer-events: none;
}
.mt-svg-decoration svg {
    width: clamp(20rem, 20vw, 35rem);
    height: auto;
    display: block;
}
.svg-row{
    display: block;
    width: clamp(20rem, 20vw, 35rem);
    margin-inline: auto;
}
/* Sidebar */
.content-area {
    display: flex;
    gap: 30px;
}
.main-content {
    flex: 1;
}
.widget-area {
    width: 300px;
}
.post-thumbnail img {
    max-width: 100%;
    height: auto;
}
/* Contenuto */
article.post {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
}
/* menu */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 50px;
  background-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  border-radius: 50px;
  overflow: hidden;
  isolation: isolate;
}

/* Right-to-left animation overlay */
.header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffffbe;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 50%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%) scale(0.85);
  opacity: 0;
  border-radius: 50px;
  transition: transform 0.5s ease, opacity 0.5s ease, scale 0.5s ease;
  z-index: -1;
}
.header.scrolled .header-container::before {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.logo{
    z-index: 2;
    position: relative;
}
.logo img {
  width: 70px;
  height: auto;
  display: block;
  cursor: pointer;
}
.desktop-nav {
  display: flex;
  gap: 32px;
}
.main-navigation ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
}
.main-navigation ul li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 18px;
  transition: color 0.3s ease;
}
/* ANIMATION */
/* fade up */
@keyframes fade-soft {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-scroll {
    animation: fade-soft linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}
/* fade up delay */
@keyframes fade-soft-delay {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-scroll-delay {
    animation: fade-soft-delay linear both;
    animation-timeline: view();
    animation-range: entry 50% cover 30%;
}
/* fade up delay 2 */
@keyframes fade-soft-delay-2 {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-scroll-delay-2 {
    animation: fade-soft-delay-2 linear both;
    animation-timeline: view();
    animation-range: entry 70% cover 30%;
}
/* fade in */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.fade-in {
    animation: fade-in linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}
/* hero fade */
@keyframes hero-fade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-fade {
    opacity: 0;
    animation: hero-fade 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Form */
.text-contact{
    font-size: clamp(6rem, 5vw, 10rem)!important;
    color: var(--text-main-light);
}

/* --- STILE ESTETICO FORM (I TUOI COLORI/FONT) --- */

/* 1. Contenitore Label */
.wpcf7 label {
    font-size: 1.6rem;
    color: var(--text-main-light);
    width: 100%;
    font-weight: 300;
    margin-bottom: 5px;
    display: block;
}

/* 2. Campi Input e Textarea */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--accent);
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Effetto Focus */
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    outline: none;
    border-bottom-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

/* 3. Textarea Specifica */
.wpcf7-form-control.wpcf7-textarea {
    height: 120px;
    resize: vertical;
}

/* 4. Bottone Invia */
.wpcf7 input[type="submit"] {
    width: 200px;
    background-color: var(--accent);
    color: var(--bg-color-dark);
    border: none;
    padding: 15px 30px;
    font-family: 'TitleMedium', sans-serif;
    text-transform: uppercase;
    font-size: 1.6rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    border-radius: 50px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #fff;
    color: var(--bg-color-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
}

/* 5. Placeholder */
::placeholder { 
  color: rgba(183, 190, 169, 0.5);
  opacity: 1; 
}


/* --- LAYOUT SPECIFICO FORM MOMENTANEO --- */

/* --- 1. STILE ESTETICO ICONE E TESTI (Base) --- */
/* Questo serve per rendere belle le icone e i testi, indipendentemente dalla griglia */

/* Resetta il blocco media-text per farlo stare negli spazi stretti */
.container-form-grid .wp-block-media-text {
    margin-bottom: 0 !important;
    align-items: center; /* Centra icona e testo verticalmente */
    grid-template-columns: 50px auto !important; /* Forza l'icona a 50px fisso */
}

/* L'icona (Immagine) */
.container-form-grid .wp-block-media-text__media {
    width: 50px !important;
    margin-right: 15px; /* Spazio tra icona e testo */
}

.container-form-grid .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    /* Opzionale: se le icone non sono già bianche */
    /* filter: brightness(0) invert(1); */ 
}

/* Titoli (H4 - Dove siamo, Orari...) */
.container-form-grid h4 {
    color: var(--accent);
    margin-bottom: 2px;
    font-size: 1.8rem !important;
    text-transform: uppercase;
    font-family: 'TitleMedium', sans-serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Paragrafi (Indirizzi, numeri...) */
.container-form-grid p {
    color: var(--text-main-light);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
    opacity: 0.9;
}


/* --- 2. LAYOUT GRIGLIA FORM + CONTATTI (Logica Strutturale) --- */

.container-form-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 Colonne totali */
    gap: 40px; 
    align-items: center; /* Centra verticalmente il blocco contatti rispetto al form */
}

/* A. IL FORM (Sinistra) - 60% */
.container-form-grid > .wpcf7 {
    grid-column: span 6;
}

/* B. I CONTATTI (Destra) - 40% */
/* Qui applichiamo la modifica per averne 2 sopra e 2 sotto */
.container-form-grid > .wp-block-group {
    grid-column: span 4;
    padding-left: 20px;
    
    /* --- LA MAGIA 2x2 --- */
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Crea 2 colonne interne (2 elementi per riga) */
    gap: 100px; /* Spazio tra le icone */
}


/* CONFIGURAZIONE MOBILE (Tablet e Smartphone) */
/* Si attiva sotto i 1024px */
@media (max-width: 1024px) {
    
.container-form-grid {
        /* Il contenitore principale diventa una colonna unica */
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* A. IL FORM: Prende tutto lo spazio */
    .container-form-grid > .wpcf7 {
        grid-column: span 1;
        width: 100%;
    }

    /* B. I CONTATTI: Prende tutto lo spazio */
    .container-form-grid > .wp-block-group {
        grid-column: span 1;
        padding-left: 0;
        
        /* Li mettiamo in colonna uno sotto l'altro */
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%; /* Larghezza piena */
    }

    /* C. SINGOLO BLOCCO CONTATTO (Icona + Testo) */
    .container-form-grid .wp-block-media-text {
        display: grid !important;
        /* LA CORREZIONE È QUI: 60px per l'icona, 1fr (tutto il resto) per il testo */
        grid-template-columns: 60px 1fr !important; 
        align-items: center !important; 
        width: 100% !important;
        margin-bottom: 0 !important;
        gap: 0 !important; /* Gestiamo lo spazio con la colonna */
    }

    /* L'ICONA: La forziamo nella Colonna 1 */
    .container-form-grid .wp-block-media-text__media {
        grid-column: 1 !important;
        grid-row: 1 !important; /* Stessa riga del testo */
        width: 50px !important; /* Larghezza icona */
        margin: 0 !important;   /* Reset margini */
    }
    
    /* IL TESTO: Lo forziamo nella Colonna 2 */
    .container-form-grid .wp-block-media-text__content {
        grid-column: 2 !important;
        grid-row: 1 !important; /* Stessa riga dell'icona */
        padding: 0 !important;
        text-align: left !important; /* Allineato a sinistra vicino all'icona */
    }
}

/* Footer */
.site-footer {
    background-color: var(--bg-color-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
.main-navigation ul li a:hover {
    color: var(--secondary);
}
/* mobile */
@media (max-width: 1250px) {
.container-grid{
    grid-template-columns: 1fr;
  }
.focus-grid{
    grid-template-columns: 1fr;
  }
.focus-grid > .cover{
    grid-column: span 6!important;
  }
.container-block-xl{
    padding-block: 10rem;
}
figure img{
    padding-bottom: 2rem;
}
.wp-block-media-text__content{
    padding: 0!important;
}
}