/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* typewriter effect titolo home */
.typewriter-container {
    text-align: center;
}

#typewriter {
    font-size: 5rem;
	line-height: 5rem;
    display: inline-block;
    font-family: "Poppins", Sans-serif;
    font-weight: 500;
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}

/* Default black styling */
.typewriter-black {
    color: #333;
    --cursor-color: #333;
    border-right: 3px solid var(--cursor-color);
}

/* White styling for dark backgrounds */
.typewriter-white {
    color: #fff;
    --cursor-color: #fff;
    border-right: 3px solid var(--cursor-color);
}

/* Generic blink animation that uses the custom property */
@keyframes blink {
    0%, 100% { border-color: var(--cursor-color); }
    50% { border-color: transparent; }
}
@media (max-width: 650px) {
	.typewriter-container {
    min-height: 80px;
}
	#typewriter {
    font-size: 3.5rem;
	line-height: 3.5rem;
	}
}

/* form */
.wpcf7 label {
	width: 100%;
}
.wpcf7-acceptance .wpcf7-list-item-label a {
	color: #000;
}
#form-contatti input {
	border-radius: 30px;
	font-family: "Poppins", Sans-serif;
}
#form-contatti textarea {
	border-radius: 30px;
}
#form-contatti [type=submit] {
	background-color: #00640E;
	border-color: #00640E;
	color: #fff;
	width: 120px;
	text-transform: uppercase;
}
/* loop viaggi label */
.stato-label {
	font-family: "Poppins", Sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* accordion itinerario pagina viaggio */
.accordion-content { 
	display: none; 
}
.accordion-header { 
        cursor: pointer; 
        padding: 15px;
	margin: 10px;
        background: #FFFCF7; 
        border: 1px solid #00640E;
	border-radius: 30px;
	font-family: "Poppins", Sans-serif;
	font-size: 24px;
	color: #000;
        position: relative; 
}
    .accordion-header.active { 
		background: #FFFCF7; 
}
    .accordion-content { 
		padding: 15px;  
		border-top: none; 
		font-family: "Poppins", Sans-serif;
		color: #000;
}
    
    /* Chevron styles */
    .accordion-header::after {
        content: "›";
        position: absolute;
        right: 15px;
        font-size: 24px;
		color: #00640E;
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    .accordion-header.active::after {
        transform: rotate(-90deg);
    }

/* nascondi nome foto lightbox gallery */
.elementor-slideshow__title {
	display: none;
}

/* nascondi sezione richiedi informazioni in pagina viaggio se è un viaggio passato */
.categoria-viaggio-viaggi-passati .richiedi-informazioni {
	display: none;
}

/* coordinatori pagina viaggio */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

/* For single item */
.team-members-grid:has(.team-member:only-child) {
    grid-template-columns: minmax(auto, 400px);
    justify-content: center;
}

/* For two items - reduced gap */
.team-members-grid:has(.team-member:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(auto, 400px));
    justify-content: center;
    gap: 15px;
}

/* For three or more items */
.team-members-grid:has(.team-member:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
}

/* Mobile styles */
@media (max-width: 768px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Keep single item centered on mobile */
    .team-members-grid:has(.team-member:only-child) {
        grid-template-columns: minmax(auto, 300px) !important;
        justify-content: center;
    }
}

.team-member {
    display: flex;
    flex-direction: column;
}

.member-image {
    margin-bottom: 20px; /* Space between image and info */
	text-align: center;
}

.member-image img {
    width: 170px;
    height: auto;
    display: block;
	margin: auto;
}

.member-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-info-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-title {
    margin: 0;
}

.instagram-icon img {
    width: 30px;
    height: auto;
	margin-top: 5px;
}

/* recensioni */
.acf-star-rating-wrapper {
	text-align: center;
}
.acf-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.star-rating {
    font-size: 24px;
    display: inline-block;
    position: relative;
    color: #ddd; /* Empty star color */
}
.star-rating .filled-stars {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc107; /* Filled star color */
}
.star-rating::before,
.star-rating .filled-stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
}
.star-size-small .star-rating {
    font-size: 16px;
}
.star-size-medium .star-rating {
    font-size: 24px;
}
.star-size-large .star-rating {
    font-size: 32px;
}
.rating-value {
    font-size: 0.9em;
    color: #666;
}