@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        font-family: 'Roboto Condensed', sans-serif;
    }
}

.bordes_container:after {
    right: -44px;
    background-color: rgba(200, 200, 200, 0.4);
    box-shadow: 23px 0 24px rgba(0, 0, 0, 0.15);
}


.boxed {
    @apply max-w-[1016px] mx-auto
}

.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}

.card_clip_path {
    clip-path: path("M0 85.33Q0 64 21.33 64Q64 64 64 21.33Q64 0 85.33 0H6666.67V66666.67H0Z");
    transform: scaleX(-1);
}

.card_clip_path_medium {
    clip-path: path("M0 64Q0 48 16 48Q48 48 48 16Q48 0 64 0H5000V50000H0Z");
    transform: scaleX(-1);
}

.card_clip_path_small {
    clip-path: path("M0 53.33Q0 40 13.33 40Q40 40 40 13.33Q40 0 53.33 0H4166.67V41666.67H0Z");
    transform: scaleX(-1);
}

.card_clip_path_small_reverse {
    clip-path: path("M0 42.67Q0 32 10.67 32Q32 32 32 10.67Q32 0 42.67 0H3333.33V33333.33H0Z");
    transform: scaleX(-1);
}

.linkstyle {
    color: #11618e;
    font-weight: bold;
}
.linkstyle:hover {
    color: #ff0000;
    text-decoration: underline;
}

blockquote {
    background: #f9f9f9;
    position: relative;
    border-left: 10px solid #ccc;
    margin: 1.5em 10px;
    padding: 20px 30px 20px 30px;
    quotes: "\201C" "\201D" "\2018" "\2019";
    font-style: italic;
    line-height: 28px;
    color: #3a3a3a;
}

blockquote p {
    margin-bottom: 0px !important;
}

blockquote p strong {
    margin-left: 2px;
}

blockquote:before {
    position: absolute;
    top: 42px;
    left: 6px;
    color: #ccc;
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}

.mask {
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
  }
  
.mask-squircle {
    mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAwJyBoZWlnaHQ9JzIwMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTAwIDBDMjAgMCAwIDIwIDAgMTAwczIwIDEwMCAxMDAgMTAwIDEwMC0yMCAxMDAtMTAwUzE4MCAwIDEwMCAwWicvPjwvc3ZnPg==);
}

.share_buttons svg {
    @apply fill-slate-900 hover:fill-primary
}

.swiper-pagination {
    @apply mt-3 z-0 relative;
}

.swiper-pagination-bullet {
    @apply bg-white w-8 min-w-8 h-2 rounded-xl
}

.swiper-pagination-bullet-active {
    @apply bg-primary-light h-2 min-w-16 rounded-xl;
}

.swiper-button-disabled {
    @apply opacity-25
}

.post_content {
    @apply text-lg/7 lg:text-base/6 font-default lg:font-light
}

.post_content strong, .post_content b{
    @apply font-bold
}

.post_content p {
    @apply mb-6 lg:text-justify
}

.post_content p a {
    @apply linkstyle
}



.post_content img {
    @apply max-w-full w-full rounded-lg mx-auto block mb-6 shadow
}

h2 {
    @apply text-3xl my-4 font-semibold
}

h3 {
    @apply text-lg/6 my-4 font-semibold
}

h3 a {
    @apply linkstyle
}

.post_content ul, .post_content ol {
    @apply list-disc pl-4 lg:pl-8 mb-6;
}

.post_content ul li a, .post_content ol li a {
    @apply linkstyle
}


.post_content ul li, .post_content ol li {
    @apply leading-6 mb-2.5
}

.post_content ul li ul li, .post_content ol li ul li {
    @apply list-[circle]
}

.post_content ul li h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.post_content ul li h3 a {
    font-size: 1.17rem;
    color: #11618e;
    font-weight: bold;
}

.post_content table {
    @apply min-w-full
}

.post_content thead {
    @apply border-b
}

.post_content th {
    @apply text-sm font-semibold text-slate-900 px-6 py-4 text-left
}

img.size-full {
    height: auto !important;
}

.labelo {
    @apply bg-primary text-white font-semibold text-sm absolute px-4 py-2 rounded-tl-lg rounded-br-lg
}

.imageblock {
    @apply  overflow-x-scroll lg:overflow-visible whitespace-nowrap lg:whitespace-normal lg:flex  hidden-scrollbar
}

.imageblock a {
    @apply  mr-4 inline-block lg:block align-top last:mr-0
}

.imageblock img {
    @apply max-w-[200px] lg:max-w-full
}

.swiper-pagination_slider_featured .swiper-pagination-bullet {
    @apply w-14 rounded-sm h-1 opacity-100
}


@media screen and (min-width: 960px) {
    .scuro {
        background: #5e5e5e url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACJgAAAADCAIAAABawrCzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKpJREFUeNrs2UEOgzAMBMCmD+X/v0hPvUAkHFtAqs7cWK+tqNe2bdte/Ka2/26JTstOQ6PYSpu5c0+Yri2RHN9cOHLtyjcprRSOPJZUaheFZ+VoP7YyGM1Mx4VgBwAA+AN9/90TnZ6dhkaxlT5z554wXVsiOb65cCTxkrtXCkceSyq1i8KzcrQfWxmMZqbjQrDDwt5+AgAAAAAAgDX5IwcAAAAAAGBRHwEGANKevyBtQWfnAAAAAElFTkSuQmCC) repeat-y center center;
    }
    
    .bordes_container {
        position: relative;
    }
    
    .bordes_container:before {
        left: -44px;
        background-color: rgba(200, 200, 200, 0.4);
        box-shadow: -23px 0 24px rgba(0, 0, 0, 0.15);
    }
    .bordes_container:before, .bordes_container:after {
        width: 44px;
        content: '';
        height: 100%;
        position: absolute;
        top: 0;
        z-index: -1;
    }
    #tutto_su:after {
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #ddd;
    }
    #tutto_su:after, #vedi_anche:after {
        content: '';
        display: block;
        height: 0;
        width: 0;
        border-style: inset inset inset solid;
        border-width: 17px 0 17px 12px;
        position: absolute;
        right: -12px;
        top: 0;
    }
}


/* icons */

.related_box_icon::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--color-primary);
}

.related_box_icon_left::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--color-primary);
}

.tbuying-guide, .toffer, .tevidenza, .twifi, .tevidenza_paper, .tso, .c_video, .c_login_blue, .c_homeico, .c_3g, .c_e, .c_lte, .c_mem, .c_h, .c_hplus, .tnokia, .tsamsung, .tlg, .thtc, .thuawei, .c_phone, .tmando, .tchip, .thd_display, .c_pluma, .c_kg, .c_camside, .c_camfront, .c_sphone, .c_mems, .c_tv, .c_filmcam, .c_radio, .c_btooth, .c_signal, .c_antena, .c_fingerpoint, .c_2coins, .c_3coins, .c_4coins, .c_5coins, .c_euros, .c_rocket, .tandroid, .tmanzana, .tbubble_stars, .tcomment, .tspeak, .tcanasta, .teuro, .ttag, .tengrane, .trepair, .tcompara, .tbarras, .tmedalla, .thd, .tlados, .tfilm, .tmovie, .tcel, .tworld, .tworld_borde, .tfolders, .tmaletin, .tplanta, .tpapel, .tfire, .twindows {
    background: url(https://css.hd-cdn.it/new_files/templates/theme_darklight/img/all_white_icons.png) top left no-repeat;
    display: inline-block;
}

.tandroid {
    width: 39px;
    height: 48px;
    background-position: -2150px -15px;
  }
  .tmanzana {
    width: 40px;
    height: 47px;
    background-position: -2204px -15px;
  }
  .tbubble_stars {
    width: 51px;
    height: 39px;
    background-position: -2259px -15px;
  }
  .tcomment {
    width: 51px;
    height: 42px;
    background-position: -2325px -15px;
  }
  .tspeak {
    width: 58px;
    height: 50px;
    background-position: -2391px -15px;
  }
  .tcanasta {
    width: 46px;
    height: 40px;
    background-position: -2464px -15px;
  }
  .teuro {
    width: 45px;
    height: 47px;
    background-position: -2525px -15px;
  }
  .ttag {
    width: 35px;
    height: 49px;
    background-position: -2585px -15px;
  }
  .tengrane {
    width: 50px;
    height: 50px;
    background-position: -2635px -15px;
  }
  .trepair {
    width: 48px;
    height: 51px;
    background-position: -2700px -15px;
  }
  .tcompara {
    width: 54px;
    height: 38px;
    background-position: -2763px -15px;
  }
  .tbarras {
    width: 54px;
    height: 40px;
    background-position: -2832px -15px;
  }
  .tmedalla {
    width: 47px;
    height: 45px;
    background-position: -2901px -15px;
  }
  .thd {
    width: 50px;
    height: 50px;
    background-position: -2963px -15px;
  }
  .tlados {
    width: 50px;
    height: 35px;
    background-position: -3028px -15px;
  }
  .tfilm {
    width: 52px;
    height: 43px;
    background-position: -3093px -15px;
  }
  .tmovie {
    width: 45px;
    height: 45px;
    background-position: -3160px -15px;
  }
  .tcel {
    width: 32px;
    height: 50px;
    background-position: -3220px -15px;
  }
  .tworld {
    width: 50px;
    height: 50px;
    background-position: -3267px -15px;
  }
  .tworld_borde {
    width: 50px;
    height: 50px;
    background-position: -3332px -15px;
  }
  .tfolders {
    width: 48px;
    height: 46px;
    background-position: -3397px -15px;
  }
  .tmaletin {
    width: 47px;
    height: 40px;
    background-position: -3460px -15px;
  }
  .tplanta {
    width: 45px;
    height: 45px;
    background-position: -3522px -15px;
  }
  .tpapel {
    width: 44px;
    height: 44px;
    background-position: -3582px -15px;
  }
  .tfire {
    width: 35px;
    height: 49px;
    background-position: -3641px -15px;
  }
  .twindows {
    width: 42px;
    height: 42px;
    background-position: -3691px -15px;
  }

  .pricebutton_label:before {
    right: -12px;
    border-color: transparent transparent transparent white;
    content: '';
    display: block;
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
    border-width: 20px 0 20px 12px;
    border-style: inset inset inset solid;
}
.pricebutton_label:after {
    content: '';
    display: block;
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
    border-width: 20px 0 20px 12px;
    border-style: inset inset inset solid;
    right: -10px;
    border-color: transparent transparent transparent #EB9907;
}