.product-price {
  display: none;
}
.alin {
  padding: 5px 0 5px 20px;
}
.specs {
  color: black;
  font-weight: bold;
//  display: inline;
}
.tmax {
  color: red;
}
.tmin {
  color: blue;
}

/* Stiluri responsive pentru ecrane mici */
@media (max-width: 430px) {
  body {
    padding: 8px;
    background-color: #fdfdfd;
  }

  img {
    border-radius: 8px; /* stil vizual plăcut pe mobil */
    max-height: 80vh;   /* previne supradimensionarea imaginii */
  }

  .container {
    padding: 0 12px;
  }
}

/* Wrapper pentru scroll orizontal pe mobil */
.evd-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

/* Tabelul propriu-zis */
.evd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px; /* poți ajusta după tema site-ului */
}

/* Celule + înălțime dublă față de font */
.evd-table th,
.evd-table td {
    padding: 3px;
    line-height: 2; /* înălțimea celulei = 2 × înălțimea fontului */
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* Header tabel */
.evd-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-align: left;
}

/* Alternare rânduri pentru lizibilitate */
.evd-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Linkuri din tabel */
.evd-table a {
    color: #0066cc;
    text-decoration: none;
}

.evd-table a:hover {
    text-decoration: underline;
}

/* Listele din articol – indentare completă (bullet + text) */
.article-content ul li,
.article-content ol li {
    margin-left: 30px;        /* mută și bullet-ul */
    padding-left: 0;          /* evităm dublarea indentării */
    list-style-position: outside; /* păstrăm bullet-ul în afara textului */
}

/* Headers in articole */
.article-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 25px 0 15px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 25px 0 12px;
    line-height: 1.35;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.article-content h5,
.article-content h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 6px;
}

/* Distantare tag-uri */
.list-inline-item:not(:last-child) {
    margin-top: 1rem;
}
.pret {
  color: #fd7e14;
  font-size: 20px;
}
/* start css pagini servicii */
.ev-wrapper * {
    box-sizing: border-box;
}

/* Container general */
.ev-wrapper .ev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* HERO */
.ev-wrapper .ev-hero {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 1200px;
}
.ev-wrapper .ev-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.ev-wrapper .ev-hero__overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    color: #fff;
}
.ev-wrapper .ev-hero__title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}
.ev-wrapper .ev-hero__subtitle {
    margin: 0;
    font-size: 1rem;
}

/* GRID 2 coloane */
.ev-wrapper .ev-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
}
@media (max-width: 900px) {
    .ev-wrapper .ev-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Secțiuni */
.ev-wrapper .ev-section {
    margin-bottom: 2rem;
}
.ev-wrapper .ev-section h2 {
    margin-bottom: 0.75rem;
}
.ev-wrapper .ev-section ul {
    padding-left: 1.2rem;
}

/* Poze laterale */
.ev-wrapper .ev-photo {
    margin-bottom: 1.5rem;
}
.ev-wrapper .ev-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.ev-wrapper .ev-photo figcaption {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.4rem;
}

/* ===== Fix hero overlay + text for small viewports (<= 572px) ===== */

/* Safari / iOS font scaling fix */
html { -webkit-text-size-adjust: 100%; }

/* Ensure hero image keeps proportions and doesn't overflow */
.ev-wrapper .ev-hero {
  position: relative;
  overflow: hidden;
}

.ev-wrapper .ev-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* keep aspect ratio, crop if needed */
  max-height: 60vh;  /* prevents image from becoming taller than viewport on small devices */
}

/* Overlay: limit height so it doesn't cover whole image/header */
.ev-wrapper .ev-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  z-index: 5;
  max-height: 48%;        /* never cover more than ~half the hero on small screens */
  overflow-y: auto;       /* allow scrolling if content is taller than overlay */
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Title and subtitle responsive sizing */
.ev-wrapper .ev-hero__title {
  margin: 0 0 0.25rem;
  font-size: clamp(18px, 5.5vw, 26px); /* scales between 18px and 26px */
  line-height: 1.12;
  font-weight: 700;
}

.ev-wrapper .ev-hero__subtitle {
  margin: 0;
  font-size: clamp(12px, 3.6vw, 15px);
  line-height: 1.2;
}

/* Reduce padding and font sizes specifically for very small viewports */
@media (max-width: 572px) {
  .ev-wrapper .ev-hero {
    margin-bottom: 1rem;
  }

  .ev-wrapper .ev-hero__overlay {
    padding: 0.6rem;
    max-height: 52%; /* slightly larger allowance on very small screens if needed */
  }

  .ev-wrapper .ev-hero__title {
    font-size: clamp(16px, 6.5vw, 22px);
  }

  .ev-wrapper .ev-hero__subtitle {
    font-size: 13px;
  }

  /* Ensure header (H1) inside overlay doesn't push layout */
  .ev-wrapper .ev-hero__overlay h1,
  .ev-wrapper .ev-hero__overlay .ev-hero__title {
    margin: 0;
    padding: 0;
    word-break: break-word;
  }

  /* If overlay still too tall, reduce gradient intensity to keep readability */
  .ev-wrapper .ev-hero__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.05));
  }
}

/* Extra safety for extremely narrow devices (<= 420px) */
@media (max-width: 420px) {
  .ev-wrapper .ev-hero img { max-height: 55vh; }
  .ev-wrapper .ev-hero__overlay { padding: 0.5rem; max-height: 50%; }
  .ev-wrapper .ev-hero__title { font-size: 16px; }
  .ev-wrapper .ev-hero__subtitle { font-size: 12px; }
}

/* Optional: ensure grid collapses to single column correctly (fix theme typo) */
/* Note: theme CSS contains a malformed media rule '@media[sec5](max-width: 900px)' — replace or add this correct rule */
@media (max-width: 900px) {
  .ev-wrapper .ev-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ===== END Fix hero overlay + text for small viewports */
/* Rând de 2 poze reale, una lângă alta, sub articol (pagini fără suficiente poze pentru coloană laterală) */
.ev-wrapper .ev-photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.ev-wrapper .ev-photo-row .ev-photo {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .ev-wrapper .ev-photo-row {
        grid-template-columns: 1fr;
    }
}
/* end css pagini servicii */

/* CSS opțional, izolat sub .evd-video-article ca să nu intre în conflict cu stilurile existente ale site-ului. */
/* Se bazează pe grid-ul Bootstrap 3 deja existent (col-xs-*, col-sm-*), nu îl înlocuiește. */
 
.evd-video-article {
  margin-bottom: 30px;
}
 
/* Garantează un gutter orizontal de 15px pe toate coloanele din interiorul
   articolului, indiferent dacă alte reguli din template.css/custom.css
   suprascriu/anulează padding-ul implicit Bootstrap pe unele coloane
   (de-asta textul din primul și al treilea rând se lipea de margini pe
   mobil, deși coloana video+text din mijloc arăta corect). Nu dublează
   nimic - e aceeași valoare 15px pe care Bootstrap o folosește oricum. */
.evd-video-article .row > [class*="col-"] {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.evd-video-article h1 {
  margin-top: 0;
}
 
/* Video vertical (9:16) - limitat ca lățime ca să nu devină excesiv de înalt pe ecrane late.
   Nu ne bazăm pe .img-responsive sau pe atributul HTML height="1280" (pot fi
   suprascrise/eliminate de filtrul de text al Joomla sau de alte reguli din
   template) - forțăm explicit raportul de aspect și înălțimea, cu !important
   ca să câștige indiferent de alte reguli din site. */
.evd-video-article .evd-video {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto !important;
  aspect-ratio: 9 / 16 !important;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  background: #000;
  object-fit: cover;
}
 
.evd-video-article .evd-video-caption {
  text-align: center;
  color: #777777;
  margin-top: 8px;
}
 
.evd-video-article .evd-cta {
  margin-top: 20px;
  padding: 15px 20px;
  background: #f5f5f5;
  border-left: 4px solid #0055a4; /* ajustează la culoarea de brand a site-ului */
}
/* Poster-link spre pagina de vizionare video (în articolul de blog nu mai e player): buton „play” peste imagine */
.evd-video-article .evd-video-link {
  position: relative;
  display: block;
  max-width: 380px;
  margin: 0 auto;
}
.evd-video-article .evd-video-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  /* triunghi cu viewBox strâns pe formă, centrat exact în cerc; 18×22 px (+20% față de varianta inițială) */
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='white' d='M0 0v14l11-7z'/%3E%3C/svg%3E") no-repeat 50% 50% / 18px 22px;
  pointer-events: none;
  transition: background-color 0.2s;
}
.evd-video-article .evd-video-link:hover::after,
.evd-video-article .evd-video-link:focus::after {
  background-color: rgba(253, 126, 20, 0.9); /* portocaliul linkurilor din site (#fd7e14, template.css: body a) */
}
/* END CSS opțional pentru articole video
