/* INIZIO REGOLE CSS PER DIMINUIRE CLS */
.grid-child.container-component {
  min-height: 500px; /* Altezza minima per evitare shift */
  position: relative; /* Aiuta il rendering */
  overflow: hidden; /* Previene scroll indesiderati */
  contain: layout paint style; /* Nuova - riduce CLS */
  will-change: transform; /* Nuova - ottimizza rendering GPU */
}

/* Se contiene immagini/iframe */
.grid-child.container-component img,
.grid-child.container-component iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Adatta al tuo contenuto */
  object-fit: cover; /* Nuova - evita distorsioni */
  display: block; /* Nuova - elimina spazio sotto immagini */
}
/* FINE REGOLE CSS PER DIMINUIRE CLS */

body.site {
  background: rgba(0, 0, 0, 0) url("https://www.isoladelbaapp.com/images/isoladelba-cover.jpg") no-repeat fixed top center / cover ;
}

.img-rounded{
  border-radius: var(--border-radius-xl) !important;
}

.img-circle {
  border-radius: 50%;
  }

.footer .grid-child {
  justify-content: center;
}

.metismenu.mod-menu {
  flex-wrap: wrap;
  }

.container-component {
  background-color: white;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  }

.posizione-relative {
  position: relative;
  margin-bottom: 10px;
}

.posizione-absolute {
  position: absolute;
    bottom: 10px;
    margin-left: auto;
 	margin-right: auto;
 	left: 0;
 	right: 0;
  	width: 200px;
  	text-align: "center";
  	border-radius: 5px 15px;
   	background-color: rgba(48, 191, 247, 0.8);
  	text-align: center;
  	color: white;
  	padding: 5px;  
}

.posizione-primavera {
  position: absolute;
    bottom: 10px;
    margin-left: auto;
 	margin-right: auto;
 	left: 0;
 	right: 0;
  	width: 200px;
  	text-align: "center";
  	border-radius: 5px 15px;
   	background-color: rgba(0, 128, 0, 0.8);
  	text-align: center;
  	color: white;
  	padding: 5px;  
}

.posizione-estate {
  position: absolute;
    bottom: 10px;
    margin-left: auto;
 	margin-right: auto;
 	left: 0;
 	right: 0;
  	width: 200px;
  	text-align: "center";
  	border-radius: 5px 15px;
   	background-color: rgba(255, 215, 0, 0.8);
  	text-align: center;
  	color: white;
  	padding: 5px;  
}

.posizione-autunno {
  position: absolute;
    bottom: 10px;
    margin-left: auto;
 	margin-right: auto;
 	left: 0;
 	right: 0;
  	width: 200px;
  	text-align: "center";
  	border-radius: 5px 15px;
   	background-color: rgba(210, 105, 30, 0.8);
  	text-align: center;
  	color: white;
  	padding: 5px;  
}

.posizione-blu {
  position: absolute;
    bottom: 10px;
    margin-left: auto;
 	margin-right: auto;
 	left: 0;
 	right: 0;
  	width: 200px;
  	text-align: "center";
  	border-radius: 5px 15px;
   	background-color: rgba(48, 191, 247, 0.8);
  	text-align: center;
  	color: white;
  	padding: 5px;  
}

.bottone-bianco {
	text-decoration: none;
  	color: white;
}

.posizione-absolute > a:hover
{
 	text-decoration: none;
	color: white;
}

.zoomimg:hover {
    opacity: 0.7; 
}

h1 {
	text-align: center;
}

h2 {
	text-align: center;
}

/* Stili per le card attrazioni Isola d'Elba */
.bg-azurro {
    background-color: #1e90ff !important;
    border-color: #1e90ff !important;
}
.bg-arancio {
    background-color: #ff8c00 !important;
    border-color: #ff8c00 !important;
}
.bg-verde {
    background-color: #2e8b57 !important;
    border-color: #2e8b57 !important;
}
.attractions-container .card {
    transition: transform 0.3s;
}
.attractions-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* INIZIO RICETTE */
<style>
.ricette-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.filtri-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filtro-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: #f0f0f0;
  color: #555;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtro-btn:hover {
  background: #ddd;
}

.filtro-btn.active {
  background: #3498db;
  color: white;
}

.ricette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.ricetta-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.ricetta-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.ricetta-image {
  height: 200px;
  overflow: hidden;
}

.ricetta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ricetta-card:hover .ricetta-image img {
  transform: scale(1.1);
}

.ricetta-content {
  padding: 20px;
}

.ricetta-title {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.4rem;
}

.ricetta-desc {
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.ricetta-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: background 0.3s ease;
}

/* Colori per categorie */
.primo {
  border-top: 5px solid #3498db;
}

.primo .ricetta-btn {
  background: #3498db;
}

.primo .ricetta-btn:hover {
  background: #2980b9;
}

.secondo {
  border-top: 5px solid #2ecc71;
}

.secondo .ricetta-btn {
  background: #2ecc71;
}

.secondo .ricetta-btn:hover {
  background: #27ae60;
}

.dolce {
  border-top: 5px solid #e67e22;
}

.dolce .ricetta-btn {
  background: #e67e22;
}

.dolce .ricetta-btn:hover {
  background: #d35400;
}

/* Badge categoria */
.filtri-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.filtro-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: #f0f0f0;
  color: #555;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filtro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Colori per categorie */
.filtro-btn[data-categoria="tutte"] {
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
}

.filtro-btn[data-categoria="primo"] {
  background: #3498db;
  color: white;
}

.filtro-btn[data-categoria="secondo"] {
  background: #2ecc71;
  color: white;
}

.filtro-btn[data-categoria="dolce"] {
  background: #e67e22;
  color: white;
}

.filtro-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-weight: 700;
}

/* Effetto pulsante attivo */
.filtro-btn.active[data-categoria="tutte"] {
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.filtro-btn.active[data-categoria="primo"] {
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.filtro-btn.active[data-categoria="secondo"] {
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.filtro-btn.active[data-categoria="dolce"] {
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .filtri-container {
    gap: 8px;
  }
  
  .filtro-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}
/* Stile base pulsanti con emoji */
.filtro-btn {
  position: relative;
  padding: 12px 24px 12px 50px; /* Più spazio a sinistra per l'emoji */
  font-size: 15px;
}

/* Emoji prima del testo */
.filtro-btn::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

/* Assegna emoji diverse per ogni categoria */
.filtro-btn[data-categoria="primo"]::before {
  content: '🍝';
}

.filtro-btn[data-categoria="secondo"]::before {
  content: '🐟';
}

.filtro-btn[data-categoria="dolce"]::before {
  content: '🍰';
}

.filtro-btn[data-categoria="tutte"]::before {
  content: '📋';
}

/* Stile per mobile */
@media (max-width: 768px) {
  .filtro-btn {
    padding-left: 45px;
    font-size: 14px;
  }
  
  .filtro-btn::before {
    font-size: 18px;
    left: 12px;
  }
}
/* FINE RICETTE */
/* INIZIO CSS 8 comuni isola d'elba blu */
.elba-section {
            padding: 60px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }
        
        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 3rem;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
            border-radius: 2px;
        }
        
        .town-card {
            background: white;
            border-radius: 20px;
            padding: 30px 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: none;
            position: relative;
            overflow: hidden;
        }
        
        .town-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
        }
        
        .town-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .town-image {
            width: 100%;
            height: 180px;
            border-radius: 15px;
            object-fit: cover;
            border: none;
            margin: 0 auto 20px;
            display: block;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
        }
        
        .town-card:hover .town-image {
            transform: scale(1.03);
            box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
        }
        
        .town-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
            margin: 0;
            transition: color 0.3s ease;
        }
        
        .town-card:hover .town-name {
            color: #0ea5e9;
        }
        
        .town-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .town-link:hover {
            text-decoration: none;
            color: inherit;
        }
        
        /* Responsive improvements */
        @media (max-width: 768px) {
            .section-title {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
            
            .town-card {
                padding: 25px 15px;
                margin-bottom: 20px;
                border: 2px solid rgba(14, 165, 233, 0.15);
                border-radius: 18px;
            }
            
            .town-image {
                height: 150px;
                border: 2px solid rgba(14, 165, 233, 0.2);
                box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
                border-radius: 12px;
            }
            
            .elba-section {
                padding: 40px 0;
            }
        }
        
        @media (max-width: 576px) {
            .section-title {
                font-size: 1.8rem;
            }
            
            .town-card {
                border: 2px solid rgba(14, 165, 233, 0.2);
                border-radius: 16px;
            }
            
            .town-image {
                height: 130px;
                border: 2px solid rgba(14, 165, 233, 0.25);
                box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
                border-radius: 10px;
            }
            
            .town-name {
                font-size: 1.1rem;
            }
        }
        
        /* Effetto touch per mobile */
        @media (pointer: coarse) {
            .town-card:active {
                transform: scale(0.98);
                transition: transform 0.1s ease;
            }
        }
        
        /* Animation per il caricamento */
        .town-card {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .town-card:nth-child(1) { animation-delay: 0.1s; }
        .town-card:nth-child(2) { animation-delay: 0.2s; }
        .town-card:nth-child(3) { animation-delay: 0.3s; }
        .town-card:nth-child(4) { animation-delay: 0.4s; }
        .town-card:nth-child(5) { animation-delay: 0.5s; }
        .town-card:nth-child(6) { animation-delay: 0.6s; }
        .town-card:nth-child(7) { animation-delay: 0.7s; }
        .town-card:nth-child(8) { animation-delay: 0.8s; }
        .town-card:nth-child(9) { animation-delay: 0.9s; }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
/* FINE CSS 8 comuni isola d'elba blu */
/* INIZIO CSS HOME PAGE */
        /* Stili essenziali per la homepage */
        .elba-hero {
            padding: 40px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 600px;
        }
        
        .elba-hero-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 2rem;
        }
        
        .elba-hero-subtitle {
            font-size: 1.4rem;
            font-weight: 600;
            color: #0ea5e9;
            margin-bottom: 1.5rem;
        }
        
        .elba-hero-image {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
            margin: 20px 0 30px 0;
        }
        
        /* Card servizi minimaliste */
        .elba-service-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 1px solid rgba(14, 165, 233, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .elba-service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
        }
        
        .elba-service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
            border-color: rgba(14, 165, 233, 0.2);
        }
        
        .elba-service-image {
            width: 100%;
            height: 180px;
            border-radius: 12px;
            object-fit: cover;
            transition: all 0.3s ease;
            box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
        }
        
        .elba-service-card:hover .elba-service-image {
            transform: scale(1.02);
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
        }
        
        .elba-service-text {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 15px 0 20px 0;
        }
        
        /* Bottoni eleganti stile link */
        .elba-service-link {
            display: inline-flex;
            align-items: center;
            padding: 10px 0;
            color: #0ea5e9;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
            border-bottom: 2px solid transparent;
        }
        
        .elba-service-link::after {
            content: '→';
            margin-left: 8px;
            transition: transform 0.3s ease;
        }
        
        .elba-service-link:hover {
            color: #0284c7;
            text-decoration: none;
            border-bottom-color: #0ea5e9;
        }
        
        .elba-service-link:hover::after {
            transform: translateX(4px);
        }
        
        /* Sezione footer */
        .elba-footer-section {
            background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
            color: white;
            padding: 40px 0;
            margin-top: 40px;
            border-radius: 20px 20px 0 0;
        }
        
        .elba-footer-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .elba-footer-text {
            font-size: 1rem;
            line-height: 1.6;
            opacity: 0.95;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .elba-hero-title {
                font-size: 1.8rem;
            }
            
            .elba-hero-subtitle {
                font-size: 1.2rem;
            }
            
            .elba-service-card {
                padding: 15px;
                margin-bottom: 20px;
            }
            
            .elba-service-image {
                height: 150px;
            }
            
            .elba-hero {
                padding: 30px 0;
            }
        }
        
        @media (max-width: 576px) {
            .elba-hero-title {
                font-size: 1.6rem;
            }
            
            .elba-hero-subtitle {
                font-size: 1.1rem;
            }
            
            .elba-service-image {
                height: 130px;
            }
            
            .elba-service-text {
                font-size: 0.85rem;
            }
        }
        
        /* Animazioni load */
        .elba-service-card {
            animation: elbaFadeIn 0.6s ease forwards;
            opacity: 0;
            transform: translateY(20px);
        }
        
        .elba-service-card:nth-child(1) { animation-delay: 0.1s; }
        .elba-service-card:nth-child(2) { animation-delay: 0.2s; }
        .elba-service-card:nth-child(3) { animation-delay: 0.3s; }
        
        @keyframes elbaFadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
/* FINE CSS HOME PAGE */
/* INIZIO CSS STAGIONI */
 .seasons-section {
            padding: 60px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }
        
        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 3rem;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
            border-radius: 2px;
        }
        
        .season-card {
            position: relative;
            margin-bottom: 30px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.4s ease;
            background: white;
            border: none;
        }
        
        .season-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
            z-index: 2;
        }
        
        .season-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        }
        
        .season-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            transition: all 0.4s ease;
            position: relative;
        }
        
        .season-card:hover .season-image {
            transform: scale(1.1);
            filter: brightness(1.1);
        }
        
        .season-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
            padding: 30px 20px 20px;
            z-index: 1;
            transition: all 0.3s ease;
        }
        
        .season-card:hover .season-overlay {
            background: linear-gradient(to top, rgba(14, 165, 233, 0.9) 0%, rgba(59, 130, 246, 0.7) 50%, transparent 100%);
        }
        
        .season-button {
            background: rgba(255, 255, 255, 0.95);
            color: #2c3e50;
            padding: 12px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            display: inline-block;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .season-button:hover {
            background: #0ea5e9;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
            text-decoration: none;
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        /* Varianti per le diverse stagioni */
        .season-card.primavera:hover .season-overlay {
            background: linear-gradient(to top, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.7) 50%, transparent 100%);
        }
        
        .season-card.primavera .season-button:hover {
            background: #22c55e;
            box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
        }
        
        .season-card.estate:hover .season-overlay {
            background: linear-gradient(to top, rgba(249, 115, 22, 0.9) 0%, rgba(234, 88, 12, 0.7) 50%, transparent 100%);
        }
        
        .season-card.estate .season-button:hover {
            background: #f97316;
            box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
        }
        
        .season-card.autunno:hover .season-overlay {
            background: linear-gradient(to top, rgba(217, 119, 6, 0.9) 0%, rgba(180, 83, 9, 0.7) 50%, transparent 100%);
        }
        
        .season-card.autunno .season-button:hover {
            background: #d97706;
            box-shadow: 0 12px 35px rgba(217, 119, 6, 0.4);
        }
        
        .season-card.inverno:hover .season-overlay {
            background: linear-gradient(to top, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.7) 50%, transparent 100%);
        }
        
        .season-card.inverno .season-button:hover {
            background: #6366f1;
            box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .seasons-section {
                padding: 40px 0;
            }
            
            .section-title {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
            
            .season-image {
                height: 300px;
            }
            
            .season-overlay {
                padding: 20px 15px 15px;
            }
            
            .season-button {
                padding: 10px 20px;
                font-size: 1rem;
            }
            
            .season-card {
                margin-bottom: 20px;
            }
        }
        
        @media (max-width: 576px) {
            .section-title {
                font-size: 1.8rem;
            }
            
            .season-image {
                height: 250px;
            }
            
            .season-button {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
        }
        
        /* Touch effects per mobile */
        @media (pointer: coarse) {
            .season-card:active {
                transform: scale(0.98);
                transition: transform 0.1s ease;
            }
        }
        
        /* Animazioni di caricamento */
        .season-card {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
            transform: translateY(30px);
        }
        
        .season-card:nth-child(1) { animation-delay: 0.1s; }
        .season-card:nth-child(2) { animation-delay: 0.2s; }
        .season-card:nth-child(3) { animation-delay: 0.3s; }
        .season-card:nth-child(4) { animation-delay: 0.4s; }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Effetto di hover globale */
        .season-card:hover::before {
            background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
            height: 6px;
        }
/* FINE CSS STAGIONI */
/* INIZIO CSS per Alloggi Isola d'Elba */
/* CSS per Alloggi Isola d'Elba - Stile Oceano */

/* Card principale alloggio */
.card.mb-4.shadow-sm.border.rounded-3 {
    background: white;
    border-radius: 20px !important;
    padding: 0;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease;
    border: none !important;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Bordo superiore blu */
.card.mb-4.shadow-sm.border.rounded-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    z-index: 2;
}

/* Effetto hover sulla card */
.card.mb-4.shadow-sm.border.rounded-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Immagine hotel */
.card .img-fluid.rounded-start {
    border-radius: 20px 0 0 20px !important;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
    border: none !important;
}

.card:hover .img-fluid.rounded-start {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
}

/* Card body */
.card-body {
    padding: 30px 25px !important;
    position: relative;
}

/* Titolo hotel */
.card-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    transition: color 0.3s ease;
}

.card-title a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0ea5e9 !important;
    text-decoration: none !important;
}

/* Stelle hotel */
.card-title span {
    color: #fbbf24;
    font-size: 1rem !important;
}

/* Informazioni contatto */
.card-body p {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    line-height: 1.5;
}

.card-body strong {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* Link di contatto */
.card-body a[href^="tel:"],
.card-body a[href^="mailto:"] {
    color: #0ea5e9 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
}

.card-body a[href^="tel:"]:hover,
.card-body a[href^="mailto:"]:hover {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

/* Descrizione hotel */
.card-text {
    color: #4b5563 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* Link elegante stile elba-service-link */
.btn.btn-primary {
    background: none !important;
    border: none !important;
    padding: 10px 0 !important;
    color: #0ea5e9 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 0 !important;
}

.btn.btn-primary::after {
    content: '→' !important;
    margin-left: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
}

.btn.btn-primary:hover {
    color: #0284c7 !important;
    border-bottom: 2px solid #0ea5e9 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn.btn-primary:hover::after {
    transform: translateX(5px) !important;
    color: #0284c7 !important;
}

.btn.btn-primary:active {
    transform: none !important;
}

/* Container row */
.card .row.g-0 {
    height: 100%;
    align-items: stretch;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card.mb-4.shadow-sm.border.rounded-3 {
        margin-bottom: 25px !important;
        border-radius: 18px !important;
    }
    
    .card-body {
        padding: 25px 20px !important;
    }
    
    .card-title {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }
    
    .img-fluid.rounded-start {
        border-radius: 18px 18px 0 0 !important;
        margin-bottom: 0 !important;
    }
    
    .card:hover .img-fluid.rounded-start {
        transform: scale(1.01);
    }
    
    .btn.btn-primary {
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
        width: auto !important;
        margin-top: 15px !important;
    }
}

@media (max-width: 576px) {
    .card.mb-4.shadow-sm.border.rounded-3 {
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .card-body {
        padding: 20px 15px !important;
    }
    
    .card-title {
        font-size: 1.2rem !important;
    }
    
    .img-fluid.rounded-start {
        border-radius: 16px 16px 0 0 !important;
        height: 200px !important;
        object-fit: cover !important;
    }
    
    .card-text {
        font-size: 0.95rem !important;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effetto touch per mobile */
@media (pointer: coarse) {
    .card.mb-4.shadow-sm.border.rounded-3:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Stili per elementi emoji */
.card-body p:has(📍),
.card-body p:has(📞),
.card-body p:has(✉️) {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Miglioramenti per accessibilità */
.card-title a:focus,
.card-body a:focus,
.btn.btn-primary:focus {
    outline: 2px solid #0ea5e9 !important;
    outline-offset: 2px !important;
}

/* Stile per il CIN */
.card-body strong {
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem !important;
    display: inline-block;
    margin-bottom: 10px;
}

/* Separatore visivo */
.card-body br + strong {
    margin-top: 10px;
}
/* FINE CSS per Alloggi Isola d'Elba */
/* INIZIO CSS per immagine altezza minima */
.altezza-minima-img {
  min-height: 480px;       /* o 500px se ti sembra meglio visivamente */
  object-fit: cover;
  width: 100%;
}
/* FINE CSS per altezza minima immagine */