/* Light modernisation layered over the original PRIMEO stylesheet (general.css, _main.css).
   Same colours, fonts and page structure; only spacing, sizes, corners and hover states change.
   Remove the <link> to this file to get the original look back. */

:root {
  --blue: #2454b7;
  --ink: #231f20;
  --line: #d9dbe0;
  --soft: #f5f6f8;
  --radius: 6px;
}

/* Text */
body { color: var(--ink); -webkit-font-smoothing: antialiased; }
#page-content, .contact-data { font-size: 16px; line-height: 1.65; }
#page-content p[style*="justify"], #page-content li[style*="justify"] { text-align: left !important; }
.page-title { font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 32px; }
a { transition: color .2s ease; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header: the menu fits on one line next to the logo, as it already does on the German pages */
#h-main { border-bottom: 1px solid #ececef; }
#n-top .level-0 li { margin: 0 2px; }
#n-top .level-0 li a { position: relative; padding: 10px 11px; font-size: 15px; font-weight: 400; letter-spacing: .02em; }
#n-top .level-0 li a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
#n-top .level-0 li a:hover::after, #n-top .level-0 li a.active::after { transform: scaleX(1); }
#language { padding-left: 14px; }
#language ul li a { font-size: 15px; }

/* Home banner */
#baner li { position: relative; }
#baner li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 17, 26, .72) 0%, rgba(15, 17, 26, .18) 55%, rgba(15, 17, 26, 0) 100%);
}
.bx-wrapper .bx-viewport li .name, .bx-wrapper .bx-viewport li .desc {
  z-index: 2; width: 90%; text-align: center; font-family: 'Roboto Slab', serif; text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.bx-wrapper .bx-viewport li .name { font-weight: 700; letter-spacing: .01em; }
.bx-wrapper .bx-viewport li .desc { font-weight: 300; letter-spacing: .32em; }

/* Home: intro box and buttons */
.styled-div { background-image: none; border-radius: var(--radius); background-color: var(--soft); margin-bottom: 110px; }
.styled-btn, .form-inp-btn {
  border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400;
  transition: background-color .2s ease, transform .2s ease;
}
.styled-btn { font-size: 13px; padding: 12px 0; }
.styled-btn:hover, .form-inp-btn:hover, .form-inp-btn:focus { background: var(--blue); }
.form-inp-btn { font-size: 13px; line-height: 1; padding: 13px 34px; }

/* Home: the three offer tiles */
.offer { margin-top: 60px; }
.offer ul li a .thumb { overflow: hidden; border-radius: var(--radius); }
.offer ul li a img { transition: transform .5s ease; }
.offer ul li a:hover img { transform: scale(1.04); }
.offer ul li a .name { margin-top: 18px; font-size: 17px; letter-spacing: .02em; transition: color .2s ease; }
.offer ul li a:hover .name { color: var(--blue); }

/* Galleries: an even grid that fills the page width */
.-pc-gallery.standard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; }
.-pc-gallery.standard .-pc-gallery-row { float: none; }
.-pc-gallery.standard .-pc-gallery-item { display: block; }
.-pc-gallery .-pc-gallery-image-zoom { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 1; background: var(--soft); }
.-pc-gallery.standard .-pc-gallery-image-zoom img {
  display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .5s ease;
}
.-pc-gallery.standard .-pc-gallery-image-zoom:hover img { transform: scale(1.05); }
.-pc-gallery .-pc-gallery-image-zoom:hover .-pc-gallery-image-zoom-in { background-color: rgba(20, 30, 60, .6); opacity: .45; background-size: 40px 40px; }
#page-content .-pc-image-zoom img { border-radius: var(--radius); }

/* Contact forms */
.form-inp {
  box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 84, 183, .15); outline: 0; }
.form-field-title { font-size: 14px; margin-bottom: 4px; }
.form-require-text { font-size: 13px; margin-top: 10px; }
div[class*="contact_form"] .form-inp-btn { margin-top: 14px; }
div[class*="contact_form"] .form-inp { width: calc(100% - 12px); }   /* leaves a gap between fields that sit side by side */


@media (max-width: 1000px) {
  .page-title { font-size: 38px; }
  .-pc-gallery.standard { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 570px) {
  .page-title { font-size: 32px; margin-bottom: 22px; }
  .-pc-gallery.standard { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .styled-div { padding: 28px 22px 44px; margin-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .offer ul li a:hover img, .-pc-gallery.standard .-pc-gallery-image-zoom:hover img { transform: none; }
}
.bx-wrapper .bx-viewport li .name { transform: translate(-50%, -12px); }   /* a little air between the two banner lines */
