/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.1
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/*
 * Doozy da modificare...
 */

/* Colori */
:root {
    --accento: var(--global-palette1);
    --accento-alt: var(--global-palette2);
    --testo-piu-forte: var(--global-palette3);
    --testo-forte: var(--global-palette4);
    --testo-medio: var(--global-palette5);
    --testo-sottile: var(--global-palette6);
    --sfondo-sottile: var(--global-palette7);
    --sfondo-chiaro: var(--global-palette8);
    --bianco: var(--global-palette9);
    --trasparente: transparent;
}

::-webkit-input-placeholder { /* WebKit browsers */
    color: var(--secondario) !important;
    opacity: 0.3;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--secondario) !important;
    opacity: 0.3;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--secondario) !important;
    opacity: 0.3;s
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: var(--secondario) !important;
    opacity: 0.3;
}

/* Tipografia */
* p {
	margin-bottom:1rem !important;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 600!important;
    margin-top: 0!important;
}

h1, .h1, .h1 > .gspb-dynamic-title-element,
.h1.gspb_meta>* {
    font-size: clamp(28px, 6vw, 46px)!important;
    line-height: 1.1 !important;
}
h2, .h2, .h2 > .gspb-dynamic-title-element,
.h2.gspb_meta>* {
    font-size: clamp(20px, 4vw, 30px)!important;
    line-height: 1.3 !important;
}
h3, .h3, .h3 > .gspb-dynamic-title-element,
.h3.gspb_meta>* {
    font-size: clamp(18px, 4vw, 28px)!important;
    line-height: 1.3 !important;
}
h4, .h4, .h4 > .gspb-dynamic-title-element,
.h4.gspb_meta>* {
    font-size: clamp(18px, 3.5vw, 24px)!important;
    line-height: 1.4 !important;
}
h5, .h5, .h5 > .gspb-dynamic-title-element,
.h5.gspb_meta>* {
    font-size: clamp(18px, 3vw, 20px)!important;
    line-height: 1.5 !important;
}
h6, .h6, .h6 > .gspb-dynamic-title-element,
.h6.gspb_meta>* {
    font-size: clamp(1rem, 2.5vw, 1rem)!important;
    line-height: 1.5 !important;
}
/* Pulsanti */
.button, 
.wp-block-button__link, 
.wp-element-button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"] {
    border-radius: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(90deg, #6392A9 0%, #405FA1 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.4s ease;
}

.button:hover, 
.wp-block-button__link:hover, 
.wp-element-button:hover, 
input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover {
    background: linear-gradient(90deg, #405FA1 0%, #6392A9 100%);
}

/* Menu mobile */
.popup-drawer .drawer-content {
    padding: 0 1.5em 1.5em;
    margin-top: -2.5rem;
}
.mobile-navigation:not(.drawer-navigation-parent-toggle-true) ul li.menu-item-has-children .drawer-nav-drop-wrap button {
    border-left: 0px;
}

/* Menu Desktop */
#primary-menu > .menu-item:not(:last-child) {
	border-right: 1px solid var(--global-palette4);
}

.box-iscriviti {
	padding:1rem 0;
}
.box-intervento {
	margin:0 0 1rem 0;
	padding:0 0 2rem 0;
	border-bottom:1px solid #fff;
}
/* Tablet (≥768px) */
@media (min-width: 768px) {
    .box-iscriviti {
		padding:1rem 0;
	}
	.box-intervento {
		margin:0;
	}
}
/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .box-iscriviti {
		padding:1rem 2rem;
	}
	.box-intervento {
		margin:0;
	}
}

/* Gradienti */
.gradiente {
    position: relative;
    background-image: url('/wp-content/uploads/2025/08/gradient.jpg');
    background-size: cover;
    background-position: center;
    color: #fff; /* testo scuro per contrasto */
    z-index: 0;
    padding: 1rem;
}
/* Tablet (≥768px) */
@media (min-width: 768px) {
    .gradiente {
        padding: 2rem;
    }
}
/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .gradiente {
        padding: 3rem;
    }
}
.gradiente.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.3); /* overlay bianco trasparente */
    z-index: -1;
}
.gradiente.overlay h2, .gradiente.overlay p {
    color: #fff;
}
.gradiente-footer {
    background: #E43329;
    background: -webkit-linear-gradient(152deg, rgba(228, 51, 41, 1) 35%, rgba(181, 38, 112, 1) 85%, rgba(119, 25, 65, 1) 100%);
    background: -moz-linear-gradient(152deg, rgba(228, 51, 41, 1) 35%, rgba(181, 38, 112, 1) 85%, rgba(119, 25, 65, 1) 100%);
    background: linear-gradient(152deg, rgba(228, 51, 41, 1) 35%, rgba(181, 38, 112, 1) 85%, rgba(119, 25, 65, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#E43329", endColorstr="#771941", GradientType=0);
}

.shadow {
    text-shadow: 3px 3px 5px rgba(0,0,0,0.4);
}