/*
Theme Name: Favignana Bedda - Hexaweb
Theme URI: https://elementor.com/products/hello-biz/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-biz
Author: Hexaweb.it
Author URI: https://www.hexaweb.it
Description: Favignana Bedda Child è un tema child sviluppato per garantire personalizzazioni avanzate e un design ottimizzato per il sito dell'agenzia turistica Favignana Bedda. Basato su un tema WordPress stabile e performante, questo child theme è stato creato per offrire un’esperienza utente fluida, una navigazione intuitiva e una perfetta integrazione con le migliori pratiche SEO.
Tags: tourism, travel, booking, boat tours, rentals, responsive, seo-friendly, lightweight, mobile-friendly, customizable, accessibility-ready, fast-loading, retina-ready, modern-design, clean-layout, egadi, favignana, levanzo, marettimo, excursions, adventure, wpml-compatible
Version: 1.0.1.1741623755
Updated: 2025-03-10 16:22:35

*/

/* Stile per l'accordion dell'itinerario
 * Da salvare in: css/tour-plan-accordion.css
 */

/* Contenitore principale */
.tour-plan-wrapper {
  max-width: 700px;
  margin: 2em auto;
  font-family: "Open Sans", sans-serif;
  position: relative;
}

/* Pulsante Expand All */
.expand-all-container {
  text-align: right;
  margin-bottom: 1.5em;
}

.expand-all {
  color: #f66;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5em 0.8em;
  font-size: 0.9em;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.expand-all:hover {
  background-color: rgba(255, 102, 102, 0.1);
}

.expand-all:focus {
  outline: 2px solid rgba(255, 102, 102, 0.5);
}

/* Container degli elementi */
.tour-plan-items {
  position: relative;
}

/* Singolo elemento dell'itinerario */
.tour-plan-item {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 3.5em; /* Spazio per il marker a sinistra */
}

.tour-plan-item.open {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Timeline marker (pallino + linea) */
.timeline-marker {
  position: absolute;
  left: 1.2em;
  top: 1.5em;
  width: 20px;
  height: 100%;
  z-index: 1;
}

.marker-circle {
  width: 12px;
  height: 12px;
  background-color: #ff5a00;
  border-radius: 50%;
  z-index: 2;
  position: relative;
}

.marker-line {
  position: absolute;
  top: 12px; /* Inizia subito dopo il cerchio */
  left: 5px; /* Centro della linea allineato con il cerchio */
  width: 2px;
  background-color: #ddd;
  height: calc(100% + 20px); /* Estende oltre all'elemento corrente */
}

/* Ultimo elemento: la linea non si estende oltre */
.tour-plan-item:last-child .marker-line {
  height: calc(100% - 12px);
}

/* Header (pulsante cliccabile) */
.tour-plan-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1.2em 1em;
  width: 100%;
  text-align: left;
  border: none;
  position: relative;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.tour-plan-header:hover,
.tour-plan-header:focus {
  background-color: #f9f9f9;
  outline: none;
}

.tour-plan-header:focus-visible {
  outline: 2px solid #ff5a00;
  outline-offset: -2px;
}

/* Testo nel header */
.tour-plan-header-text {
  flex: 1;
}

.tour-plan-time-title {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.tour-plan-time {
  font-weight: 600;
  margin-right: 10px;
  color: #ff5a00;
}

.tour-plan-title {
  font-weight: 500;
}

/* Icona freccia */
.tour-plan-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  color: #666;
  transition: transform 0.3s ease;
}

.arrow-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Rotazione della freccia quando aperto */
.tour-plan-item.open .arrow-icon {
  transform: rotate(-135deg);
}

/* Contenuto espandibile */
.tour-plan-content {
  background-color: #fff;
  padding: 0.5em 1.5em 1.5em;
  transition: max-height 0.3s ease;
}

/* Stile per la descrizione */
.tour-plan-description {
  margin-bottom: 1em;
  color: #444;
  line-height: 1.6;
  font-size: 14px;
}

.tour-plan-description p:first-child {
  margin-top: 0;
}

/* Stile per l'immagine */
.tour-plan-image {
  margin-top: 1em;
  border-radius: 4px;
  overflow: hidden;
}

.tour-plan-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Stili responsive */
@media screen and (max-width: 768px) {
  .tour-plan-wrapper {
    margin: 1em;
  }
  
  .tour-plan-item {
    padding-left: 3em;
  }
  
  .timeline-marker {
    left: 1em;
  }
}

@media screen and (max-width: 480px) {
  .tour-plan-header {
    padding: 1em 0.8em;
  }
  
  .tour-plan-time-title {
    font-size: 14px;
  }
  
  .tour-plan-content {
    padding: 0.5em 1em 1em;
  }
}