/**
Theme Name: centru-daune
Author: Constatari Bucuresti
Description: Tema copil folosita de constataribucuresti.ro.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centru-daune
Template: astra
*/

@media screen and (min-width: 769px) {

    #mobile { display: none; }
    #desktop {display: block; }
}

@media screen and (max-width: 769px) {

    #mobile { display: block; }
    #desktop {display: none; }
}

/** box */
.custom-floating-box {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    background-color: #fff;
    color: #314355;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.custom-box {
    /* background-color: #04a94f; */
	background-color: #1e51db;
    color: #fff;
    text-align: center;
    font-size: 20px;
    border-radius: 6px;
    width: 400px;
    padding: 20px 15px 20px 15px;
    margin: 5px auto;
    line-height: 1.2; /* Text mai compact */
}

.custom-box a {
    color: #fff; /* Culoare albă pentru link */
    text-decoration: none; /* Elimină sublinierea */
}

.custom-box a:hover {
    text-decoration: underline; /* Sublinie la hover pentru accesibilitate */
}

/* Stiluri pentru dispozitive mobile */
@media (max-width: 768px) {
    .custom-floating-box {
        width: 90%;
        bottom: -30px;
        font-size: 14px;
        padding: 10px;
    }

    .custom-box {
        width: 90%;
        font-size: 22px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .custom-floating-box {
        font-size: 12px;
        padding: 8px;
    }

    .custom-box {
        font-size: 18px;
        padding: 6px;
    }
}

/* custom margins desktop */
@media only screen and (min-width: 768px) {
    .custom-margins-row {
        padding-left: 90px !important;
        padding-right: 90px !important;
    }
}

/* custom margins desktop */
@media only screen and (max-width: 768px) {
    .custom-margins-row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/** font-awesome */
.fa-circle-check, .fa-square-check {
	color:#0043dc;
}

/** Charts homepage */
.progress-row {
    display: flex;
    justify-content: space-around; /* Spațiu între elemente */
    flex-wrap: wrap; /* Elemente în rânduri multiple */
    gap: 20px; /* Spațiu între cercuri */
    margin: 20px auto;
}

.progress-row--small {
    gap: 10px;
    margin: 10px auto;
}

.progress-container {
    position: relative;
    width: 200px; /* Dimensiune implicită pe desktop */
    height: 200px;
    margin: 10px;
}

.progress-row--small .progress-container {
    width: 120px; /* sau dimensiunea dorită */
    height: 120px;
}

.progress-svg {
    width: 100%; /* SVG se va adapta la container */
    height: auto; /* Păstrează proporțiile */
    display: block; /* Elimină eventualele spații albe */
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 15;
}

.progress-bar {
    fill: none;
    stroke: #007BFF;
    stroke-width: 15;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 2s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.progress-row--small .progress-text {
    font-size: 14px;
}

/* Stiluri pentru mobil */
@media (max-width: 768px) {
    .progress-container {
        width: 180px; /* Dimensiune mai mică pentru mobil */
        height: 180px;
		margin: 2px;
    }
	
	.progress-row {
		margin-bottom: -30px!important;
        gap: 5px; /* Spațiu mai mic între cercuri pe mobil */
    }

    .progress-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .progress-container {
        width: 100px; /* Dimensiune și mai mică pentru telefoane mici */
        height: 100px;
    }

    .progress-text {
        font-size: 12px;
    }
}



/** border-only */
.border-only {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/** custom-bg */
.custom-bg {
    position: relative;
    z-index: 10;
    display: flex; /* Activează Flexbox pentru layout */
    flex-wrap: wrap; /* Permite coloanelor să se încadreze pe mai multe rânduri */
    gap: 30px; /* Spațiu între coloane pe desktop */
    padding: 0 100px; /* Margini interioare stânga-dreapta pe desktop */
    margin: 0 auto; /* Centrare pe pagină */
    box-sizing: border-box; /* Asigură calcularea corectă a marginilor și padding-ului */
}

.custom-bg > .wpb_column {
    flex: 1; /* Coloanele vor ocupa dimensiuni egale */
    margin: 0; /* Elimină marginile implicite */
    padding: 0; /* Elimină padding-ul implicit */
}

.custom-bg h4 {
    color: #ffffff !important; /* Font alb */
    font-size: 36px !important; /* Dimensiune titlu */
}

.custom-bg h5,
.custom-bg h6,
.custom-bg p,
.custom-bg div {
    color: #ffffff !important; /* Font alb */
    font-size: 14px; /* Dimensiune text */
}

@media (max-width: 768px) {
    .custom-bg {
        flex-direction: column; /* Coloanele sunt afișate una sub alta pe mobil */
        gap: 5px; /* Spațiu redus între coloane pe mobil */
        padding: 0 5px; /* Margini interioare mici pe mobil */
		line-height: 1.2;
    }

    .custom-bg h4 {
        font-size: 24px !important; /* Ajustare dimensiune titlu pe mobil */
    }

    .custom-bg h5,
    .custom-bg h6,
    .custom-bg p,
    .custom-bg div {
        font-size: 12px; /* Ajustare dimensiune text pe mobil */
    }
}

@media (max-width: 768px) {
    .ajusted {
        margin-top: -50px; /* Resetare pe mobil pentru un aspect curat */
		z-index: 999;
    }
}

/* Read More */
.read-more-container {
  position: relative;
  margin: 20px 0; /* Spațiu deasupra și dedesubt */
	font-size: 15px;
	line-height: 1.2;
}

/* Text restrâns (stare implicită) */
.read-more-text {
  display: block; /* Asigură compatibilitatea cu mai multe tipuri de text */
  max-height: 120px; /* Înălțime maximă pentru textul restrâns */
  overflow: hidden; /* Ascunde conținutul care depășește limitele */
  transition: max-height 0.3s ease; /* Animație pentru expandare/restrângere */
}

/* Text extins (după clic pe "Read More") */
.read-more-container.expanded .read-more-text {
  max-height: none; /* Elimină restricția de înălțime */
}

/* Linkul "Read More" aliniat la stânga */
.read-more-toggle {
  display: block; /* Asigură vizibilitatea linkului */
  margin-top: 10px; /* Spațiu deasupra linkului */
  color: #009de4; /* Culoare albastră pentru link */
  text-decoration: none; /* Fără subliniere implicită */
  font-weight: bold; /* Text îngroșat */
  cursor: pointer; /* Cursor pointer pentru interacțiune */
}

/* Stil la hover pentru link */
.read-more-toggle:hover {
  text-decoration: underline; /* Subliniere la hover */
}

/* efect de umbra */
.row-umbra {

    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/** google */
.google-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  background-color: #1E293B; 
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  margin: 20px auto; 
  text-align: center;
}

.google-logo img {
  width: 50px;
  margin-bottom: 10px; 
}

.reviews-info {
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 10px; 
}

.reviews-info p {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.stars {
  font-size: 24px; 
  color: #FFD700; 
  margin: 0; 
}


/* border animat */
.border-animate-blue,
.border-animate-orange,
.border-animate-green {
  position: relative;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s;
}

.border-animate-blue::before,
.border-animate-blue::after,
.border-animate-orange::before,
.border-animate-orange::after,
.border-animate-green::before,
.border-animate-green::after {
    pointer-events: none; /* Permite interacțiunea cu elementele din interior */
}

/* Stiluri când elementele devin vizibile */
.border-animate-blue.visible,
.border-animate-orange.visible,
.border-animate-green.visible {
  opacity: 1;
}

/* Coloana albastră */
.border-animate-blue.visible::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-top-color: #007BFF;
  border-right-color: #007BFF;
  animation: border-growing 2s linear forwards 0s;
}

.border-animate-blue.visible::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-bottom-color: #007BFF;
  border-left-color: #007BFF;
  animation: border-growing 2s linear forwards 1s;
}

/* Coloana portocalie */
.border-animate-orange.visible::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-top-color: #FF6200;
  border-right-color: #FF6200;
  animation: border-growing 2s linear forwards 1s;
}

.border-animate-orange.visible::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-bottom-color: #FF6200;
  border-left-color: #FF6200;
  animation: border-growing 2s linear forwards 2s;
}

/* Coloana verde */
.border-animate-green.visible::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-top-color: #04a94f;
  border-right-color: #04a94f;
  animation: border-growing 2s linear forwards 2s;
}

.border-animate-green.visible::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-bottom-color: #04a94f;
  border-left-color: #04a94f;
  animation: border-growing 2s linear forwards 3s;
}

/* Animația pentru toate border-urile */
@keyframes border-growing {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: calc(100% - 10px);
    height: 0;
  }
  100% {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
}

.mt-6 .text-right {
	display:none!important;
}

.ken-burns {
    overflow: hidden; /* Ascunde părțile imaginii în afara containerului */
    width: calc(100% + 30px); /* Adaugă spațiul din margin (-15px pe fiecare parte) */
    margin: 0 -15px; /* Aliniază cu marginul setat în WPBakery */
}

.ken-burns img {
    width: 100%; /* Imaginea umple întreaga lățime a containerului */
    transform: scale(1); /* Dimensiunea inițială */
    animation: ken-burns-effect 5s ease-in-out forwards; /* Schimbat din infinite în forwards */
}

@keyframes ken-burns-effect {
    0% {
        transform: scale(1); /* Dimensiune inițială */
    }
    100% {
        transform: scale(1.2); /* Zoom progresiv */
    }
}